agentleFS
SafeMantellaSafeMantella/claude-code-agy-CLI-skill/SKILL.md

antigravity-cli

Skill9 starsChanged 6 months agoMITView on GitHub

Delegate heavy, multi-step, or specialized tasks to Google's Antigravity CLI agents. Use when a task would benefit from: (1) deep multi-file codebase analysis across many files, (2) web research with Google Search grounding, (3) image generation or visual assets, (4) a second AI perspective for code review or architecture decisions, (5) specialized scientific/biology database queries (gnomAD, UniProt, PubMed, etc.), (6) long-running refactors that would exhaust your context window, (7) tasks requiring many sequential tool calls that would consume excessive tokens. Also use when the user explicitly asks to use Antigravity, Gemini, or "agy". Do NOT use for simple, quick tasks that you can handle directly.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. scarletkc/agents★ 227same name
    2. kellykampen/agent-skills★ 2same name
    3. yu-iskw/coding-agent-skills★ 1same name
    4. austenstone/.copilot★ 0same name
    5. legibet/agent-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always use the full path to avoid shell resolution issues.

    line 34
  2. Very specific:

    Only use interactive mode when you need a long-running session with follow-up questions.

    line 84
  3. Distinctive:

    Use Antigravity for research, process its findings yourself.

    line 123
  4. Distinctive:

    Check that generated code compiles/runs

    line 267
  5. Distinctive:

    Verify security-sensitive code for vulnerabilities

    line 268
  6. Distinctive:

    Ensure style consistency with the project

    line 269
  7. Distinctive:

    Test that refactored code passes existing tests

    line 270
  8. Very specific:

    Create ~/.gemini/GEMINI.md or .gemini/GEMINI.md in the project root to give Antigravity persistent context about the project.

    line 294
  9. Distinctive:

    Before delegating, ask yourself:

    line 299

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Antigravity CLI Integration Skill

Antigravity CLI (agy) is Google DeepMind's agentic coding assistant. It has its own set of tools, plugins, and capabilities that complement yours. By delegating tasks to it, you save tokens by only processing its final output instead of performing many intermediate steps yourself.

Binary Location

/Users/pedroarfux/.local/bin/agy

Always use the full path to avoid shell resolution issues.

When to Delegate

✅ DELEGATE these tasks

CategoryWhy Antigravity is better
Deep codebase analysisHas codebase_investigator tool — maps architecture, dependencies, cross-file relationships in one pass
Web researchHas google_web_search — grounded, real-time search with Google's index
Image generationHas generate_image tool — creates visual assets, UI mockups, diagrams
Multi-file refactorsRuns in its own context window — won't exhaust yours
Scientific queriesHas 40+ specialized database skills (gnomAD, UniProt, PubMed, PDB, ChEMBL, etc.)
Second opinionDifferent model, different perspective — catches things you might miss
Bulk code generationGenerate boilerplate, tests, docs without filling your context
Docker operationsUser runs apps in Docker — Antigravity can handle complex container orchestration

❌ DON'T delegate these

  • Simple one-liner fixes (faster to do yourself)
  • Tasks requiring back-and-forth conversation with the user
  • Tasks where you already have all the context loaded
  • Anything the user explicitly asked YOU to do

Command Reference

Non-Interactive Mode (Primary Integration)

/Users/pedroarfux/.local/bin/agy -p "YOUR PROMPT HERE" 2>&1

Key flags:

FlagPurpose
-p "prompt" / --print "prompt"Non-interactive mode — run prompt, print response, exit
--print-timeout 5m0sTimeout for print mode (default 5m, increase for complex tasks)
--dangerously-skip-permissionsAuto-approve all tool calls (USE WITH CAUTION)
--add-dir /path/to/dirAdd a directory to the workspace (repeatable)
--conversation <id>Resume a specific conversation by ID
-c / --continueContinue the most recent conversation
--sandboxRun with terminal restrictions enabled

Interactive Mode (Advanced — rarely needed)

/Users/pedroarfux/.local/bin/agy

Only use interactive mode when you need a long-running session with follow-up questions. This will block your terminal until the user exits. Prefer -p mode.

Prompt Engineering for Delegation

Critical Rules

  1. Be explicit and complete — Antigravity starts with zero context about your current task
  2. Include file paths — Always give absolute paths to relevant files
  3. Specify output format — Tell it exactly what you need back
  4. Use action verbs — "Analyze", "Generate", "Create", "Review" not "Can you..."
  5. Set boundaries — Tell it what NOT to do (e.g., "Do NOT modify any files")

Prompt Template

[TASK DESCRIPTION in 1-2 sentences]

Context:
- Project root: [absolute path]
- Relevant files: [list of absolute paths]
- Tech stack: [languages, frameworks]

Requirements:
1. [Specific requirement]
2. [Specific requirement]

Output format:
[What you want back — code, analysis, list, etc.]

Constraints:
- Do NOT modify any files (or: Apply changes directly)
- Focus only on [scope]

Integration Patterns

Pattern 1: Research & Report

Use Antigravity for research, process its findings yourself.

/Users/pedroarfux/.local/bin/agy -p "
Analyze the authentication flow in the project at /Users/pedroarfux/my-project.
Map all files involved, identify the auth middleware, session handling, and token validation.
Output a structured summary with file paths and line numbers.
Do NOT modify any files.
" --print-timeout 3m0s 2>&1

Then parse the output and use it to make targeted edits yourself.

Pattern 2: Code Generation

Have Antigravity generate code, then you review and integrate it.

