This skill helps you perform automated code reviews with CodeRabbit, identifying race conditions, leaks, and security issues before commits.
npx playbooks add skill basher83/lunar-claude --skill coderabbit
AI code review tool that catches race conditions, memory leaks, and security vulnerabilities.
Integrates with Claude Code for autonomous review-and-fix workflows.
Run CodeRabbit as part of your development workflow:
Implement the feature from the spec, then run coderabbit --prompt-only
in the background and fix any issues found.
Key flags for Claude Code:
--prompt-only - Minimal output optimized for AI agents--plain - Plain text mode (no interactive UI)--type uncommitted - Review only uncommitted changes# Install
curl -fsSL https://cli.coderabbit.ai/install.sh | sh
# Authenticate (run once per Claude Code session)
coderabbit auth login
# Review code
coderabbit # Interactive mode
coderabbit --plain # Plain text output
coderabbit --prompt-only # AI-optimized output
coderabbit --type uncommitted # Only uncommitted changes
coderabbit --base develop # Compare against develop branch
Recommended prompt pattern:
Please implement [feature] and then run coderabbit --prompt-only,
let it run as long as it needs (run it in the background) and fix any issues.
CodeRabbit reviews take 7-30+ minutes. Run in background and check periodically.
Fix prioritization: Fix critical issues first, ignore nits. Run CodeRabbit
again after fixes to verify no new issues introduced. Limit to 2 iterations.
Use @coderabbitai in PR comments:
| Command | Description |
|---------|-------------|
| @coderabbitai review | Incremental review of new changes |
| @coderabbitai full review | Complete review from scratch |
| @coderabbitai pause | Stop automatic reviews |
| @coderabbitai resume | Restart reviews |
| @coderabbitai summary | Regenerate PR summary |
| @coderabbitai generate docstrings | Generate function docs (Pro) |
| @coderabbitai generate unit tests | Generate tests (Pro) |
| @coderabbitai resolve | Resolve all CR comments |
| @coderabbitai configuration | Show current settings |
Add @coderabbitai ignore to PR description to disable reviews for that PR.
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: en-US
tone_instructions: "Be concise and focus on critical issues only"
reviews:
profile: chill # or "assertive" for comprehensive feedback
high_level_summary: true
auto_review:
enabled: true
drafts: false
ignore_title_keywords:
- "wip"
- "draft"
knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- "**/.cursorrules"
- "**/claude.md"
CodeRabbit auto-reads claude.md and .cursorrules for coding standards.
CodeRabbit integrates 40+ linters and security analyzers:
Full tools reference: See [references/tools-reference.md](references/tools-reference.md)
CodeRabbit not finding issues:
coderabbit auth statusgit status--type uncommitted--base developClaude Code not applying fixes:
--prompt-only modeWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.