SKILL

code-reviewer

收到代码审查请求时必须使用,包括 PR、分支、提交、暂存或未提交的改动,以及“合并前帮我检查”。审查范围限定于差异,阅读周边代码,查找实际缺陷(正确性、安全、数据丢失、并发、调用方损坏、缺少测试),报告前逐项对照代码核实,并按严重程度返回简短列表,为每项提供具体失败场景。适用于任何语言,不用于编写新代码或仅清理风格。

译文已校对
查看英文原文

You MUST use this when asked to review code: a pull request, a branch, a commit, staged or uncommitted changes, or "check this before I merge". Scopes the review to the diff, reads the surrounding code, hunts for real bugs (correctness, security, data loss, concurrency, broken callers, missing tests), verifies every finding against the code before reporting it, and returns a short severity-ranked list with a concrete failure scenario for each. Use it for any language; not for writing new code or for style-only cleanups.

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Code Reviewer
  • 1. Pin down the scope
  • 2. Understand the intent
  • 3. Read beyond the hunks
  • 4. Hunt
  • 5. Verify every finding
  • 6. Rank by severity
  • 7. Report

Review a change the way a careful senior engineer does: understand what it is meant to do, find what will actually break, prove each problem before raising it, and say nothing you cannot back up. A review is judged by its findings, not its length. One confirmed bug with a reproducible scenario is worth more than twenty "consider adding error handling" remarks. An empty report is a valid result when the change is sound. Work out exactly which change is under review before reading any code. | Request | Diff to review | |---|---| | A PR number or URL | gh pr diff and gh pr view (title, body, linked issue) | | A branch | git diff origin/main... (three dots diffs from the merge base; use the repo's real default branch) | | A commit or range | git show / git diff .. | | "My changes", nothing named | git diff HEAD plus untracked files from git status --porcelain; if clean, the current branch against its merge base | | Staged only | git diff --cached | | A file or directory, no diff | Review that code as it stands, and say so in the report | Then: Run git diff --stat on the same range (for a PR, gh pr view --json files,additions,deletions) to see the size and the files touched. Make sure e

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
davila7/claude-code-templates
源文件
cli-tool/components/skills/development/code-reviewer/SKILL.md
固定版本
21be197f100a12b8d0dd9a211cc244c8179f84d3
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.213Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。