coderabbit-review
CodeRabbit CLIでAIコードレビューを実行。「レビュー」「coderabbit」「CodeRabbit」「コードレビュー」時に使用。必ず--prompt-onlyオプションを使用すること。
When & Why to Use This Skill
This Claude skill integrates the CodeRabbit CLI to perform automated, AI-driven code reviews directly within your development environment. By focusing on uncommitted changes and utilizing optimized output for AI agents, it helps developers identify bugs, security flaws, and code quality issues in real-time. It streamlines the feedback loop, ensuring that high-quality code is maintained before it ever reaches the repository.
Use Cases
- Pre-commit Analysis: Automatically review local, uncommitted code changes to catch potential errors and improve logic before the initial commit.
- DevContainer Integration: Execute professional-grade AI reviews within isolated Docker or VSCode DevContainer environments using specific CLI configurations.
- Concise AI Feedback: Leverage the --prompt-only mode to receive streamlined, actionable insights that are easy for both humans and AI agents to process and act upon.
- Continuous Quality Improvement: Use the iterative review-fix-verify workflow to maintain high coding standards and reduce the burden on human peer reviewers.
| name | coderabbit-review |
|---|---|
| description | CodeRabbit CLIでAIコードレビューを実行。「レビュー」「coderabbit」「CodeRabbit」「コードレビュー」時に使用。必ず--prompt-onlyオプションを使用すること。 |
CodeRabbit Review
実行コマンド(DevContainer環境)
1. dbusセッション情報を取得
MSYS_NO_PATHCONV=1 docker exec -u node <container> bash -c "cat /home/node/.dbus/session-bus/*"
出力からDBUS_SESSION_BUS_ADDRESSを取得。
2. レビュー実行
MSYS_NO_PATHCONV=1 docker exec -u node <container> bash -c "
export DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus-xxx' &&
export GNOME_KEYRING_CONTROL=/tmp/user/1000/keyring &&
cd /workspace &&
/home/node/.local/bin/coderabbit review --prompt-only --type uncommitted"
重要: MSYS_NO_PATHCONV=1はWindowsホストでのパス変換を防止。
オプション
| オプション | 用途 | 使用可否 |
|---|---|---|
--prompt-only |
AI向け簡潔出力 | 必須 |
--plain |
人間向け詳細出力 | 禁止 |
--type uncommitted |
未コミット変更 | 推奨 |
レビュー対応フロー
- コマンド実行(バックグラウンド推奨)
- 指摘事項を確認
- 修正実施
- テスト実行で回帰確認
- 必要に応じて再レビュー
認証(VSCodeターミナルで実施)
coderabbit auth login
ブラウザでログイン後、トークンをターミナルに貼り付け。