coderabbit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCodeRabbit CLI Review
CodeRabbit CLI 审查
Run CodeRabbit ( / ) for automated diff review before push.
Pair with for the default pre-CI workflow — both tools catch different
issues and mirror CI.
crcoderabbitgreptile在推送前运行CodeRabbit( / )进行自动化差异审查。搭配****使用可实现默认的预CI工作流——这两款工具能发现不同的问题,与CI流程形成互补。
crcoderabbitgreptileRelationship to analyze-* skills
与analyze-*技能的关系
The , , and skills are for
manual or agent-driven pre-review checks—they run concrete commands (lintro,
ripgrep, coverage, etc.) and produce structured findings before you open a PR.
analyze-codeanalyze-projectanalyze-testsThis skill uses CodeRabbit CLI for external AI diff review. Follow the and
skills (or the skill, which includes them) before invoking CodeRabbit.
Do not duplicate full analyze rubrics here.
linttestcommitanalyze-codeanalyze-projectanalyze-tests本技能使用CodeRabbit CLI进行外部AI差异审查。在调用CodeRabbit之前,请先执行和技能(或包含这两项的技能)。请勿在此处重复完整的analyze检查规则。
linttestcommitRelationship to greptile
与greptile的关系
Default pre-push flow when CI runs both tools:
text
commit → [greptile ‖ coderabbit] → prEach step names the skill to follow.
Run greptile and coderabbit in parallel when possible. Do not re-run on
unchanged code.
当CI同时运行这两款工具时,默认的推送前流程如下:
text
commit → [greptile ‖ coderabbit] → pr每个步骤标明了后续应使用的技能。
尽可能并行运行greptile和coderabbit。请勿对未修改的代码重复运行。
Commands
命令
- /
cr -h— Show CodeRabbit helpcoderabbit --help - — Full branch diff against main (default for agents; matches CI intent)
coderabbit review --agent --type committed --base main - — Uncommitted (staged + unstaged); quick spot check
coderabbit review --agent --type uncommitted - — Verify install, auth, and Git repo readiness
coderabbit doctor - — Replay findings from the last local review
coderabbit review findings
crcoderabbit--prompt-only--agent- /
cr -h— 显示CodeRabbit帮助信息coderabbit --help - — 针对main分支的完整分支差异审查(Agent默认使用;与CI意图一致)
coderabbit review --agent --type committed --base main - — 未提交的变更(暂存+未暂存);快速抽查
coderabbit review --agent --type uncommitted - — 验证安装、授权及Git仓库就绪状态
coderabbit doctor - — 重放上次本地审查的结果
coderabbit review findings
crcoderabbit--prompt-only--agentRules
规则
- Max 2–3 CodeRabbit runs per change set (Pro plan: 5 CLI reviews per developer — rate limits)
- Always use for agent workflows (structured JSON output)
--agent - Default to unless the repo uses a different default branch
--base main - Reviews can take 7–30+ minutes — run in the background when possible
- Must run from an initialized Git repository root
- Only use for quick pre-commit spot checks
-t uncommitted
- 每个变更集最多运行2–3次CodeRabbit(专业版计划:每位开发者可进行5次CLI审查——速率限制)
- Agent工作流请始终使用(生成结构化JSON输出)
--agent - 默认使用,除非仓库使用其他默认分支
--base main - 审查可能需要7–30+分钟——尽可能在后台运行
- 必须从已初始化的Git仓库根目录运行
- 仅在提交前快速抽查时使用
-t uncommitted
Usage
使用方法
When asked to run CodeRabbit or as part of pre-push review:
- Ensure lint and tests pass (the skill's checklist, or the
commitandlintskills explicitly)test - Run (background if needed)
coderabbit review --agent --type committed --base main - Analyze findings; address critical/major issues
- After fixes, run one verification pass if CodeRabbit had findings
- Track run count (max 2–3 per change set)
Note: with reviews the full branch diff.
includes staged and unstaged changes (empty after a full commit with a clean tree).
-t committed--base main-t uncommitted当被要求运行CodeRabbit或作为推送前审查的一部分时:
- 确保代码检查和测试通过(技能的检查清单,或明确执行
commit和lint技能)test - 运行(必要时在后台运行)
coderabbit review --agent --type committed --base main - 分析审查结果;处理严重/主要问题
- 修复后,如果CodeRabbit发现了问题,运行一次验证检查
- 记录运行次数(每个变更集最多2–3次)
注意:搭配会审查完整的分支差异。包含暂存和未暂存的变更(在完整提交且工作树干净后为空)。
-t committed--base main-t uncommitted