Skip to content
coderabbit-workflow logo

coderabbit-workflow

Systematic workflow for CodeRabbit reviews - local CLI, PR threads, and commit attribution

SKILL.md

Full skill instructions

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

ModeWhenReference
Local CLIBefore push, get early feedbackreferences/​cli-integration.md
PR ThreadsAfter CodeRabbit reviews your PRreferences/​workflow-examples.md

Quick Start

  1. Export comments: node .claude/​skills/​coderabbit-workflow/​scripts/​export-comments.ts --pr <number>
  2. Review by severity: critical, major, minor
  3. Apply fixes following patterns in references/​workflow-examples.md
  4. Commit with CodeRabbit co-author attribution (see below)
  5. Update exported JSON to mark comments as fixed (set status: 'fixed')
  6. 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

ScriptPurpose
scripts/​run-local-review.tsRun CodeRabbit CLI and save findings
scripts/​export-comments.tsExport PR comments to local JSON
scripts/​reply-to-threads.tsBatch reply to threads after fixes

References

ReferenceContent
references/​setup.mdInstallation, authentication, troubleshooting
references/​cli-integration.mdCLI commands and async workflow
references/​commit-formats.mdAll commit message templates
references/​workflow-examples.mdComplete workflow examples

Key Requirement: Co-Author

All CodeRabbit fix commits must include:

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

See references/​commit-formats.md for all templates.

Related

<!-- AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY --> <!-- Source: bitsoex/​ai-code-instructions → global/​skills/​coderabbit-workflow/​SKILL.md --> <!-- To modify, edit the source file and run the distribution workflow -->