From gemini-peer-review
Consult Google Gemini CLI as a peer reviewer for code review, architecture advice, debugging, and security audits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gemini-peer-review:gemini-peer-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Consult Google's Gemini CLI to get a second opinion on code, architecture, debugging, or security. Synthesize both perspectives into a unified recommendation for the developer.
Consult Google's Gemini CLI to get a second opinion on code, architecture, debugging, or security. Synthesize both perspectives into a unified recommendation for the developer.
/gemini-peer-review $ARGUMENTS
Read $ARGUMENTS and classify into one of four modes. If ambiguous, default to code-review.
| Mode | Triggers | Gemini Model |
|---|---|---|
| code-review | "review", "check", "bugs", file paths without other context | gemini-2.5-flash |
| architecture | "architecture", "design", "scalability", "refactor", "pattern" | gemini-2.5-pro |
| debug | "debug", "error", "fix", "broken", "failing", stack traces | gemini-2.5-flash |
| security | "security", "audit", "vulnerability", "auth", "injection", "XSS" | gemini-2.5-pro |
For tasks involving complex trade-off analysis or multi-system reasoning, upgrade to gemini-3-pro-preview regardless of mode.
$ARGUMENTS using the table above.git diff), or architecture docs as needed.[Claude Code consulting Gemini for peer review]
Fill in task-specific sections with gathered context.# For file-based review (pipe content):
cat <file> | gemini -m <model> -p "<prompt>"
# For multi-file or general queries:
gemini -m <model> -p "<prompt with inline context>"
Use the templates in references/prompt-templates.md. The core format is always:
[Claude Code consulting Gemini for peer review]
Task: [Selected template for the classified mode, with context filled in]
Provide direct analysis with file:line references. I will synthesize your findings with mine before presenting to the developer.
Append gathered file contents, error messages, or diffs directly into the prompt body after the task description.
Apply in order:
$ARGUMENTS mentions a specific model name (flash, pro, 3-pro), use it.gemini-3-pro-previewgemini-2.5-progemini-2.5-flashPresent findings to the developer as:
## Peer Review: [Mode] — [brief subject]
### My Analysis
[Your findings with file:line references]
### Gemini's Analysis
[Key findings from Gemini, attributed]
### Unified Recommendation
[Reconciled view — agreements, disagreements with reasoning, action items]
gemini CLI is not found: tell the developer to install it (npm install -g @anthropic-ai/gemini-cli or check Google's docs) and retry..gitignore patterns when gathering file context.npx claudepluginhub m86-ai/claude-marketplace --plugin gemini-peer-reviewInvokes Google Gemini CLI for second opinions, architectural advice, code reviews, security audits, and debugging using 1M+ context window in Claude Code workflows.
Guides test-driven development for Django applications using pytest-django, factory_boy, and Django REST Framework. Covers red-green-refactor workflow, conftest fixtures, and coverage reporting.