| name | ask-gemini-for-review |
| description | Delegates code review to Gemini 3.7 Flash (High) via the Antigravity CLI (agy), enforcing the strict standards of the code-review-and-quality skill. Use this when you want a highly capable model to review code, PRs, or files against the five-axis standard. |
Ask Gemini for Review
This skill delegates a comprehensive, multi-axis code review to Gemini 3.7 Flash (High) using the agy CLI. It works by combining Gemini's high reasoning capabilities with the strict standards defined in the code-review-and-quality skill.
When to Use
- You need to perform a thorough code review on a file, branch, or PR.
- You want a second, highly capable AI perspective (Gemini) with high reasoning effort to evaluate the code for correctness, readability, architecture, security, and performance.
- You want to offload the heavy lifting of a deep code review without losing the project's quality gates.
How it Works
Since Gemini is running as a separate process via agy, you need to give it the context of your review standards. You can achieve this by either:
- Instructing Gemini to read the
code-review-and-quality skill file itself.
- Reading the
code-review-and-quality skill file locally and passing its contents in the prompt.
Location of the review standards: ~/.agents/skills/code-review-and-quality/SKILL.md
If the skill is not present in this directory, instruct Gemini to search the usual skill folders such as ~/.agents/skills/
How to Call Gemini for Review
Always use the agy CLI. Be explicit that Gemini is only reviewing and should not make any code changes.
NOTE: ALWAYS RUN GEMINI WITH --print-timeout 10m AS GEMINI CAN TAKE QUITE A WHILE.
Workspace access (--add-dir)
agy uses --add-dir <path> to add a repository (or other directory) as its workspace. It does not have a --workdir flag.
- Pass
--add-dir for every path Gemini needs to read or write.
- Include the target repository, and any additional directories required for the review (e.g. skill folders if they live outside the repo).
- Example:
agy --add-dir /Users/david/src/squads --print-timeout 10m ...
Method 1: Tell Gemini to use the skill directly
This requires no --dangerously-skip-permissions, so attempt this first.
Always include --add-dir <repo> and --print-timeout 10m.
agy --model "Gemini 3.7 Flash (High)" --add-dir /path/to/repo --print-timeout 10m -p "This is a code review task. Do not make any code changes, just provide the review output. First, load the skill 'code-review-and-quality'. If this skill is not available, STOP and tell the user that this skill can not be found. Then, review the code in ./src/my_file.ts against the five axes (Correctness, Readability, Architecture, Security, Performance). Output the review using the severity labels (Critical, Nit, Optional, etc.). Do not implement the changes."
Method 2: Tell Gemini to read the file (Recommended)
Let Gemini use its tools to read the standard before reviewing the target file(s).
agy --model "Gemini 3.7 Flash (High)" --add-dir /path/to/repo --print-timeout 10m --dangerously-skip-permissions -p "This is a code review task. Do not make any code changes, just provide the review output. First, read your review standards from /Users/david/.agents/skills/code-review-and-quality/SKILL.md. Then, review the code in ./src/my_file.ts against the five axes (Correctness, Readability, Architecture, Security, Performance). Output the review using the severity labels (Critical, Nit, Optional, etc.). Do not implement the changes."
Method 3: Pass the context explicitly
If you prefer to inject the context directly into the prompt without relying on Gemini's read tool:
REVIEW_STANDARDS=$(cat /Users/david/.agents/skills/code-review-and-quality/SKILL.md)
agy --model "Gemini 3.7 Flash (High)" --add-dir /path/to/repo --print-timeout 10m -p "Perform a code review on ./src/my_file.ts. Do not make any code changes. Here are the standards you MUST follow:
$REVIEW_STANDARDS
Review the target code against the five axes and use the severity labels. Output the review only."
Important Flags
--model "Gemini 3.7 Flash (High)" — Always use the high reasoning effort model for code reviews.
--add-dir <path> — Add each directory Gemini needs to access. There is no --workdir flag; use --add-dir for the repo and any other required paths.
--print-timeout 10m — Always set a 10 minute print timeout; reviews can take a while.
--dangerously-skip-permissions — Required when using Method 2 so Gemini can read the standards file and the target code without getting blocked by permission prompts.
Always pass --add-dir for relevant paths and --print-timeout 10m on every delegated review.
Enforced Review Axes
By delegating to Gemini with this skill, you ensure it evaluates:
- Correctness: Bugs, edge cases, error handling, test validity.
- Readability & Simplicity: Naming, complexity, dead code artifacts.
- Architecture: Module boundaries, appropriate abstractions, coupling.
- Security: Vulnerabilities, input validation, external data handling.
- Performance: Bottlenecks, N+1 query patterns, memory usage.