code-review

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Code Review

代码审查

Steps

步骤

  1. Pin fixed point. Use supplied ref. Otherwise upstream then merge-base with default. Confirm
    git rev-parse
    works,
    git diff
    non-empty.
  2. Find spec. Check issue refs in commits/branch names, then paths,
    docs/
    ,
    specs/
    , PR descriptions. No spec: "no spec available".
  3. Find standards. Read
    AGENTS.md
    ,
    CLAUDE.md
    ,
    CONTEXT.md
    , relevant skills. Apply repo standards first.
  4. Run review. Review Standards, then Spec. One axis must not rerank the other.
  5. Report.
    ## Standards
    and
    ## Spec
    headings. file:line evidence and fixes. Counts per axis. Worst issue per axis.
  1. 锁定比较基准点。 使用提供的 ref。否则,依次尝试 upstream,以及与 default 的 merge-base。确认
    git rev-parse
    能正常运行,且
    git diff
    的结果不为空。
  2. 查找规范依据。 检查提交和分支名称中的 issue 引用,然后检查路径、
    docs/
    、
    specs/
    和 PR 描述。如果没有规范依据:“无可用规范”。
  3. 查找标准。 阅读
    AGENTS.md
    、
    CLAUDE.md
    、
    CONTEXT.md
    和相关 skills。优先应用仓库标准。
  4. 执行审查。 先审查 Standards,再审查 Spec。不得根据一个维度的问题重新调整另一个维度的问题排序。
  5. 输出报告。 使用
    ## Standards
    和
    ## Spec
    标题。提供 file:line 证据和修复建议。统计每个维度的问题数量,并列出每个维度最严重的问题。

Output

输出

If access is blocked, say so under these headings:
Comparison point
,
Files
,
Counts
, and
Worst issue
.
Completion: report has both headings, file:line evidence, fixes, counts, worst issue.
如果访问受阻,请在以下标题下说明:
Comparison point
、
Files
、
Counts
和
Worst issue
。
完成条件:报告包含两个审查标题、file:line 证据、修复建议、问题数量统计和最严重的问题。