From delivery-plugin
Generate or improve .coderabbit.yaml by analyzing project structure, languages, and conventions. Optimizes path_instructions, path_filters, tools, and knowledge_base. Triggers on "CodeRabbitを設定して", ".coderabbit.yamlを作って", "CodeRabbit設定を改善して", "レビュー設定を最適化して", or "/coderabbit-config".
How this skill is triggered — by the user, by Claude, or both
Slash command
/delivery-plugin:coderabbit-configThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
プロジェクトを分析し、最適な `.coderabbit.yaml` を生成・改善する。
プロジェクトを分析し、最適な .coderabbit.yaml を生成・改善する。
既存.coderabbit.yamlあり? ──Yes──→ Audit → Propose → Confirm → Update
└─No──→ Analyze → Propose → Confirm → Generate
以下を調査し、設定に必要な情報を収集する:
分析結果に基づき、以下の設定をユーザーに提案する。
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "<プロジェクトの共通言語>"
tone_instructions: "<チームのトーンに合わせた指示>"
判断基準:
language: チームの共通言語。日本語チームなら "ja"tone_instructions: 250文字以内。具体的で建設的なトーンを指定| 設定 | 推奨 | 理由 |
|---|---|---|
| profile | "chill" | 細かすぎる指摘を抑制 |
| high_level_summary | true | PR概要の自動生成 |
| collapse_walkthrough | true | PR本文のノイズ削減 |
| poem | false | 実用性優先 |
| assess_linked_issues | true | Issue駆動開発との整合性チェック |
| reviews.auto_review.auto_incremental_review | true | push毎のレビュー |
| reviews.auto_review.drafts | false | WIP PRへの不要レビュー防止 |
以下に該当するファイルを ! プレフィックスで除外:
!dist/**, !build/**, !.next/**!**/*.min.js, !**/vendor/**!**/*.lock!**/*.zip)!**/*.generated.*, !**/*.g.dartプロジェクトの各レイヤーに合わせた具体的なレビュー指示を生成する。
生成ルール:
典型パターン:
| パス | チェック観点 |
|---|---|
**/*.ts / **/*.tsx | any型回避、型安全性、null安全 |
**/api/** / **/routes/** | 認証チェック、エラーハンドリング、バリデーション |
**/*.test.* / **/*.spec.* | AAA パターン、エッジケース、モック適切性 |
**/migrations/** | 破壊的変更の検出、ロールバック可能性 |
**/*.md | リンク切れ、コード例の正確性 |
**/config/** / **/*.yaml | 機密情報の露出、デフォルト値の妥当性 |
プロジェクト固有のパターンも追加する(例: スキルのSKILL.mdフロントマター検証等)。
knowledge_base:
code_guidelines:
enabled: true
filePatterns: [] # 1aで見つけたガイドラインファイルを列挙
enabled: false で明示的に無効化reviews:
auto_review:
enabled: true
drafts: false
ignore_title_keywords: ["WIP", "DO NOT REVIEW"]
base_branches: [] # デフォルトブランチ以外に追加する場合(例: ["develop", "release/*"])
プロジェクト固有の必須チェックがあれば custom_checks として提案。
提案内容をユーザーに提示し、以下を確認:
AskUserQuestion を使って確認する。一度に多くの質問をしない。
確認された設定で .coderabbit.yaml をプロジェクトルートに書き出す。
出力規則:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.jsonreviews.auto_review, reviews.tools, reviews.pre_merge_checks 等はreviews配下)主要な設定オプション一覧は references/config-reference.md を参照。最新の網羅情報は公式ドキュメントを確認。
| NG | 理由 |
|---|---|
| デフォルト値を全て明示的に書く | 冗長で保守コスト増 |
| path_instructionsに曖昧な指示 | AIが判断に迷い品質低下 |
| 全ツールを有効化 | 未使用言語のlintはノイズ |
| path_filtersなしで運用 | 自動生成ファイルがレビュー対象に |
| knowledge_baseの code_guidelines 未設定 | 既存規約が活用されない |
npx claudepluginhub caphtech/claude-marketplace --plugin delivery-pluginImplements CodeRabbit reference architecture with production-grade .coderabbit.yaml for AI code reviews, CI integration, and lifecycle management. Use for new project configs, team standards, or full setups.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.