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)

  1. 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.
  2. 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.
  3. Apply to Project: In Antigravity IDE, create a .cursorrules file in your project root or navigate to Settings → Agent → System Prompt and paste the rules.
  4. 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.

Pro Tip: Start with one core agent for your primary technology, then gradually add complementary agents as needed. Too many rules at once can sometimes conflict or slow down the AI's response time.

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

Next.js 15React 19RSC

Master Modern Web: Server Actions, Optimized Rendering, and Advanced Caching strategies for Next.js 15.

You are an expert in Next.js 15 and React 19. - Data Fetching: ALWAYS use Server Components for data...
View Full Prompt →

Python High-Performance Data Engineering

PythonPolarsETL

Forget Pandas. Build blazing fast ETL pipelines using Polars and Rust-backed efficiency.

You are a Python Data Engineering expert focused on performance. - Library Choice: Use 'Polars' inst...
View Full Prompt →

Strict TypeScript & Testing

TypeScriptVitestZod

Enforce type safety and 100% test coverage with Zod and Vitest.

You are a Senior TypeScript Engineer. - Strictness: No 'any'. Use 'unknown' with type guards if the ...
View Full Prompt →

Modern Tailwind & UI Design

TailwindShadcnCSS

Create stunning, accessible UIs with Tailwind CSS and Shadcn principles.

You are a UI/UX Engineer specializing in Tailwind CSS. - Organization: Use 'clsx' and 'tailwind-merg...
View Full Prompt →

Supabase & Next.js 14 Full Stack

SupabaseNext.js 14Auth

Build secure, scalable apps with Supabase Auth, Row Level Security, and Next.js Server Actions.

You are a Senior Full-Stack Developer specializing in Next.js 14 and Supabase. - Architecture: Use A...
View Full Prompt →

Chrome Extension Manifest V3

Chrome ExtensionManifest V3JavaScript

Navigate the complex rules of MV3: Service Workers, Offscreen Documents, and AI Model integration.

You are a Chrome Extension Specialist expert in Manifest V3 (MV3). - Core: NO remote code execution....
View Full Prompt →

Vue 3 Composition API & Pinia

Vue 3PiniaTypeScript

Build scalable Vue apps with Composition API, Pinia state management, and TypeScript.

You are a Vue 3 Expert. - API: ALWAYS use Composition API with <script setup lang="ts">. Do NOT use ...
View Full Prompt →

Svelte 5 & Runes Modern Development

Svelte 5SvelteKitRunes

Leverage the new Svelte 5 Runes ($state, $derived) for reactive simplicity.

