reviewer-process

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
  • Use git CLI to enumerate changed files, including both staged and unstaged (e.g.,
    git diff --name-only --cached
    and
    git diff --name-only
    ).
  • If the user asks to review against a target branch (e.g., "review against main"), fetch the target branch if needed (e.g.,
    git fetch origin main
    ), then compare using:
    • git diff --name-only <target>...HEAD
      to list changed files
    • git diff <target>...HEAD
      to review actual changes
  • Prefer the three-dot range (
    <target>...HEAD
    ) so the diff is based on the merge-base with the target branch.
  • Focus review on code folders; identify them dynamically from the repo structure and skip helper scripts or non-code folders unless the user requests otherwise.
  • Read
    GUIDELINES.md
    in this skill folder and follow its rules when reviewing. Review ONLY based on the guidelines provided.
  • Inspect only the changed files and produce a list of concrete fixes needed, ordered by severity.
  • Recommend applying fixes and ask for confirmation before making changes.
  • If the user confirms, apply fixes while following
    GUIDELINES.md
    and the repo editing constraints.
  • 使用git CLI枚举变更文件,包括暂存和未暂存的文件(例如:
    git diff --name-only --cached
    git diff --name-only
    )。
  • 如果用户要求对照目标分支进行评审(例如:“对照main分支评审”),则根据需要拉取目标分支(例如:
    git fetch origin main
    ),然后使用以下命令进行比较:
    • git diff --name-only <target>...HEAD
      用于列出变更文件
    • git diff <target>...HEAD
      用于查看实际变更内容
  • 优先使用三点范围语法(
    <target>...HEAD
    ),这样差异对比会基于与目标分支的合并基准。
  • 评审重点放在代码文件夹上;从仓库结构中动态识别代码文件夹,除非用户另有要求,否则跳过辅助脚本或非代码文件夹。
  • 读取本skill文件夹中的
    GUIDELINES.md
    文件,并在评审时遵循其中的规则。仅基于提供的指南进行评审。
  • 仅检查变更文件,生成按严重程度排序的具体修复列表。
  • 建议应用修复,并在进行变更前请求用户确认。
  • 如果用户确认,则在遵循
    GUIDELINES.md
    和仓库编辑约束的前提下应用修复。