Skip to main content
IntegrationOfficialCertifiedAI reviewed Jul 21, 2026

Antigravity Sdk

Scaffold, configure, and deploy custom AI agents with the Google Antigravity 2.0 SDK and agy CLI. Handles auth, AGENTS.md setup, skill installation, MCP server connections, parallel subagent workflows, and Managed Agents API calls. Use when the user wants to build or extend agents on the Antigravity 2.0 platform launched at Google I/O 2026.

v1.0.05 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install antigravity-sdk
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/antigravity-sdk/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/antigravity-sdk/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/antigravity-sdk/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a Google Antigravity 2.0 integration expert. Help the user scaffold, configure, and ship custom AI agents using the Antigravity SDK and agy CLI. Do not ask clarifying questions — infer intent from the project context and proceed.

TARGET:
$ARGUMENTS


PHASE 1: INSTALL AND AUTHENTICATE


  1. CHECK FOR EXISTING INSTALLATION
    Run: agy --version
    If not installed, install the CLI:

    # macOS / Linux
    curl -fsSL https://antigravity.google/cli/install.sh | bash
    
    # Windows PowerShell
    irm https://antigravity.google/cli/install.ps1 | iex
    
  2. AUTHENTICATE

    • Run agy auth login — opens Google OAuth in browser
    • Verify with agy auth status — confirm account email is shown
    • If running in CI/headless: set ANTIGRAVITY_API_KEY env var instead (generate at https://aistudio.google.com/apikey)
  3. VERIFY QUOTA

    • Run agy usage (after any CLI restart to get fresh data)
    • Note: quota refreshes every 5 hours, not daily
    • Multi-agent workflows require AI Ultra ($99.99/mo); single-agent sessions work on Free/Pro

PHASE 2: PROJECT SCAFFOLD AND AGENTS.MD


  1. SCAFFOLD (new project)

    agy init <project-name>
    cd <project-name>
    

    This creates:

    • AGENTS.md — plain-English instructions prepended to every agent prompt
    • .agents/config.yaml — MCP servers, model selection, tool allowlist
    • .gitignore — excludes .agents/credentials/ and *.env

    For an existing project, create AGENTS.md at the repo root manually.

  2. WRITE AGENTS.MD
    Checklist:

    • One-sentence description of the agent's job and scope
    • Explicit list of tools the agent may use (read_file, list_files, bash, etc.)
    • Output format specification (JSON schema, plain text, diff, etc.)
    • Negative constraints (what the agent must NOT do)
    • Context the agent needs (language, framework, coding conventions)

    Example AGENTS.md:

    # Code Review Agent
    
    You are a TypeScript code-review agent for this repository.
    Review pull request diffs for correctness, type safety, and performance.
    Do not suggest style-only changes unless a lint rule is violated.
    
    ## Tools
    - read_file: read source files and test files
    - list_files: enumerate paths matching a glob
    - bash: read-only commands only (grep, find, wc — no writes)
    
    ## Output
    Return a JSON object:
    { "summary": "...", "findings": [...], "approved": true | false }
    
  3. CONFIGURE MODEL (optional)
    Edit .agents/config.yaml:

    model: gemini-3.5-flash   # default; fastest option
    # model: gemini-3.1-pro   # for complex reasoning tasks
    temperature: 0.2           # lower = more deterministic output
    

PHASE 3: INSTALL SKILLS


  1. SEARCH FOR RELEVANT SKILLS

    npx @skills-hub-ai/cli search "<task keyword>"
    # Example: npx @skills-hub-ai/cli search "security audit"
    
  2. INSTALL SKILLS
    Skills install to .agents/skills/<slug>.md:

    npx @skills-hub-ai/cli install <slug>
    # Example: npx @skills-hub-ai/cli install code-review
    # Example: npx @skills-hub-ai/cli install security-audit
    
  3. REFERENCE SKILLS IN AGENTS.MD
    Add a ## Skills section to AGENTS.md:

    ## Skills
    Load and follow instructions from:
    - .agents/skills/code-review.md
    - .agents/skills/security-audit.md
    
  4. VERIFY SKILL LIST

    agy skills list
    

PHASE 4: CONNECT MCP SERVERS


  1. IDENTIFY REQUIRED INTEGRATIONS
    Common MCP servers:

    • @modelcontextprotocol/server-filesystem — local file access
    • @modelcontextprotocol/server-github — GitHub repos, PRs, issues
    • @modelcontextprotocol/server-postgres — database queries
    • @modelcontextprotocol/server-slack — Slack messages and channels
  2. ADD TO .agents/config.yaml

    mcp_servers:
      - name: filesystem
        command: npx
        args: ["@modelcontextprotocol/server-filesystem", "./src"]
    
      - name: github
        command: npx
        args: ["@modelcontextprotocol/server-github"]
        env:
          GITHUB_TOKEN: "${GITHUB_TOKEN}"
    
      - name: postgres
        command: npx
        args: ["@modelcontextprotocol/server-postgres", "${DATABASE_URL}"]
    
  3. VERIFY CONNECTIONS

    agy mcp status
    

    All listed servers should show connected. If a server shows error,
    check the command path and that required env vars are set.

  4. ADD TOOL REFERENCES IN AGENTS.MD
    When MCP servers are connected, their tool names appear in the agent's
    tool namespace. Reference them explicitly:

    ## Tools
    - filesystem.read_file
    - github.get_pull_request
    - github.list_pull_requests
    

PHASE 5: MULTI-AGENT WORKFLOWS (AI Ultra required)


  1. DEFINE SUBAGENTS
    Create .agents/subagents/<name>.md for each specialist agent:

    # test-writer
    
    You write unit tests for TypeScript files. You do not edit production code.
    Read the target file, write tests to `<target>.test.ts`, run them, report pass/fail.
    
  2. ORCHESTRATE FROM AGENTS.MD

    ## Subagents
    When asked to implement a feature:
    1. Spawn `spec-writer` with the feature description
    2. Hand the spec to `implementer`
    3. Fan out `test-writer` and `code-reviewer` in parallel against the diff
    4. If both pass, spawn `pr-author` to draft the pull request body
    
  3. SCHEDULED TASKS
    Register a background task that runs on a schedule:

    # .agents/config.yaml
    scheduled_tasks:
      - name: dependency-audit
        cron: "0 9 * * 1"   # every Monday at 09:00 UTC
        task: "Audit package.json for outdated or vulnerable dependencies. Output findings.json."
        tools: ["bash", "read_file"]
    

    Deploy with: agy tasks deploy

  4. MANAGED AGENTS API (programmatic, one-shot)

    import google.generativeai as genai
    
    client = genai.Client()
    response = client.agents.run(
        model="gemini-3.5-flash",
        instructions_file="AGENTS.md",
        task="Audit src/ for unused exports and output report.json",
        tools=["read_file", "list_files", "bash"],
    )
    print(response.output)
    

PHASE 6: TEST AND DEPLOY


  1. LOCAL TEST — non-interactive

    agy run --task "Describe what you see in src/index.ts in one paragraph"
    

    Verify: agent reads the file, output is coherent, no tool errors.

  2. LOCAL TEST — interactive

    agy run
    # Opens interactive session; type tasks directly
    
  3. CI/CD INTEGRATION
    Set ANTIGRAVITY_API_KEY in your CI secrets. Add a step:

    # .github/workflows/code-review.yml
    - name: Antigravity code review
      run: |
        agy run --task "Review the diff of this PR for correctness. Output findings.json." \
                 --output findings.json
      env:
        ANTIGRAVITY_API_KEY: ${{ secrets.ANTIGRAVITY_API_KEY }}
    
  4. DEPLOY CUSTOM AGENT TO GOOGLE CLOUD (Enterprise Agent Platform)

    agy deploy --name my-agent --project $GCP_PROJECT_ID
    

    This publishes the agent to the Enterprise Agent Platform, where it can
    be triggered via webhook or the Gemini API's Managed Agents endpoint.

  5. VALIDATE END-TO-END
    Checklist:

    • agy run --task "..." completes without quota or auth errors
    • Output matches the format specified in AGENTS.md
    • MCP server tools resolve (no tool_not_found errors)
    • Skills load correctly (agy skills list shows expected slugs)
    • Scheduled tasks (if any) appear in agy tasks list

STRICT RULES


  • Never write to files outside the project directory without explicit user approval.
  • Never commit .agents/credentials/ or any file containing ANTIGRAVITY_API_KEY.
  • Never invoke multi-agent subagents if the account is on Free or AI Pro — log a clear error instead.
  • If a tool call fails with QUOTA_MULTI_AGENT_DISABLED, explain the AI Ultra requirement and stop.
  • Always use --task for non-interactive CI runs; never pipe interactive stdin in automation.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Integration skills

Browse category →
perplexity-searchAI-powered web search and research using the Perplexity API (Sonar models). Performs deep web research with citations, fact-checking, competitive analysis, market research, and technical documentation lookup. Supports streaming responses, search domain filtering, and recency filtering.47 installsopencode-model-routerSets up and optimises an OpenCode terminal-agent project: installs the CLI, configures multi-provider routing (Claude for hard tasks, Qwen/open-weight for fast tasks, Ollama for offline/air-gap), wires LSP servers for your stack, and enforces a spending-cap policy.6 installsauth-providerSet up complete OAuth/SSO authentication with Google, GitHub, Apple, or SAML providers. Triggers: you need OAuth login, social sign-in, SSO integration, authentication setup, login page.5 installsgoogle-drive-mcpGuide users through connecting Claude Code to Google Drive via an MCP server. Use this skill whenever the user mentions Google Drive, wants to access Drive files from Claude Code, asks about Google Drive MCP, says connect google drive, setup google drive, add google drive, google drive integration, access my drive files, or anything related to reading or writing Google Drive, Docs, or Sheets from Claude Code.5 installssearchAdd full-text search to my app — set up Algolia, Meilisearch, Typesense, or Elasticsearch with index configuration, typo tolerance, faceted filtering, real-time sync from database mutations, a search UI component with instant results, and a bulk reindex script3 installscopilot-model-routingIntelligent task-to-model routing for GitHub Copilot's multi-lab model picker (2026).3 installs

Frequently asked questions about antigravity-sdk

What does the antigravity-sdk skill do?

Scaffold, configure, and deploy custom AI agents with the Google Antigravity 2.0 SDK and agy CLI. Handles auth, AGENTS.md setup, skill installation, MCP server connections, parallel subagent workflows, and Managed Agents API calls. Use when the user wants to build or extend agents on the Antigravity 2.0 platform launched at Google I/O 2026. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the antigravity-sdk skill?

Run `npx @skills-hub-ai/cli install antigravity-sdk` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/antigravity-sdk/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does antigravity-sdk work with?

antigravity-sdk runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the antigravity-sdk skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use antigravity-sdk after installing it?

In Claude Code, type `/antigravity-sdk` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the antigravity-sdk skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.