Home / Market / gemini review

gemini review

gemini-review

claude-command★ 348290 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- allowed-tools: Bash(gh:*), Read, Grep, TodoWrite, Edit, MultiEdit argument-hint: [pr-number] | --analyze-only | --preview | --priority high|medium|low description: Transform Gemini Code Assist PR reviews into prioritized TodoLists with automated execution model: claude-sonnet-4-5-20250929

---

Gemini PR Review Automation

Why This Command Exists

The Problem: Gemini Code Assist provides free, automated PR reviews on GitHub. But AI-generated reviews often get ignored because they lack the urgency of human feedback.

The Pain Point: Manually asking Claude Code to:

  1. "Analyze PR #42's Gemini review"
  2. "Prioritize the issues"
  3. "Create a TodoList"
  4. "Start working on them"

...gets tedious fast.

The Solution: One command that automatically fetches Gemini's review, analyzes severity, creates prioritized TodoLists, and optionally starts execution.

What Makes This Different

| | Code Analysis | Code Improvement | Gemini Review | |---|---|---|---| | Trigger | When you want analysis | When you want improvements | When Gemini already reviewed | | Input | Local codebase | Local codebase | GitHub PR's Gemini comments | | Purpose | General analysis | General improvements | Convert AI review → actionable TODOs | | Output | Analysis report | Applied improvements | TodoList + Priority + Execution |

Triggers

Usage

/gemini-review [pr-number] [--analyze-only] [--preview] [--priority high|medium|low]

Behavioral Flow

  1. Fetch: Retrieve PR details and Gemini review comments using GitHub CLI
  2. Analyze: Parse and categorize review comments by type and severity
  3. Prioritize: Assess each comment for refactoring necessity and impact
  4. TodoList: Generate structured TodoList with priority ordering
  5. Execute: (Optional) Start working on high-priority items with user confirmation

Key behaviors:

Tool Coordination

Key Patterns

Examples

Analyze Current Branch's PR

/gemini-review
# Automatically detects current branch's PR
# Generates prioritized TodoList from Gemini review
# Ready to execute after user confirmation

Analyze Specific PR

/gemini-review 42
# Analyzes Gemini review comments on PR #42
# Creates prioritized TodoList with effort estimates

Preview Mode (Safe Execution)

/gemini-review --preview
# Shows what would be fixed without applying changes
# Creates TodoList for manual execution
# Allows review before implementation

Real Workflow Example

Before (Manual, Tedious):

1. Open GitHub PR page
2. Read Gemini review (often skipped because "AI generated")
3. Tell Claude: "Analyze PR #42 Gemini review"
4. Tell Claude: "Prioritize these issues"
5. Tell Claude: "Create TodoList"
6. Tell Claude: "Start working on them"

After (Automated):

/gemini-review 42
# → TodoList automatically created
# → Priorities set based on severity
# → Ready to execute immediately

Analysis Output Structure

1. Review Summary

2. Categorized Analysis

For each review comment:

3. TodoList Generation

Automatically creates TodoList with user confirmation before execution

High Priority (Must-Fix):
✓ Fix SQL injection in auth.js:45 (15 min)
✓ Remove exposed API key in config.js:12 (5 min)

Medium Priority (Should-Fix):
○ Refactor UserService complexity (45 min)
○ Add error handling to payment flow (30 min)

Low Priority (Nice-to-Have):
○ Update JSDoc comments (20 min)
○ Rename variable for clarity (5 min)

Skipped:
- Style suggestion conflicts with project standards
- Already addressed in different approach

*Note: User reviews and confirms TodoList before any code modifications are made*

4. Execution Plan

5. Decision Record

Boundaries

Will:

Will Not:

Decision Criteria

Must-Fix (Critical) - High Priority

Should-Fix (Improvement) - Medium Priority

Nice-to-Have (Suggestion) - Low Priority

Skip (Not Applicable)

Integration with Git Workflow

Recommended Flow

1. Create PR → Gemini reviews automatically
2. Run /gemini-review to generate TodoList
3. Review TodoList priorities and adjust if needed
4. Execute fixes systematically (Phase 1 → Phase 2 → Phase 3)
5. Commit changes with conventional commit messages
6. Update PR and re-request Gemini review if needed

Commit Strategy

Advanced Usage

Interactive Mode (Recommended for Complex Reviews)

/gemini-review --interactive
# Step through each review comment with decision prompts
# Allows manual priority adjustment
# Shows code context for each issue

Export Analysis

/gemini-review --export gemini-analysis.md
# Export comprehensive analysis to markdown file
# Useful for team review and documentation
# Includes all decisions and reasoning

Dry Run (No TodoList Creation)

/gemini-review --dry-run
# Shows analysis and priorities without creating TodoList
# Useful for understanding scope before committing
# No changes to workflow state

Tool Requirements

Setup Gemini Code Assist

If you haven't set up Gemini Code Assist yet:

  1. Visit Gemini Code Assist GitHub App
  2. Install the app on your organization/account
  3. Select repositories for integration
  4. Gemini will automatically review PRs with /gemini tag or auto-review

Why Gemini?

Limitations