/Users/pedroarfux/.local/bin/agy -p "
Generate a comprehensive test suite for /Users/pedroarfux/my-project/src/auth.py.
Use pytest with fixtures. Cover: login, logout, token refresh, expired tokens, invalid credentials.
Output ONLY the test file content, no explanations.
" --print-timeout 3m0s --dangerously-skip-permissions 2>&1

Pattern 3: Code Review

Get a second opinion on code you've written or are about to modify.

/Users/pedroarfux/.local/bin/agy -p "
Review this code for security vulnerabilities, performance issues, and bugs:

File: /Users/pedroarfux/my-project/src/handler.py

Focus on:
1. SQL injection risks
2. Input validation gaps
3. Race conditions
4. Memory leaks

Output a prioritized list of findings with severity (critical/high/medium/low).
Do NOT modify any files.
" --print-timeout 2m0s 2>&1

Pattern 4: Web Research (Google Search Grounding)

Antigravity has real-time Google Search — use it for current information.

/Users/pedroarfux/.local/bin/agy -p "
Search the web for the latest security advisories for Flask 3.x.
Include CVE numbers, affected versions, and recommended fixes.
Output as a markdown table.
" --print-timeout 2m0s 2>&1

Pattern 5: Multi-File Refactor

Delegate large refactors that would exhaust your context.

/Users/pedroarfux/.local/bin/agy -p "
Refactor all database queries in /Users/pedroarfux/my-project/src/ to use parameterized queries
instead of string formatting. Apply changes directly to the files.

Rules:
- Preserve all existing comments and docstrings
- Maintain the same function signatures
- Add type hints where missing
- Run the existing tests after changes
" --print-timeout 5m0s --dangerously-skip-permissions --add-dir /Users/pedroarfux/my-project 2>&1

Pattern 6: Conversation Continuation

For complex multi-step tasks, continue a previous conversation.

# First call — start analysis
/Users/pedroarfux/.local/bin/agy -p "Analyze the database schema in /Users/pedroarfux/my-project" --print-timeout 3m0s 2>&1

# Follow-up — continue the same conversation
/Users/pedroarfux/.local/bin/agy -c -p "Now suggest optimizations for the slowest queries" --print-timeout 3m0s 2>&1

Pattern 7: Image Generation

Antigravity can generate images — use it for visual assets.

/Users/pedroarfux/.local/bin/agy -p "
Generate a modern, dark-themed login page mockup with:
- Glassmorphism card centered on screen
- Email and password fields
- Social login buttons (Google, GitHub)
- Gradient background (purple to blue)
Save the image to /Users/pedroarfux/my-project/mockups/login.png
" --print-timeout 3m0s --dangerously-skip-permissions 2>&1

Pattern 8: Scientific/Biology Queries

Antigravity has 40+ specialized science skills. Delegate all bio/chem queries.

/Users/pedroarfux/.local/bin/agy -p "
Search PubMed for recent papers on CRISPR-Cas9 off-target effects in human cells.
Return the top 10 results with: title, authors, journal, year, PMID, and a 2-sentence summary.
Output as a markdown table.
" --print-timeout 3m0s 2>&1

Error Handling

Common Issues

ErrorCauseFix
command not foundBinary not in PATHUse full path: /Users/pedroarfux/.local/bin/agy
TimeoutTask took too longIncrease --print-timeout (e.g., 10m0s)
Permission deniedTool call needs approvalAdd --dangerously-skip-permissions
Rate limitAPI quota exceededWait and retry, or simplify the prompt
Empty outputPrompt too vagueBe more specific, include file paths

Output Processing

Antigravity's output in -p mode goes to stdout. Common patterns:

# Capture output to variable
RESULT=$(/Users/pedroarfux/.local/bin/agy -p "your prompt" 2>&1)

# Save output to file
/Users/pedroarfux/.local/bin/agy -p "your prompt" 2>&1 > /tmp/agy-output.txt

# Pipe through processing
/Users/pedroarfux/.local/bin/agy -p "your prompt" 2>&1 | grep -A5 "CRITICAL"

Validation

Always validate Antigravity's output before using it:

  1. Check that generated code compiles/runs
  2. Verify security-sensitive code for vulnerabilities
  3. Ensure style consistency with the project
  4. Test that refactored code passes existing tests

Antigravity's Unique Capabilities

These tools are available ONLY through Antigravity (not in Claude Code):

ToolDescription
google_web_searchReal-time internet search via Google
codebase_investigatorDeep architectural analysis of codebases
generate_imageAI image generation for mockups and assets
save_memoryCross-session persistent memory
40+ Science SkillsgnomAD, UniProt, PubMed, PDB, ChEMBL, AlphaFold, ClinVar, etc.
Chrome DevToolsBrowser automation, debugging, performance analysis
PyMOLProtein structure visualization

Configuration

Antigravity's Settings

  • Config: ~/.gemini/antigravity-cli/settings.json
  • Conversations: ~/.gemini/antigravity-cli/brain/
  • Plugins: ~/.gemini/config/plugins/

Project Context

Create ~/.gemini/GEMINI.md or .gemini/GEMINI.md in the project root to give Antigravity persistent context about the project.

Cost-Benefit Decision Framework

Before delegating, ask yourself:

Token cost of doing it myself  >  Token cost of prompt + parsing output?
                                     ↓ YES → Delegate
                                     ↓ NO  → Do it yourself

Rules of thumb:

  • < 5 tool calls needed → Do it yourself
  • 5-15 tool calls needed → Consider delegating
  • 15 tool calls needed → Definitely delegate

  • Need web search → Always delegate
  • Need image generation → Always delegate
  • Need science databases → Always delegate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.