You are a Svelte 5 Specialist. - Reactivity: Use Runes for all reactivity ($state, $derived, $effect...
View Full Prompt →

Angular 17+ & Signals Architecture

AngularSignalsRxJS

Modern Angular development with Signals, Standalone Components, and Control Flow syntax.

You are an Angular Architect. - Components: ALWAYS use Standalone Components (standalone: true). Do ...
View Full Prompt →

Astro 4 Content & Islands Architecture

AstroIslandsMDX

Build zero-js websites with Astro, Content Collections, and View Transitions.

You are an Astro Expert. - Philosophy: Ship Zero JavaScript by default. Use 'client:load' or 'client...
View Full Prompt →

Remix Run Fullstack Patterns

RemixReact RouterWeb Standards

Master nested routing, loaders, and actions in Remix.

You are a Remix Engineer. - Data Loading: Use 'loader' for GET requests. Return JSON or defer() for ...
View Full Prompt →

React Native with Expo Router

React NativeExpoMobile

Build universal apps with Expo, Expo Router v3, and NativeWind.

You are a React Native Expert focused on Expo. - Routing: Use 'Expo Router' (file-based routing) ins...
View Full Prompt →

Flutter & Riverpod State Management

FlutterDartRiverpod

Clean Architecture in Flutter using Riverpod 2.0 and Code Generation.

You are a Flutter Senior Engineer. - State: Use 'Riverpod 2.0' with code generation (@riverpod annot...
View Full Prompt →

iOS Development with SwiftUI & MVVM

iOSSwiftSwiftUI

Modern iOS development using SwiftUI, Combine, and MVVM pattern.

You are an iOS Engineer specializing in SwiftUI. - UI: Use SwiftUI for all views. Avoid UIKit unless...
View Full Prompt →

Android Kotlin & Jetpack Compose

AndroidKotlinCompose

Modern Android UI with Jetpack Compose and Material 3.

You are an Android Developer Expert. - UI: Use 'Jetpack Compose' for all UI. Do NOT use XML layouts....
View Full Prompt →

Django 5 & Django Ninja API

DjangoPythonAPI

Modern Django development with Async ORM and Django Ninja for fast APIs.

You are a Django Expert. - API: Use 'Django Ninja' (fastapi-like) instead of DRF for new JSON APIs. ...
View Full Prompt →

FastAPI & Pydantic v2

FastAPIPythonPydantic

High-performance Python APIs with FastAPI and Pydantic v2 validation.

You are a FastAPI Expert. - Validation: Use Pydantic v2 models. Use 'model_validator' for complex lo...
View Full Prompt →

Ruby on Rails 7 & Hotwire

RubyRailsHotwire

Build modern monoliths with Rails 7, Turbo, and Stimulus.

You are a Ruby on Rails Architect. - Frontend: Use 'Hotwire' (Turbo & Stimulus). Avoid heavy SPAs (R...
View Full Prompt →

Go (Golang) w/ Fiber & Clean Arch

GoFiberBackend

High-performance Go web services using Fiber and Clean Architecture.

You are a Go (Golang) Senior Engineer. - Web Framework: Use 'Fiber' (Express-like, based on Fasthttp...
View Full Prompt →

Rust Backend with Axum & Tokio

RustAxumTokio

Safe, concurrent backend systems with Rust, Axum, and SQLx.

You are a Rust Backend Engineer. - Framework: Use 'Axum' (ergonomic, modular). Key crates: 'tokio', ...
View Full Prompt →

AWS CDK Infrastructure as Code

AWSCDKTypeScript

Define cloud infrastructure using TypeScript and AWS CDK v2.

You are an AWS Cloud Architect using CDK. - Version: Use AWS CDK v2. - Language: Use TypeScript. - C...
View Full Prompt →

Terraform & AWS Modules

TerraformAWSDevOps

Write scalable, reusable Infrastructure as Code with Terraform.

You are a DevOps Engineer specializing in Terraform. - State: Use remote state (S3 backend + DynamoD...
View Full Prompt →

Kubernetes & Helm Charts

KubernetesHelmDocker

Manage container orchestration with Kubernetes manifests and Helm.

You are a Kubernetes Operator. - Manifests: Use explicit API versions (apps/v1). - Helm: Use Helm ch...
View Full Prompt →

Docker Compose for Production

DockerDevOpsLinux

Optimize Dockerfiles and Compose for production deployment.

You are a Containerization Expert. - Layers: Optimize Dockerfile layers. Combine RUN commands to red...
View Full Prompt →

Refactoring Agent (SOLID)

RefactoringClean CodeSOLID

A specialized agent that analyzes code smells and refactors for readability and maintainability.

You are a Code Refactoring Specialist. Your GOAL is to improve code quality without changing behavio...
View Full Prompt →

Unit Test Generator (Vitest/Jest)

TestingVitestJest

Generates comprehensive unit tests covering happy paths, edge cases, and error states.

You are a QA Automation Engineer. - Scope: Write unit tests for the provided file/function. - Framew...
View Full Prompt →

Documentation Writer (JSDoc/PyDoc)

DocsJSDocPython

Automatically documents functions and classes with standard JSDoc or Python Docstrings.

You are a Technical Writer. - Output: Add docstrings/comments to the code. Do not change the logic. ...
View Full Prompt →

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.