If .claude/skills/antigravity-cli/SKILL.md.disabled exists, stop before reading a fallback.
Project configuration: If the current project contains .claude/skills/antigravity-cli/SKILL.md, read and apply it instead of this bundled default. The project copy is the capability source of truth.
Repository context: Read ../setup/references/task-context.md when resolving a task, project commands, named agent roles, or legacy .claude/ resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.
Antigravity CLI
Announcement: Begin with: "I'm using the antigravity-cli skill for cross-AI validation with Antigravity (agy)."
Use this wrapper for an explicit Antigravity second opinion or for research that
needs its provider-specific grounding. Read the shared lifecycle in
../codex-cli/references/cross-ai-run.md first.
Provider adapter
Check command -v agy, then agy --version. Read agy --help before using
print mode, output, timeout, model, or effort flags. If the binary or a
required capability is absent, report the prerequisite and stop.
For an explicit Gemini run, inspect agy models, choose an exact currently
listed gemini-* slug, and pass it as --model. Record the selected
provider and model. If no model was requested, omit --model and retain the
provider's configured default; an unreported default model is unverified and
does not establish model-level independence.
For review or research, resolve the loaded skill directory, run from the
target repository root, and use the runner with a fresh output directory:
ANTIGRAVITY_SKILL_DIR="/absolute/path/to/loaded/antigravity-cli"
python3 "$ANTIGRAVITY_SKILL_DIR/scripts/review.py" \
--prompt-file /tmp/agy-prompt.md \
--file path/to/file.py \
--file path/to/requirements.md \
--model '<exact slug from agy models>' \
--effort high \
--timeout 120 \
--output-dir /tmp/agy-review-unique
ANTIGRAVITY_SKILL_DIR must be the actual directory containing this loaded
skill; do not resolve it from the target repository's current directory.
--file is repeatable. --effort is optional and accepts low, medium,
or high. The runner verifies and pre-reads those files, then
inlines their contents so a denied provider file read cannot look like a
successful review. --model is optional and has no runner default; omit the
line when the configured provider default is intended. Use a new output
directory for every attempt and do not retry implicitly.
Read receipt.json, stdout.json, version.stderr.log, response.txt on
success, and stderr.log from the output directory. A valid completed
review requires process exit 0, payload
status: SUCCESS, a non-empty response, and no denied_actions. A
SUCCESS result with an
empty or visibly partial answer, or with any denied action, is PARTIAL and
must never be reported as a passed review. Inspect and retain stderr even on
exit 0. Return the shared receipt; the result never authorizes edits, shell
work, or publication.
The runner invokes the supported headless shape: agy -p --output-format json --print-timeout <duration>, with an explicit --model <slug> only when chosen
by the caller. The old --approval-mode and -o forms are incompatible with
the tested Antigravity CLI. Do not use permission-bypass flags, settings/auth
edits, or automatic model fallback.
For upstream behavior, use the official headless CLI docs,
migration guide, and
installation guide. Verify local
behavior first because flags, models, and output fields can change.
Prompt requirements
Include the repository root, task/requirements path when task-attached, files or
diff scope, and concrete questions. For web research, ask for source URLs and
separate sourced claims from repository observations. Resolve task evidence
through ../setup/references/task-context.md; standalone calls do not create a
task. Do not put unverified @path references in review prompts; pass verified
files through the runner's repeatable --file option.
When not to use
- The caller did not explicitly choose Antigravity or delegate to it
- A normal review or research tool already satisfies the request
- The request needs interactive refinement or file-writing work
References
../codex-cli/references/cross-ai-run.md — shared lifecycle and receipt
reference.md — local-help-first flags, models, output, and migration notes
templates.md — prompt shapes and runner examples
1---2name: antigravity-cli-33description: Run Google Antigravity CLI (agy) for web-grounded research, cross-AI review, or validation when those capabilities are explicitly needed or another skill delegates to agy. One-shot only; do not select it for an ordinary review without an explicit provider choice.4---56<!-- claudops-build: project-config-pointer -->7> If `.claude/skills/antigravity-cli/SKILL.md.disabled` exists, stop before reading a fallback.8> **Project configuration:** If the current project contains `.claude/skills/antigravity-cli/SKILL.md`, read and apply it instead of this bundled default. The project copy is the capability source of truth.9> **Repository context:** Read `../setup/references/task-context.md` when resolving a task, project commands, named agent roles, or legacy `.claude/` resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.1011# Antigravity CLI1213> **Announcement**: Begin with: "I'm using the **antigravity-cli** skill for cross-AI validation with Antigravity (agy)."1415Use this wrapper for an explicit Antigravity second opinion or for research that16needs its provider-specific grounding. Read the shared lifecycle in17`../codex-cli/references/cross-ai-run.md` first.1819## Provider adapter20211. Check `command -v agy`, then `agy --version`. Read `agy --help` before using22 print mode, output, timeout, model, or effort flags. If the binary or a23 required capability is absent, report the prerequisite and stop.242. For an explicit Gemini run, inspect `agy models`, choose an exact currently25 listed `gemini-*` slug, and pass it as `--model`. Record the selected26 provider and model. If no model was requested, omit `--model` and retain the27 provider's configured default; an unreported default model is unverified and28 does not establish model-level independence.293. For review or research, resolve the loaded skill directory, run from the30 target repository root, and use the runner with a fresh output directory:3132 ```bash33 ANTIGRAVITY_SKILL_DIR="/absolute/path/to/loaded/antigravity-cli"34 python3 "$ANTIGRAVITY_SKILL_DIR/scripts/review.py" \35 --prompt-file /tmp/agy-prompt.md \36 --file path/to/file.py \37 --file path/to/requirements.md \38 --model '<exact slug from agy models>' \39 --effort high \40 --timeout 120 \41 --output-dir /tmp/agy-review-unique42 ```4344 `ANTIGRAVITY_SKILL_DIR` must be the actual directory containing this loaded45 skill; do not resolve it from the target repository's current directory.46 `--file` is repeatable. `--effort` is optional and accepts `low`, `medium`,47 or `high`. The runner verifies and pre-reads those files, then48 inlines their contents so a denied provider file read cannot look like a49 successful review. `--model` is optional and has no runner default; omit the50 line when the configured provider default is intended. Use a new output51 directory for every attempt and do not retry implicitly.524. Read `receipt.json`, `stdout.json`, `version.stderr.log`, `response.txt` on53 success, and `stderr.log` from the output directory. A valid completed54 review requires process exit 0, payload55 `status: SUCCESS`, a non-empty `response`, and no `denied_actions`. A56 `SUCCESS` result with an57 empty or visibly partial answer, or with any denied action, is `PARTIAL` and58 must never be reported as a passed review. Inspect and retain stderr even on59 exit 0. Return the shared receipt; the result never authorizes edits, shell60 work, or publication.6162The runner invokes the supported headless shape: `agy -p --output-format json63--print-timeout <duration>`, with an explicit `--model <slug>` only when chosen64by the caller. The old `--approval-mode` and `-o` forms are incompatible with65the tested Antigravity CLI. Do not use permission-bypass flags, settings/auth66edits, or automatic model fallback.6768For upstream behavior, use the official [headless CLI docs](https://antigravity.google/docs/cli/headless/),69[migration guide](https://antigravity.google/docs/cli/gcli-migration/), and70[installation guide](https://antigravity.google/docs/cli/install/). Verify local71behavior first because flags, models, and output fields can change.7273## Prompt requirements7475Include the repository root, task/requirements path when task-attached, files or76diff scope, and concrete questions. For web research, ask for source URLs and77separate sourced claims from repository observations. Resolve task evidence78through `../setup/references/task-context.md`; standalone calls do not create a79task. Do not put unverified `@path` references in review prompts; pass verified80files through the runner's repeatable `--file` option.8182## When not to use8384- The caller did not explicitly choose Antigravity or delegate to it85- A normal review or research tool already satisfies the request86- The request needs interactive refinement or file-writing work8788## References8990- `../codex-cli/references/cross-ai-run.md` — shared lifecycle and receipt91- `reference.md` — local-help-first flags, models, output, and migration notes92- `templates.md` — prompt shapes and runner examples