agentleFS
shauryaaojhashauryaaojha/claude-code-delegate/skills/agy/SKILL.md

agy

Skill2 starsChanged 2 months agoMITView on GitHub

Delegate coding work to the Antigravity `agy` CLI agent (Google Antigravity, non-interactive print mode). Use this whenever the user says "agy", "antigravity", "antigravity se karwa", "spawn antigravity", "delegate to antigravity", asks you to "make antigravity build/fix/scaffold X", wants to change the antigravity model, or wants a large build/scaffold/refactor task offloaded to another coding agent while you orchestrate. Also use it to generate raster images — icons, illustrations, hero images, placeholder art, "image bana do", "generate an image/logo/icon" — since agy has a built-in image generation tool and you do not. Also use it when the user has previously said coding should go through antigravity and a new implementation task comes up.

  • Reads credentials

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use opencode.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pepebot-spaceSkill

    opencode

    Interact with OpenCode using the `opencode` CLI. Use `opencode run`, `opencode agent`, `opencode mcp`, and `opencode models` to execute automation workflows, manage agents, configure tools, and run headless coding tasks.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do NOT pass --effort with Claude models — --effort is not supported for model "claude-opus-4-6-thinking".

    line 43
  2. Distinctive:

    If a run dies with a quota/rate error, switch model rather than retrying the same one.

    line 57
  3. Very specific:

    Keep decisions *made*, not open — agy can't ask you questions in print mode, it will guess.

    line 75
  4. Very specific:

    Put the file in the project (e.g.

    line 76
  5. Distinctive:

    If agy's quota dies mid-task, finish the remaining items yourself — don't leave the user with a half-built tree.

    line 103
  6. Distinctive:

    Look at the result before using it: Read the PNG yourself. Image models misspell lettering and ignore negative instructions, so check the …

    line 125

“Common” is measured: kept by at least 6 in 10 of the 10 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

agy — delegating coding tasks to Antigravity

agy is the Antigravity CLI. In print mode (-p) it runs one autonomous coding turn in a workspace and exits. You stay the orchestrator: you write the spec, spawn agy, verify its output (build/tests/diff), and fix or re-prompt. agy does the bulk of the typing.

The command

agy -p "$(cat "<task-file>")" \
  --model gemini-3.8-flash-high \
  --dangerously-skip-permissions \
  --print-timeout 50m \
  --add-dir "<absolute-project-dir>"

Or use the bundled runner, which does the same thing with less quoting risk:

bash ~/.claude/skills/agy/scripts/run_agy.sh <task-file> <project-dir> [model] [timeout]

Why each flag matters:

  • -p / --print — non-interactive; without it agy opens a TUI and hangs your shell.
  • $(cat task-file) — put the prompt in a file, never inline. Multi-line prompts with backticks, $, quotes or heredocs break bash quoting (unexpected EOF) and PowerShell mangles them worse. Write the file with the Write tool, then cat it.
  • --model — pick explicitly (see below). Ask the user only if they haven't stated a preference in this session; otherwise reuse the last one they named.
  • --dangerously-skip-permissions — agy auto-approves its own tool calls. Without it the run blocks on prompts nobody can answer. Confirm with the user the first time in a session; after that it's implied.
  • --print-timeout 50m — default 0 waits forever; a stuck run would block you. 50m covers a full scaffold. Use the Bash timeout param (max 600000 ms) with run_in_background: true for anything over a few minutes so you aren't blocked.
  • --add-dir — agy's workspace root. It creates files relative to this dir, so point it at the exact folder you want output in (see "Where files land").
  • Do NOT pass --effort with Claude models — --effort is not supported for model "claude-opus-4-6-thinking". Gemini models encode effort in the model id (-high/-medium/-low) instead.

Models

agy models lists what's available. Known ids (Sept 2026):

iduse for
gemini-3.8-flash-highdefault for builds/scaffolds — fast, generous quota
gemini-3.1-pro-highharder reasoning, slower
claude-opus-4-6-thinking, claude-sonnet-4-6strongest, but quota is small and runs out mid-task; no --effort
gpt-oss-120b-mediumcheap small edits

If a run dies with a quota/rate error, switch model rather than retrying the same one. If the user says "model change karde X pe", use X for every subsequent run in the session.

Writing the task file

agy starts cold — it has none of your conversation context. The task file is its entire brief, so write it like a handoff to a competent contractor who has never seen the repo:

  1. Where — absolute working dir on the first line (You are working in C:/…/project).
  2. Read first — exact paths of spec, existing code and conventions it must match.
  3. Deliver — numbered list of files/features with concrete acceptance criteria (npm run build and npm test must pass; function signatures stay identical; etc.).
  4. Don't — what is not its job (e.g. "do not connect to any database, the orchestrator applies SQL via MCP"; "do not install X"). agy will otherwise wander into it.
  5. Finish — "End with a concise summary: files written, build/test results, anything you were unsure about." That summary is what comes back on stdout; it's your only view into what happened besides the diff.

Keep decisions made, not open — agy can't ask you questions in print mode, it will guess. Put the file in the project (e.g. <area>/AGY_TASK.md) if the user may want to see/reuse it, otherwise in the scratchpad.

See references/task-template.md for a fill-in template.

Where files land (Windows gotchas)

  • agy scaffolds inside --add-dir. If you want project/app/ and pass --add-dir project, you may get project/app/ or agy may pick a name; check with ls and mv after.
  • Moving the output folder can fail with Device or resource busy when your shell's cwd is inside it (or a dev server/agy is still running). cd out (or run mv with absolute paths from another dir) and retry.
  • Paths in the task file: use forward slashes (C:/Users/…) — both agy and Git Bash accept them.

After the run — always verify

agy reports success optimistically. Before telling the user it's done:

git status --short          # what it actually touched
npm run build && npm test   # or the project's equivalent

Typical leftovers to fix yourself (faster than a re-prompt): unused imports (TS6133), stubbed helpers left as TODO, .env committed, wrong folder. Re-prompt agy (new task file, same command, or agy -c -p "…" to continue the last conversation) only for substantial gaps.

If agy's quota dies mid-task, finish the remaining items yourself — don't leave the user with a half-built tree.

Generating images

agy has a built-in generate_image tool; you don't. When a task needs a real raster image (app icon, illustration, hero image, placeholder art), send just that image to agy instead of drawing it with SVG or canvas code.

bash ~/.claude/skills/agy/scripts/gen_image_agy.sh <prompt-file> <out-dir>/<name>.png [model] [timeout]
  • The prompt file describes only the picture: subject, style, composition, colours, what to leave empty, and "no text" unless you want lettering. The script adds the instructions agy needs: use generate_image, don't draw it with code, save under exactly this name, touch nothing else.
  • It runs agy inside the output folder, because agy saves relative to its workspace. It refuses to overwrite an existing file.
  • It checks the file, not the summary. It exits 2 if nothing was saved and 3 if the file isn't a PNG/JPEG/WebP (usually agy fell back to writing an SVG). On a non-zero exit, re-run once. Don't paper over it.
  • Look at the result before using it. Read the PNG yourself. Image models misspell lettering and ignore negative instructions, so check the details the task depends on.
  • Output is 1024×1024 PNG by default, around 800 KB. Resize or compress for the web yourself; don't ship it raw as a favicon.
  • One image per run. For a set (e.g. five feature illustrations), launch one run per image with run_in_background: true rather than asking one run for all five, so one failure doesn't cost the whole set.
  • Tested with gemini-3.8-flash-high. Keep the default model unless it refuses or fails.

Inside a larger build task, you can also just write "generate public/hero.png with your image generation tool — do not draw it with code" in the task file. Afterwards, check it's a real image the same way (file public/hero.png).

Interactive / other modes

  • agy -i "<prompt>" starts interactive with a first prompt — only if the user wants to drive agy themselves; tell them to run it via ! agy -i ….
  • agy -c -p "…" continues the most recent agy conversation (keeps its context).
  • agy --mode plan -p "…" for a plan-only pass when the task is fuzzy.
  • --output-format json if you need to parse the result programmatically.

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.