SKILL.md
Local Code Review with CodeRabbit CLI
When the user wants to review their local code changes before committing or pushing, delegate to the cr-reviewer subagent.
When to Use
Use this skill when the user:
- Asks to "review my code" or "check my changes"
- Mentions CodeRabbit and reviewing
- Wants to run a code review before committing
- Wants to check for issues in their changes
What the Subagent Handles
The cr-reviewer subagent will:
- Check Prerequisites
- Verify CodeRabbit CLI is installed - Check authentication status - Guide through setup if needed
- Run Review
- Execute coderabbit review --agent - Default to --type all (uncommitted + committed changes) - Auto-detect base branch
- Present Results
- Parse and categorize findings by severity - Show summary with actionable items
- Interactive Fix Loop
- Apply suggested fixes - Re-run review to verify - Continue until resolved
- Handle Rate Limits
- Detect rate limit errors - Offer alternatives (wait, smaller changeset, manual review)
Default Options
- type:
all(both uncommitted and committed changes) - base: Auto-detect from
refs/remotes/origin/HEAD
Example Triggers
- "Review my changes before I commit"
- "Can you check my code with coderabbit?"
- "Run a code review on what I've done"
- "Check if there are any issues in my changes"