From gemini-peer-review
Consult Google Gemini CLI as a peer reviewer for code review, architecture advice, debugging, and security audits.
npx claudepluginhub m86-ai/claude-marketplace --plugin gemini-peer-reviewThis skill is limited to using the following tools:
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.
Invokes Google Gemini CLI for second opinions, architectural advice, code reviews, security audits, and debugging using 1M+ context window in Claude Code workflows.
Gets second opinions from OpenAI Codex and Google Gemini on code reviews, plans, docs, codebase analysis, or tasks. Uses git diffs, file access, and custom tools.
Applies Spring Security best practices for authn/authz, input validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
Share bugs, ideas, or general feedback.
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.