caveman-review
它能做什么
这个技能撰写简短且可操作的代码审查意见,每项发现占一行。适合审查拉取请求、希望快速写出清晰意见的开发者。
适用场景
- ✓当你让智能体审查拉取请求或差异的时候。
- ✓当你希望每条审查意见只占一行,并附有清晰修复方法的时候。
- ✓当你希望按严重程度标记发现的问题,例如 bug、risk 或 nit 的时候。
技能链接
https://github.com/JuliusBrussee/caveman/blob/main/skills/caveman-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我审查这个拉取请求,并为每个问题写一行意见,包括行号、问题和修复方法。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体阅读差异,并为每项发现写一条意见,格式为行号、严重程度、问题和修复方法。它会省去废话和含糊其辞的措辞。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Write code review comments terse and actionable. One line per finding. Location, problem, fix. No throat-clearing.
Rules
Format: L<line>: <problem>. <fix>. — or <file>:L<line>: ... when reviewing multi-file diffs.
Severity prefix (optional, when mixed):
🔴 bug:— broken behavior, will cause incident🟡 risk:— works but fragile (race, missing null check, swallowed error)🔵 nit:— style, naming, micro-optim. Author can ignore❓ q:— genuine question, not a suggestion
Drop:
- "I noticed that...", "It seems like...", "You might want to consider..."
- "This is just a suggestion but..." — use
nit:instead - "Great work!", "Looks good overall but..." — say it once at the top, not per comment
- Restating what the line does — the reviewer can read the diff
- Hedging ("perhaps", "maybe", "I think") — if unsure use
q:
Keep:
- Exact line numbers
- Exact symbol/function/variable names in backticks
- Concrete fix, not "consider refactoring this"
- The why if the fix isn't obvious from the problem statement
Examples
❌ "I noticed that on line 42 you're not checking if the user object is null before accessing the email property. This could potentially cause a crash if the user is not found in the database. You might want to add a null check here."
✅ L42: 🔴 bug: user can be null after .find(). Add guard before .email.
❌ "It looks like this function is doing a lot of things and might benefit from being broken up into smaller functions for readability."
✅ L88-140: 🔵 nit: 50-line fn does 4 things. Extract validate/normalize/persist.
❌ "Have you considered what happens if the API returns a 429? I think we should probably handle that case."
✅ L23: 🟡 risk: no retry on 429. Wrap in withBackoff(3).
Auto-Clarity
Drop terse mode for: security findings (CVE-class bugs need full explanation + reference), architectural disagreements (need rationale, not just a one-liner), and onboarding contexts where the author is new and needs the "why". In those cases write a normal paragraph, then resume terse for the rest.
Boundaries
Reviews only — does not write the code fix, does not approve/request-changes, does not run linters. Output the comment(s) ready to paste into the PR. "stop caveman-review" or "normal mode": revert to verbose review style.
常见问题
评论的格式是什么?
行号、可选的严重程度、问题和修复方法,全部写在一行内。
严重程度标签有哪些?
根据说明,有 bug、risk、nit 和 question。
它会把评论发布到 GitHub 吗?
说明中涵盖的是撰写审查文本,而不是发布它。
详情
作者的原始描述
Compressed code review - one line per finding with location, problem and fix. Use for /caveman-review, "review this PR", or "review the diff".
repo: JuliusBrussee/caveman
热度
- GitHub 星标
- 117k
- 排名
- #753
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cavecrew
117k帮你的智能体判断何时把搜索、小改动或差异审查交给紧凑的子智能体处理,为主上下文节省空间。
caveman-compress
117k帮你的智能体把 CLAUDE.md 或待办清单等记忆文件压缩成更短的 caveman 风格,以节省输入 token。
caveman-stats
117k帮你的智能体按模式统计 Claude Code 会话使用的输出和缓存读取 token 数量。
caveman
117k帮你的智能体用简短、直接的方式回答,去掉废话,同时保留所有技术事实。