一键导入
gemini-review
Code review and plan validation using Google Gemini CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Code review and plan validation using Google Gemini CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Designer-turned-developer who crafts stunning UI/UX even without design mockups
Git expert for atomic commits, rebasing, and history management
Critical-thinking brainstorming partner that acts as a requirements analyst
Create new Claude Code agent skills following Anthropic's best practices
Activate maximum performance mode with parallel agent orchestration
基于 SOC 职业分类
| name | gemini-review |
| description | Code review and plan validation using Google Gemini CLI |
| trigger-terms | review, validate, gemini, code review, plan validation |
This skill enables a dual-AI review workflow where Claude prepares context and Gemini provides independent validation. The output always includes both Gemini's raw feedback and Claude's synthesized action plan.
Model: gemini-3-pro-preview (fixed)
Cost: Free tier (60 requests/min, 1000 requests/day)
| Type | Purpose | When to Use |
|---|---|---|
| plan | Validate implementation plan | Before starting development |
| code | Review completed code | After implementing features |
| architecture | Discuss system design | During design phase or refactoring |
Before executing, collect:
plan, code, or architecturefastapi, nextjs, or generalBased on tech stack, load the corresponding checklist from references/checklists.md:
Load the appropriate prompt template from references/prompt-templates.md and execute:
For inline prompts:
gemini -m gemini-3-pro-preview -p "{constructed_prompt}" --output-format json
For file content review:
cat {file_path} | gemini -m gemini-3-pro-preview -p "{review_instructions}" --output-format json
For multi-line prompts (heredoc):
gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
{constructed_prompt}
EOF
)"
Gemini returns JSON with this structure:
{
"response": "The actual review content",
"stats": {
"models": { ... },
"tools": { ... }
}
}
Extract the review content from the response field. Use jq for parsing:
result=$(gemini -m gemini-3-pro-preview -p "..." --output-format json)
echo "$result" | jq -r '.response'
CRITICAL: Always present results in two clearly separated sections:
Present Gemini's complete response without modification. This shows the user exactly what Gemini found.
Based on Gemini's feedback, Claude provides:
Summary (2-3 sentences)
Action Items (prioritized list)
Ready-to-Apply Code (when applicable)
---
## 📋 Gemini Review Results
### A. Gemini Response (Raw)
{gemini_response_verbatim}
---
### B. Claude's Analysis
#### Summary
{2-3 sentence overview}
#### Action Items
🔴 **Critical**
- Issue: {description}
- Fix: {solution}
🟡 **Important**
- Issue: {description}
- Fix: {solution}
🟢 **Minor**
- Issue: {description}
- Fix: {solution}
#### Ready-to-Apply Code
**{issue_name}**
```{language}
{fixed_code}
## Command Examples
### Plan Review
```bash
gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
[PLAN REVIEW REQUEST]
Review this implementation plan for completeness and potential issues:
{plan_content}
Check for: Logic errors, missing edge cases, architecture flaws, security concerns.
Provide specific, actionable feedback.
EOF
)"
cat src/api/auth.py | gemini -m gemini-3-pro-preview -p "Review this FastAPI authentication code for security issues, bugs, and best practices. Provide specific line-by-line feedback." --output-format json
gemini -m gemini-3-pro-preview --output-format json -p "$(cat << 'EOF'
[ARCHITECTURE REVIEW]
System: {system_name}
Tech Stack: FastAPI + Next.js + AWS
{architecture_description}
Evaluate: Scalability, reliability, maintainability, security, cost efficiency.
Suggest improvements with trade-off analysis.
EOF
)"
| Environment | Execution Method |
|---|---|
| Claude Code | Direct bash execution |
| Claude (Web/Desktop) | Use bash_tool |
Command syntax remains identical across environments.
If Gemini returns an error:
Free tier limits:
To conserve quota:
references/checklists.md: Tech stack-specific review checklistsreferences/prompt-templates.md: Prompt templates for each review type