| name | coderabbit |
| description | Run CodeRabbit CLI code review and interactively fix issues |
| triggers | ["coderabbit","code review","review code","analyze code","code quality"] |
CodeRabbit Interactive Code Review
Use this skill to run CodeRabbit CLI code reviews and interactively fix reported issues.
Important: Interactive Workflow
- Group similar issues together (e.g., all unused imports, all type issues)
- Show code context for each finding in the initial presentation
- Ask once per group whether to fix all issues in that group
- Apply fixes immediately after user approval - NO additional confirmation prompts
Workflow
1. Run CodeRabbit CLI
coderabbit review --prompt-only --base origin/main
coderabbit review --prompt-only --type uncommitted
Note: CodeRabbit reviews can take 7-30+ minutes. Inform the user.
2. Parse and Cluster Findings
Group findings into categories such as:
- Unused imports - Remove unused import statements
- Type issues - Fix type annotations
- Error handling - Add defensive checks
- Code quality - Constants, documentation
- Naming - Convention violations
- Other - Miscellaneous
3. Present Each Cluster with Analysis
For each cluster, present ALL findings with:
- The finding details and code context
- Your analysis/opinion about whether to fix it and why
Be opinionated:
- "CRITICAL - Must fix before merge"
- "Good catch - should be fixed"
- "Low priority - style preference, not a bug"
- "False positive - code is correct because..."
Use AskUserQuestion ONCE per cluster:
- "Yes - Fix all" - Apply all fixes
- "No - Skip all" - Skip entire cluster
- "Review individually" - One-by-one for this cluster
4. Apply Approved Fixes
When user approves a cluster:
- Read each file to understand context
- Apply fixes
- Show a summary of changes made
- Immediately move to next cluster
5. After All Fixes
make lint
make test/failed-only
coderabbit review --prompt-only --base origin/main
If CodeRabbit Not Installed
curl -fsSL https://cli.coderabbit.ai/install.sh | sh