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., and
git diff --name-only --cached).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., ), then compare using:
git fetch origin main- to list changed files
git diff --name-only <target>...HEAD - to review actual changes
git diff <target>...HEAD
- Prefer the three-dot range () so the diff is based on the merge-base with the target branch.
<target>...HEAD - 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 in this skill folder and follow its rules when reviewing. Review ONLY based on the guidelines provided.
GUIDELINES.md - 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 and the repo editing constraints.
GUIDELINES.md
- 使用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