Agent skill
coderabbit-workflow
Systematic workflow for CodeRabbit reviews - local CLI, PR threads, and commit attribution
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/coderabbit-workflow
Metadata
Additional technical details for this skill
- tags
-
code-review coderabbit quality
- version
- 2.0.0
- category
- code-quality
- triggers
-
[ "before-push", "on-demand" ]
SKILL.md
CodeRabbit Workflow
Address CodeRabbit review comments systematically. Workflows for local CLI usage, PR thread processing, and commit attribution.
When to use this skill
- When addressing CodeRabbit review comments on a PR
- Before push, to get early feedback with local CLI
- When asked to "fix coderabbit issues" or "address coderabbit comments"
Skill Contents
Available Resources
📚 references/ - Detailed documentation
🔧 scripts/ - Automation scripts
Two Review Modes
| Mode | When | Reference |
|---|---|---|
| Local CLI | Before push, get early feedback | references/cli-integration.md |
| PR Threads | After CodeRabbit reviews your PR | references/workflow-examples.md |
Quick Start
- Export comments:
node .claude/skills/coderabbit-workflow/scripts/export-comments.ts --pr <number> - Review by severity: critical, major, minor
- Apply fixes following patterns in
references/workflow-examples.md - Commit with CodeRabbit co-author attribution (see below)
- Update exported JSON to mark comments as fixed (set
status: 'fixed') - Push and reply to threads:
node .claude/skills/coderabbit-workflow/scripts/reply-to-threads.ts --file .tmp/coderabbit-*.json
Note: The reply script only processes comments with status !== 'pending'. After applying fixes, update the JSON file to change status from 'pending' to 'fixed' before running the reply script.
Scripts
| Script | Purpose |
|---|---|
scripts/run-local-review.ts |
Run CodeRabbit CLI and save findings |
scripts/export-comments.ts |
Export PR comments to local JSON |
scripts/reply-to-threads.ts |
Batch reply to threads after fixes |
References
| Reference | Content |
|---|---|
references/setup.md |
Installation, authentication, troubleshooting |
references/cli-integration.md |
CLI commands and async workflow |
references/commit-formats.md |
All commit message templates |
references/workflow-examples.md |
Complete workflow examples |
Key Requirement: Co-Author
All CodeRabbit fix commits must include:
text
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
See references/commit-formats.md for all templates.
Related
- pr-workflow - PR lifecycle including CodeRabbit integration
- CodeRabbit CLI Docs
- Cursor Integration
Didn't find tool you were looking for?