
CLAUDE.md 配置,教Claude Code与CodeRabbit协作,实现自动化公关规划、代码审查循环和合并工作流程
概览
一个可复用的 CLAUDE.md 配置,教Claude Code与CodeRabbit、Cursor BugBot、Greptile、CodeAnt和Graphite AI Reviews协作,实现自动化的公关规划、代码审查和合并工作流程——所有这些都由你的终端驱动。包含完整的项目管理技能家族,用于跨线程的项目编排。 设置完成后,Claude Code 会自动: - — 在新问题上触发@coderabbitai计划,并行构建自己的计划,然后在编写代码前将两者合并成一个实现规范。- — 在推送前运行 CodeRabbit CLI 审核(即时反馈,无 PR 噪音)。创建 PR 后,审核链为 CodeRabbit 主链,BugBot(光标)第二层,Greptile 最后手段,只有当所有审核员都无法使用时才自我审核;CodeAnt 和 Graphite AI 审核提供补充的 AI 审核信号。- — 对代码勾选所有验收标准复选框,确认 CI 为绿色,然后进行压缩合并。
概述(AI 翻译)
一个可重用的CLAUDE.md配置,教Claude Code与CodeRabbit、Cursor BugBot、Greptile、CodeAnt和Graphite AI Reviews协作,实现自动化的公关规划、代码审查和合并工作流程——所有这些都由你的终端驱动。包含完整的项目管理技能家族,用于跨线程的项目编排。
目录
- 你得到的
- 入门指南
- 斩击指令
- 规则文件
- 钩子脚本
- 脚本库
- 配置文件
- GitHub Actions
- 建筑学
- 文档地图
- 按项目覆盖
- 常见问题解答
- 故障排除
- 定制化
- 贡献
- 许可证
你得到了什么
设置完成后,Claude Code 会自动:
- 先规划再编码 — 在新问题上触发
@coderabbitai plan,并行构建自己的计划,然后在编写任何代码前将两者合并成一个实现规范。 - 先本地审核,然后在GitHub上审核 — 在推送前运行CodeRabbit的CLI审核(即时反馈,无公关噪音)。创建PR后,审核链为CodeRabbit主链,BugBot(光标)第二层,Greptile最后手段,只有当所有审核员都无法使用时才自我审核;CodeAnt和Graphite AI审核提供补充的AI审核信号。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Claude Code Configuration
A reusable CLAUDE.md configuration that teaches Claude Code to collaborate with CodeRabbit, Cursor BugBot, Greptile, CodeAnt, and Graphite AI Reviews for automated PR planning, code review, and merge workflows — all driven from your terminal. Includes a full PM skill family for project orchestration across threads.
Table of Contents
- What You Get
- Getting Started
- Slash Commands
- Rule Files
- Hook Scripts
- Scripts Library
- Config Files
- GitHub Actions
- Architecture
- Documentation map
- Per-Project Override
- FAQ
- Troubleshooting
- Customizing
- Contributing
- License
What You Get
After setup, Claude Code will automatically:
- Plan before coding — Triggers
@coderabbitai planon new issues, builds its own plan in parallel, then merges both into one implementation spec before writing any code. - Review locally, then on GitHub — Runs CodeRabbit CLI reviews before pushing (instant feedback, no PR noise). After PR creation, the reviewer chain is CodeRabbit primary, BugBot (Cursor) second tier, Greptile last resort, then self-review only if every reviewer is unavailable; CodeAnt and Graphite AI Reviews provide supplemental AI review signals.
- Verify and merge — Checks every acceptance criteria checkbox against the code, confirms CI is green, then squash-merges. The running worktree and branch are left intact and reaped out-of-band by
/pm-clean. - Orchestrate multi-agent work — Decomposes large tasks into phases (fix, review, merge) with health monitoring, handoff files, and heartbeat enforcement.
- Manage your project — 36 slash commands for backlog prioritization, OKR-aware ranking, daily standups, PR-fleet monitoring, and cross-thread orchestration.
Review ownership is sticky once a fallback tier takes over:
| Reviewer | Tier | Role |
|---|---|---|
| CodeRabbit | Primary | Local CLI review before push, then explicit GitHub approval on the current HEAD SHA |
| BugBot (Cursor) | Second tier | Free fallback when CodeRabbit is rate-limited or times out; clean BugBot pass can satisfy the merge gate |
| Greptile | Last resort | Paid fallback when both CodeRabbit and BugBot fail; severity-gated review path |
| CodeAnt | Supplemental | Additional AI code review signal on PRs; findings are handled alongside other review feedback |
| Graphite AI Reviews | Supplemental | Additional AI code review/check-run signal on PRs; failures or findings are treated as review/CI blockers |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add auerbachb/claude-code-config