gemini-imagegen
Use when the user asks to generate, create, draw, edit, or restyle an image, or when a task needs image assets — logos, icons, illustrations, hero images,…
Use BEFORE writing or editing code, tests, docs, or other content yourself — whenever the writing spans more than one file or more than ~20 lines. Delegating the writing to Gemini sessions via the agy (Antigravity) CLI is the default; you orchestrate. Also use when the user asks
$ npx -y skills add Vallykrie/gemini-swarm-skill --skill gemini-swarm --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/gemini-swarmContext preview
The summary Claude sees to decide when to auto-load this skill.
Use BEFORE writing or editing code, tests, docs, or other content yourself — whenever the writing spans more than one file or more than ~20 lines. Delegating the writing to Gemini sessions via the agy (Antigravity) CLI is the default; you orchestrate. Also use when the user asks
name: gemini-swarm description: Use BEFORE writing or editing code, tests, docs, or other content yourself — whenever the writing spans more than one file or more than ~20 lines. Delegating the writing to Gemini sessions via the agy (Antigravity) CLI is the default; you orchestrate. Also use when the user asks to swarm/fan out/parallelize work across Gemini or invokes /gemini-swarm. Triggers include implementing a feature, scaffolding or creating files, refactors, migrations, bulk edits, boilerplate, test suites, documentation, and multi-topic research. Skip only for trivial edits (a few lines in one file) or when the agy CLI is unavailable.
You are the **orchestrator**: you plan, decompose, route, and review. `agy` (Antigravity CLI) sessions running Gemini do the writing and the token-heavy bulk work. **Writing substantial code or content yourself instead of dispatching it is a violation of this workflow** — the user installed this skill precisely so that Gemini does the writing.
Verified against agy **1.0.15**. Re-check `agy --help` if flags seem wrong — this CLI changes fast.
Before you write anything, apply this rule:
dispatch it to Gemini via this skill. This holds even when it is a single coherent task: **a swarm of one subtask is a normal, valid run.** Parallel fan-out is an optimization, not a precondition.
that need no artifacts → do them yourself.
routing, integration, verification, and the final report.
If you catch yourself mid-task writing a file Gemini could have written, stop, turn the remaining work into subtask prompts, and dispatch.
| Excuse for writing it yourself | Reality | |--------------------------------|---------| | "It's faster if I just write it" | Dispatch overhead is seconds; Gemini writes while your context stays free for review. | | "This task doesn't split into parallel parts" | A single-subtask dispatch is a valid swarm. Splitting is optional. | | "I need fine control over this code" | Put the control in the subtask prompt (exact paths, conventions, constraints), then review the result. | | "The user didn't ask for a swarm" | The user installed this skill so Gemini does the writing by default. Explicit invocation is not required. | | "I'm already halfway through writing it" | Sunk cost. Dispatch the remaining files. |
1. `command -v agy` — if missing, stop and tell the user to install the Antigravity CLI. 2. Locate the dispatcher script, in this order:
The `/gemini-swarm` command (or the user directly) supplies one of three modes. If none was given, use `default`.
| Mode | Dispatch flag | Meaning | |------|---------------|---------| | `default` | mirror the host | If you (the host agent) are currently running with auto-accepted/bypassed permissions, use `--auto`. If your own edits require user review, use `--request`. | | `auto` | `--auto` | agy jobs run with `--dangerously-skip-permissions --sandbox` — full autonomy inside agy's terminal-restricted sandbox. | | `request` | `--request` | agy jobs never skip permissions; agy's configured `toolPermission` policy (`request-review`) governs gated tool calls. |
Never ask the user to pick a mode mid-run; resolve it yourself from the rule above.
Split the task into **independent** subtasks:
Prefer splits along existing boundaries: different files, modules, directories, or research topics.
swarm only the independent parts.
share nothing — no conversation history, no knowledge of the other subtasks. Include in every prompt: the goal, the exact file paths to read/write, relevant constraints/conventions, and the expected output format.
nothing else. End each prompt with: "When done, print a line starting with `TOUCHED:` listing every file you created or modified, then a one-paragraph summary of what you did."
single coherent unit — dispatch it anyway rather than writing it yourself. Do not throttle or batch: quota is not a constraint, and all subtasks launch concurrently.
Choose per subtask, automatically — never ask the user which model:
architecture, tricky refactors, analysis with judgment calls, anything where a wrong answer is expensive.
renames, format conversions, test scaffolding, doc generation, summarizing files, straightforward CRUD. Use the exact string `Gemini 3.7 Flash (High)` for mechanical-but-fiddly work and `Gemini 3.7 Flash (Medium)` for plain bulk work.
These are exact `agy models` names — pass them verbatim to the `MODEL:` header.
Create one prompt file per subtask in a temp directory (e.g. `$(mktemp -d)/01-slug.prompt.md`). Format — first line is a model header, then a blank line, then the prompt:
MODEL: Gemini 3.7 Flash (Medium) Summarize the public API of src/parser/ ...
Name files `NN-short-slug.prompt.md`; the basename (minus `.prompt.md`) becomes the subtask name in logs.
**If
Gemini does the writing. Your orchestrator plans and reviews. gemini-swarm is a Claude Code plugin/skill (portable to other harnesses) that makes Gemini the default writer for substantial work.
Repo: Vallykrie/gemini-swarm-skill
Use when the user asks to generate, create, draw, edit, or restyle an image, or when a task needs image assets — logos, icons, illustrations, hero images,…