review-change
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseReview Change
变更评审
Quality gate: run every applicable review and skip the rest, then synthesize and
classify one report. Findings only; never edit or refactor.
质量门禁:运行所有适用的评审,跳过其余评审,然后合并结果并生成一份分类报告。仅输出问题发现;绝不编辑或重构代码。
Turn contract
交互契约
Load and verify the canonical Turn contract (11 boxes) before ending every turn. Skill-specific additions (receipt closeout, isolation rule, applicability) live here and in REVIEW_PROCESS.md. Missing reference → STOP.
For a final PR review, the turn is incomplete until this additional box passes:
text
✓ Decision: REVIEW-PASS + PR exists → `gh pr comment <N> --body-file <path>` RUN;
then `gh pr view <N> --json comments` RUN and the newest exact-HEAD
`review-change:pass` marker is confirmed before printing `→ Next:`The receipt closeout is a precondition of the report, not a follow-up: do not
print the fixed report block until the comment is current. A clean report
without that current receipt must not recommend .
/audit-prFor or , list every open finding ID in the closing
recommendation, joined with ; the review must never hand off only the first
finding.
REVIEW-FAILNEEDS-DECISION+Consume the internal verification contract;
the reviewer checks the same frozen blob as the executor before
mapping candidate evidence.
ACCEPTANCE.md在每轮交互结束前,加载并验证标准的Turn contract(11项检查)。技能专属的补充内容(收尾确认、隔离规则、适用性)在此文档及REVIEW_PROCESS.md中。若缺失参考文档→立即停止。
对于最终的PR评审,需完成以下额外检查项才算交互完成:
text
✓ Decision: REVIEW-PASS + PR exists → `gh pr comment <N> --body-file <path>` RUN;
then `gh pr view <N> --json comments` RUN and the newest exact-HEAD
`review-change:pass` marker is confirmed before printing `→ Next:`收尾确认是生成报告的前提条件,而非后续步骤:在确认评论已更新前,不得输出固定格式的报告块。若没有当前的收尾确认,即使报告无问题也不得推荐使用。
/audit-pr若评审结果为或,需在收尾建议中列出所有未解决的问题ID,用连接;评审不得仅移交第一个发现的问题。
REVIEW-FAILNEEDS-DECISION+遵循内部的验证契约;评审者在映射候选证据前,需与执行者检查同一个冻结的文件。
ACCEPTANCE.mdWhen to use
使用场景
- Mandatory before every merge. Review in a context that did not implement
the change; if it did, stop and hand off to a fresh one. may also recommend optional checkpoints at layer boundary, accumulation or sensitivity (
execute-phase).#77 - Use when you need applicable reviews without irrelevant passes.
- 合并前强制要求。在未参与变更实现的环境中进行评审;若评审环境参与了变更实现,则停止评审并移交至全新环境。也可能建议在层边界、代码累积或敏感点处设置可选检查点(
execute-phase)。#77 - 当你需要仅针对适用场景进行评审,避免无关检查时使用。
Scope
评审范围
Default target is the current change (branch diff vs the default branch);
accept a path/glob to widen or narrow. State the scope at the top of the report.
默认评审目标为当前变更(分支与默认分支的差异);可接受路径/通配符来扩大或缩小范围。需在报告顶部说明评审范围。
Step 0 — Discover the project & the change (always first)
步骤0 — 了解项目与变更(始终第一步)
Per Workflow conventions + documentation map, decide axes from:
- Project nature: UI (), web/mobile/CLI/library/backend, and optional recorded platform skills (extras only).
docs/frontend/ - Footprint: what the diff touches (UI, API, infra, domain). An axis applies only when both project and footprint support it.
根据工作流规范及文档映射,从以下维度确定评审轴:
- 项目性质:UI()、Web/移动/CLI/库/后端,以及可选的已记录平台技能(仅额外内容)。
docs/frontend/ - 影响范围:变更涉及的内容(UI、API、基础设施、业务领域)。只有当项目性质与影响范围均支持某一轴时,该轴才适用。
Applicability matrix (default; the project's docs refine it)
适用性矩阵(默认;项目文档可细化)
Every axis maps to a skill of the workflow's own internal review pack
( — installed with the workflow, so none can be missing):
skills/review-*| Axis — internal pack skill | Web | Mobile | Console/CLI | Lib/SDK | Backend/Infra |
|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | TUI only | ✗ | ✗ |
| ✓ | ✓ | rare | ✗ | ✗ |
| ✓ | ✓ | output text | ✗ | ✗ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✗ | ✗ | ✗ | ✗ |
| API ergonomics / usage docs (inline pass) | if API | if API | flags/help | ✓✓ | ✓ |
(the single classifier over the synthesized table — process step 7) andreview-implementation(the debt transform over the classified table — process step 8) are not axis finders: they run once per review, not per axis.review-debt
每个轴对应工作流内部评审包中的一项技能( — 随工作流安装,无缺失):
skills/review-*| 轴 — 内部包技能 | Web | 移动 | 控制台/CLI | 库/SDK | 后端/基础设施 |
|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✓ | 仅TUI | ✗ | ✗ |
| ✓ | ✓ | 罕见 | ✗ | ✗ |
| ✓ | ✓ | 输出文本 | ✗ | ✗ |
| ✓ | ✓ | ✓ | ✓ | ✓ |
| ✓ | ✗ | ✗ | ✗ | ✗ |
| API 易用性 / 使用文档(内联检查) | 若涉及API | 若涉及API | 命令行参数/帮助 | ✓✓ | ✓ |
(对合并后的结果表进行分类的单一分类器 — 流程步骤7)和review-implementation(对分类后的结果表进行债务转换 — 流程步骤8)不属于轴查找器:它们在每次评审中仅运行一次,而非每个轴运行一次。review-debt
Isolation rule (default — every pass, not only adversarial)
隔离规则(默认 — 每次检查均适用,不仅限于对抗式评审)
Each applicable pass, the classifier (step 7), and debt transform (step 8) runs
isolated/context-clean and returns only its fixed findings table plus
—never diff or prose. Spawn one fresh subagent/headless run per
pass; without those, use a fresh conversation. Pass only scope, its checklist,
and Step 0 docs; cap full non-diff reads at 10 (targeted ≤50-line reads/greps
excluded). The orchestrator retains tables, not sources, and fuses them in step
6. Inline fallback is sequential table reduction. A pass runs at its own tier or
stronger, never weaker.
PASS | FAIL每个适用的检查、分类器(步骤7)和债务转换(步骤8)均需在独立/干净的上下文中运行,仅返回固定格式的问题发现表及结果——绝不返回差异内容或散文式描述。为每次检查生成一个全新的子Agent/无头运行实例;若无法实现,则使用全新对话。仅传递评审范围、检查清单及步骤0的文档;非差异内容的完整读取上限为10次(针对性的≤50行读取/ grep除外)。编排器仅保留结果表,不保留源内容,并在步骤6中合并这些表。内联回退方案为顺序表归约。检查需在自身层级或更强层级运行,绝不使用更弱层级。
PASS | FAILProgressive loading — choose one review route
渐进式加载 — 选择一条评审路径
After applicability and isolation are established:
The reference allowlist is exactly the seven linked paths below. Never invent or
read another path.
references/| Invocation route | LOAD in this order | SKIP |
|---|---|---|
| Default review | review process → adversarial recommendation → persist and decide → output and guardrails | synthesis, portability, adversarial setup |
| review process → adversarial setup before reviewers → adversarial synthesis before fusion → persist/decide → output/guardrails | portability |
| review process → adversarial synthesis plus the supplied reviewer tables → persist/decide → output/guardrails | adversarial setup, portability |
legacy | print the fixed migration refusal below and stop — zero git/forge mutation | everything |
Legacy is removed — not an alias. Calling prints this fixed migration refusal and stops before any git or forge mutation command runs:
--merge/review-change --mergemigration: --merge is removed. Table fusion is --synthesize: pass the fixed
reviewer tables the same way and the synthesis contract fuses them. No
repository merge is performed by this skill.Active review paths use only /fusion language. Add
portability only when contexts, parallelism, slash
commands or tier controls are unavailable.
is evidence for output/guardrails, not a skill reference; that route owns NRS and
Architectural invariants rules.
--synthesizedocs/workflow/REPOSITORY_STATE.mdResources are one hop from this file. Fixed reviewer/synthesis/output contracts are
literal. Missing required resource → stop; never approximate a review contract.
确定适用性与隔离规则后:
参考白名单仅包含以下7个链接路径。不得创建或读取其他路径。
references/| 调用路径 | 按此顺序加载 | 跳过内容 |
|---|---|---|
| 默认评审 | 评审流程 → 对抗式评审建议 → 记录与决策 → 输出与防护规则 | 结果合并、可移植性、对抗式设置 |
| 评审流程 → 评审前加载对抗式设置 → 合并前加载对抗式结果合并 → 记录/决策 → 输出/防护规则 | 可移植性 |
| 评审流程 → 对抗式结果合并 + 提供的评审结果表 → 记录/决策 → 输出/防护规则 | 对抗式设置、可移植性 |
旧版 | 打印以下固定的迁移拒绝信息并停止 — 不执行任何git/代码托管平台操作 | 所有内容 |
旧版已移除 — 无别名。调用将打印以下固定的迁移拒绝信息,并在执行任何git或代码托管平台操作前停止:
--merge/review-change --mergemigration: --merge is removed. Table fusion is --synthesize: pass the fixed
reviewer tables the same way and the synthesis contract fuses them. No
repository merge is performed by this skill.当前有效的评审路径仅使用/合并相关术语。仅当上下文、并行性、斜杠命令或层级控制不可用时,才添加可移植性。是输出/防护规则的参考证据,而非技能参考文档;该路径负责NRS和架构不变性规则。
--synthesizedocs/workflow/REPOSITORY_STATE.md资源均与此文件处于同一层级。固定的评审者/结果合并/输出契约为字面内容。若缺失必需资源→停止;绝不近似评审契约。
Portability
可移植性
Keep reviewer contexts isolated. Use portability for
sequential/headless fallbacks; never collapse independent adversarial passes.
保持评审者上下文独立。使用可移植性作为顺序/无头回退方案;绝不合并独立的对抗式检查。
Relationship to other skills
与其他技能的关系
Orchestrates internal finders (, , ,
, , , , ), then
one classifier and transform, isolated by
default; installed platform packs are optional. is user-invoked
only for independent proposals (D3). It is Stage 4: checkpoint reviews are
optional, the end review is mandatory and fresh. folds in-unit,
adds user-confirmed phases, and independent work becomes
proposals. consumes only the verified PR-comment receipt, never the
chat report; is the periodic sweep;
may run this skill fresh and route FAIL to .
review-codereview-securityreview-verifyreview-designreview-a11yreview-brandreview-perfreview-seoreview-implementationreview-debttriage-issuefix-nowreplan-in-unitaudit-prproduct-auditloop-review-foldfold-findings编排内部查找器(、、、、、、、),然后运行一次分类器和转换,默认情况下相互隔离;已安装的平台包为可选。仅由用户调用,用于独立提案(D3)。此技能属于第4阶段:检查点评审为可选,最终评审为强制且需在全新环境中进行。将问题合并至单元内,添加用户确认的阶段,独立工作将成为提案。仅使用已验证的PR评论记录,绝不使用聊天报告;为定期扫描;可重新运行此技能,并将失败结果路由至。
review-codereview-securityreview-verifyreview-designreview-a11yreview-brandreview-perfreview-seoreview-implementationreview-debttriage-issuefix-nowreplan-in-unitaudit-prproduct-auditloop-review-foldfold-findingsDone when
完成标志
- One synthesized/classified table covers every applicable axis, lists skipped
axes with reasons, and includes manual checks. Every finding has a destination:
fold, confirmed replan phase, surfaced decision, or user-routed proposal; none
is silently lost and review creates no backlog (D3). Print the closing
block (clean →
→ Next:; recurring drift →/audit-pr) and change no code./product-audit
- 一份合并后的分类表覆盖所有适用的评审轴,列出跳过的轴及原因,并包含人工检查项。每个问题都有明确的处理方向:合并至单元内、确认重新规划阶段、提交决策或用户路由至提案;无问题被静默忽略,且评审不会产生待办积压(D3)。打印收尾的块(无问题→
→ Next:;持续漂移→/audit-pr),且不得修改任何代码。/product-audit