Antigravity helper
Skill contrapuntal/antigravity-cli-plugin-cc/skills/antigravity-helper
Use when the user wants to invoke Antigravity CLI for a code review of uncommitted changes or a branch diff, an adversarial design-challenge review, or to delegate a coding task to Antigravity for a second opinion or large-context analysis. Wraps the antigravity-cli-plugin-cc companion script.From its SKILL.md
npx -y skills add contrapuntal/antigravity-cli-plugin-cc --skill antigravity-helperAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
8.0 KB, as published. Nobody here has run it
antigravity-helper
This skill lets any Anthropic-Skill-aware agent (Codex CLI, OpenCode, Pi.dev, plus Claude Code via .claude/skills/) delegate to the Antigravity CLI (agy) for code review and task analysis. It wraps the antigravity-cli-plugin-cc companion script — a stateless Node.js dispatcher that assembles the prompt, writes it to a temp workspace directory, applies read-only or write-capable execution, runs agy in print mode, and extracts the marker-wrapped response so agy's tool-use narration never reaches the user.
If you are running inside Claude Code, prefer the slash-command surface (
/ask-antigravity:review,/ask-antigravity:adversarial-review,/ask-antigravity:rescue,/ask-antigravity:setup) provided by the antigravity-cli-plugin-cc plugin. This skill is the portable fallback for agents without that plugin format.
Prerequisites
agyCLI 1.0.7 or later, installed and authenticated. Install withcurl -fsSL https://antigravity.google/cli/install.sh | bashorbrew install --cask antigravity-cli(agy is not distributed via npm). Older agy hangs in headless print mode; the companion refuses to invoke it and asks for an upgrade. Sign in by runningagyinteractively and completing Google sign-in, or setANTIGRAVITY_API_KEYin the environment.node18.18 or later on PATH.ANTIGRAVITY_CLI_PLUGIN_CC_ROOTenv var pointing at the absolute path of the clonedantigravity-cli-plugin-ccrepository. If that variable is unset, ask the user for the path before running the companion.- Workspace trust. If
agyhas not been interactively trusted in the directory you invoke it from, trust the workspace in agy (it recordstrustedWorkspacesin itssettings.json). Without trust, headlessagymay refuse to proceed.
When to invoke this skill
Trigger on requests that match any of:
- "review my changes / diff / branch with Antigravity"
- "challenge this design choice / pressure-test this implementation"
- "ask Antigravity to investigate / analyze / fix X"
- "give me a second opinion on…" (especially when the question benefits from a large-context single pass)
Do not trigger when the user only wants Claude's own review or when the task is small enough that delegation adds latency without value.
Invocations
All commands assume the working directory is the repo being reviewed/analyzed.
Code review (read-only, structured markdown output)
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" review
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" review --base main
The output is markdown with a fixed skeleton: ## Summary then ### Critical / High / Medium / Nits sections. Stream it back to the user verbatim.
Adversarial review (read-only, steerable, accepts focus text)
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" adversarial-review "look for race conditions in the retry path"
Same output shape; framing is "find reasons this should not ship" rather than general review.
Delegate a task / second opinion
# Default: Antigravity analyzes and proposes. NOTE: this is not a sandbox — agy may
# still edit files (see "Not a guaranteed sandbox" below). Run on a clean git tree.
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" task "investigate why the build is failing in CI"
# Write intent: passes --dangerously-skip-permissions so agy won't stall on prompts.
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" task --write "fix the failing test with the smallest safe patch"
Prefer --prompt-file <path> over inline text when the task text is untrusted or contains shell metacharacters: it carries the text as data instead of on a shell command line.
Setup probe (verify install + auth)
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" setup
node "$ANTIGRAVITY_CLI_PLUGIN_CC_ROOT/plugins/ask-antigravity/scripts/antigravity-companion.mjs" setup --json
Note for Codex CLI users with Antigravity OAuth (not
ANTIGRAVITY_API_KEY): the live review call may stall on an interactive browser auth prompt even though the setup probe reportsauthenticated: true. Two sandbox restrictions cause this — Codex'sworkspace-writemode (1) blocks outbound network, so agy's OAuth-token refresh HTTP request fails, and (2) blocks writes outside the workspace, so agy cannot persist the rotated token to its config under~/.gemini/antigravity-cli/. Either failure makes agy fall back to interactive browser auth, which Codex's process isolation cannot complete. Both must be granted:codex exec -s workspace-write \ -c 'sandbox_workspace_write.writable_roots=["/Users/<you>/.gemini"]' \ -c 'sandbox_workspace_write.network_access=true' \ --skip-git-repo-check \ "your prompt that triggers antigravity-helper"The misleading part: the error reads like a user cancellation. The user did not cancel; the sandbox blocked the refresh. (Note:
~/.gemini/antigravity-cli/is agy's real config directory — that path is not a typo.)
If the result reports installed: false, suggest installing agy with curl -fsSL https://antigravity.google/cli/install.sh | bash or brew install --cask antigravity-cli. If authenticated: false, suggest running agy interactively to sign in.
Model selection
Reviews and rescue runs default to the model currently selected in the agy TUI (/model picker). Pass --model "<display name>" to any subcommand to override per call — valid names come from agy models (e.g. Gemini 3.5 Flash (Low)); they contain spaces, so quote them.
Backgrounding
For large reviews (multi-file diffs, branch reviews, or long rescue tasks), run the companion in the host agent's background-bash facility (run_in_background: true for Claude Code, equivalent for other agents). The companion script itself is stateless and synchronous — it does not manage background jobs.
What this skill is NOT
- Not a slash-command surface. Skills are model-invoked; for
/ask-antigravity:review-style UX, install the antigravity-cli-plugin-cc plugin into Claude Code instead. - Not stateful. No transcripts, no session resume, no PID tracking. Every invocation is a fresh one-shot agy call.
- Not a guaranteed sandbox.
reviewandadversarial-revieware safe by construction: the whole diff is inlined into the prompt and agy is run in an isolated empty working directory, so it never sees the repo. Buttaskruns agy in the repo, and omitting--writedoes not stop it from editing files — on agy 1.1.1 no CLI flag does (verified: omitting--dangerously-skip-permissions,--mode plan, and--sandboxall still wrote).--writesignals intent and auto-approves prompts; it is not a capability boundary. Runtaskon a clean git tree so any change is visible ingit diff.
Reference
- Source: antigravity-cli-plugin-cc repository,
plugins/ask-antigravity/scripts/antigravity-companion.mjs - License: Apache-2.0
- Test suite:
node --test tests/*.test.mjsfrom the repo root (covering arg parsing, prompt assembly, git context collection, prompt-injection sanitization, symlink-exfiltration prevention, output capture/timeout handling, process-signal handling, and an end-to-end companion run against a fakeagy).AGY_LIVE=1 node --test tests/live.test.mjssmoke-tests the real agy after upgrades.