Antigravity Agent Library
Supercharge your Agent with these battle-tested System Prompts and Rules. Copy and paste them into your Project Settings.
What Are Agent Prompts?
Agent prompts are specialized instructions that configure Antigravity IDE's AI behavior for specific development tasks. Think of them as expert consultants that you can summon for different scenarios - whether you're building a React app, optimizing Python data pipelines, or architecting cloud infrastructure.
Unlike generic AI coding assistants, these prompts transform Antigravity into a domain expert that understands the nuances of your specific technology stack. They enforce best practices, prevent common mistakes, and guide architectural decisions based on battle-tested patterns from production environments.
Key Benefits
- Consistency Across Teams: Ensure every developer follows the same coding standards and architectural patterns, reducing code review friction and maintaining a coherent codebase.
- Framework-Specific Intelligence: Get accurate, up-to-date guidance for Next.js 15, Vue 3, Svelte 5, and other modern frameworks without generic or outdated suggestions.
- Accelerated Development: Skip the research phase and get straight to building with confidence, knowing the AI understands your exact requirements and constraints.
- Built-in Best Practices: Automatically apply security hardening, performance optimizations, and accessibility standards without having to remember every rule.
How to Use Agent Prompts
Quick Setup (Project-Specific)
- Choose Your Agent: Browse the library below and find the agent that matches your tech stack. We have specialized agents for frontend frameworks, backend architectures, testing strategies, and more.
- Copy the Rules: Click the copy button on any agent card to copy its complete ruleset to your clipboard. Each agent contains carefully crafted instructions optimized for Antigravity's capabilities.
- Apply to Project: In Antigravity IDE, create a
.cursorrulesfile in your project root or navigate to Settings → Agent → System Prompt and paste the rules. - Activate and Code: The agent immediately starts working. Try asking it to generate code, review your implementations, or architect new features - it will follow the specialized rules.
Global Configuration
For rules you want to apply across all projects, use the global configuration in Antigravity's settings. This is perfect for personal coding preferences, company standards, or general best practices you always want to follow.
Combining Multiple Agents
Antigravity supports layering multiple agents for comprehensive coverage. For example, combine the "Strict TypeScript" agent with "React 19" and "Modern Tailwind" agents for a complete frontend development setup. The AI intelligently merges the rules, prioritizing more specific instructions when conflicts arise.
Agent Categories
🎨 Frontend Frameworks
React 19, Next.js 15, Vue 3, Svelte 5, Angular 17, and other modern UI frameworks. Includes component patterns, state management, and performance optimizations.
⚙️ Backend & APIs
FastAPI, Django, Express, Rust Axum, Go Fiber. Focus on scalability, security, database patterns, and API design best practices.
📱 Mobile Development
React Native, Flutter, SwiftUI, Kotlin Jetpack Compose. Native performance, platform-specific patterns, and cross-platform strategies.
☁️ Cloud & DevOps
AWS CDK, Terraform, Kubernetes, Docker. Infrastructure as code, CI/CD pipelines, and cloud-native architectures.
🧪 Testing & Quality
Vitest, Playwright, Jest, Pytest. Test-driven development, coverage strategies, and automated quality assurance.
🤖 Specialized Agents
Documentation writers, code reviewers, refactoring specialists. Task-specific agents for focused development activities.
Next.js 15 & React 19 Expert
Master Modern Web: Server Actions, Optimized Rendering, and Advanced Caching strategies for Next.js 15.
Python High-Performance Data Engineering
Forget Pandas. Build blazing fast ETL pipelines using Polars and Rust-backed efficiency.
Strict TypeScript & Testing
Enforce type safety and 100% test coverage with Zod and Vitest.
Modern Tailwind & UI Design
Create stunning, accessible UIs with Tailwind CSS and Shadcn principles.
Supabase & Next.js 14 Full Stack
Build secure, scalable apps with Supabase Auth, Row Level Security, and Next.js Server Actions.
Chrome Extension Manifest V3
Navigate the complex rules of MV3: Service Workers, Offscreen Documents, and AI Model integration.
Vue 3 Composition API & Pinia
Build scalable Vue apps with Composition API, Pinia state management, and TypeScript.
Svelte 5 & Runes Modern Development
Leverage the new Svelte 5 Runes ($state, $derived) for reactive simplicity.
Angular 17+ & Signals Architecture
Modern Angular development with Signals, Standalone Components, and Control Flow syntax.
Astro 4 Content & Islands Architecture
Build zero-js websites with Astro, Content Collections, and View Transitions.
Remix Run Fullstack Patterns
Master nested routing, loaders, and actions in Remix.
React Native with Expo Router
Build universal apps with Expo, Expo Router v3, and NativeWind.
Flutter & Riverpod State Management
Clean Architecture in Flutter using Riverpod 2.0 and Code Generation.
iOS Development with SwiftUI & MVVM
Modern iOS development using SwiftUI, Combine, and MVVM pattern.
Android Kotlin & Jetpack Compose
Modern Android UI with Jetpack Compose and Material 3.
Django 5 & Django Ninja API
Modern Django development with Async ORM and Django Ninja for fast APIs.
FastAPI & Pydantic v2
High-performance Python APIs with FastAPI and Pydantic v2 validation.
Ruby on Rails 7 & Hotwire
Build modern monoliths with Rails 7, Turbo, and Stimulus.
Go (Golang) w/ Fiber & Clean Arch
High-performance Go web services using Fiber and Clean Architecture.
Rust Backend with Axum & Tokio
Safe, concurrent backend systems with Rust, Axum, and SQLx.
AWS CDK Infrastructure as Code
Define cloud infrastructure using TypeScript and AWS CDK v2.
Terraform & AWS Modules
Write scalable, reusable Infrastructure as Code with Terraform.
Kubernetes & Helm Charts
Manage container orchestration with Kubernetes manifests and Helm.
Docker Compose for Production
Optimize Dockerfiles and Compose for production deployment.
Refactoring Agent (SOLID)
A specialized agent that analyzes code smells and refactors for readability and maintainability.
Unit Test Generator (Vitest/Jest)
Generates comprehensive unit tests covering happy paths, edge cases, and error states.
Documentation Writer (JSDoc/PyDoc)
Automatically documents functions and classes with standard JSDoc or Python Docstrings.
Contribute Your Own Agents
Have you created an effective agent prompt for your workflow? Share it with the Antigravity community! We're always looking for new agents that solve real development challenges. Submit your agents via GitHub or join our Discord to discuss agent development strategies.