AGENT SKILL

代码验收评审

acceptance-review

当需要判定 PR、分支、diff 或当前代码是否满足权威的 issue、规范或决策契约时使用;不适用于重建会议、追溯决策沿革、常规代码审查或实现;返回逐条标准的论证和验收结论。

License 许可
MIT
所属仓库
mintuz/skills
最近更新
2026-11-13
Stars
★ 35
Forks
7

01 前言 Front Matter

name
acceptance-review
description
WHEN deciding whether a PR, branch, diff, or current code satisfies an authoritative issue, specification, or decision contract; NOT for reconstructing meetings, tracing decision lineage, general code review, or implementation; returns a criterion-by-criterion proof and acceptance verdict.

02 资源文件 1

03 SKILL.md 正文

Acceptance Review

Treat the authoritative requirement as an acceptance contract and the implementation as its proof. Review read-only (principle-investigate-read-only). When fixes are also requested, finish the verdict before handing its gaps to an implementation workflow.

1. Build the contract

Resolve the subject, comparison base, authoritative issue, specification, or decision contract, repository rules, linked decisions, and stated exclusions. When authority begins in a meeting or transcript, the claimed decision is disputed, or two policies conflict with neither marked superseded, invoke product-management:decision-trace first and consume its acceptance handoff instead of reinterpreting the raw source.

Map every in-scope normative statement to one independently decidable criterion. Preserve its source identifier and meaning; split combined statements only when their outcomes can differ. Record each criterion's observable outcome, affected surfaces, edge cases, assumptions, and exclusions. Represent each missing or conflicting authority question as one ambiguity criterion; defer only criteria that depend on it and continue judging criteria with settled authority.

Never select one of two competing unresolved policies as the authority, and never report a status that holds under only one of them. Test the criterion against every candidate policy, with or without a decision-lineage handoff:

  • Candidates produce different statuses: mark the criterion unverified and request the lineage or supersession evidence that would select the authority.
  • Every candidate produces the same status: record the conflict and report that status.
  • No handoff available: also name the lineage or supersession evidence that would resolve the conflict.

When no authoritative issue, specification, or decision record is supplied, stop, say no acceptance decision is possible without it, and request one. Never build the contract from the diff, the pull request description, or the review request (principle-fix-the-bar-first). Route a general code-quality request to a general code review.

Complete when: the authoritative contract and implementation subject are explicit, every in-scope normative statement maps exactly once, and every ambiguity and exclusion is recorded.

2. Trace the proof

For each criterion, trace the real production path from entry point through state, boundaries, errors, and observable outcome. Search every caller, implementation, and sibling surface sharing the behaviour. Use base comparison to establish regression.

Keep three evidence lanes:

Lane What counts
Implementation Production wiring that can produce the outcome
Verification Executed checks or runtime observations; decisive static evidence only when execution adds no information
Claim Issue/PR prose, commits, names, and comments; intent context excluded from behavioral proof

Cite the exact file and line for code. Every citation must directly support its criterion.

Complete when: every criterion has a complete traced path or a named break, with every implementation citation checked.

3. Exercise the contract

Run the smallest check that exercises each observable outcome in the environment and for the duration the criterion names; bind live observations to the reviewed revision or deployment. Broaden for shared code, cross-surface behaviour, regression risk, or high-risk boundaries. Record each command, result, and what it proves. Cite tests by file and case name. Test presence is static coverage evidence; a passing run proves execution. Record an unavailable check's reason as a verification gap.

Complete when: every criterion has passing or failing executed evidence, decisive static evidence, or a named verification gap.

4. Decide

Status Meaning
Covered The complete production path and proportionate verification evidence support the criterion
Partial Some required outcomes, surfaces, or edge cases are unsupported
Missing The production path is absent or disconnected
Regressed Comparison evidence proves previously supported behavior broke
Unverified An authority or evidence gap prevents a decision

Set the overall verdict:

  • Satisfies only when every criterion is covered.
  • Does not satisfy when any criterion is partial, missing, or regressed.
  • Indeterminate when at least one criterion is unverified and all others are covered.

Complete when: every criterion has exactly one status and the overall verdict follows these rules.

5. Report

Lead with the verdict, subject, base, and authoritative sources. Then provide:

ID Criterion Status Implementation evidence Verification evidence

List claims separately only when they clarify intent. Follow with gaps, failed or unavailable checks, and the minimum evidence or implementation needed to close each row. Keep general code-review findings outside the acceptance report.

Complete when: every contract criterion appears exactly once, every citation is resolvable, and every partial, missing, regressed, or unverified row names what would close it.

04 同仓库更多 Skills

mintuz
mintuz/skills

lens-review

USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens /code-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.

★ 35
mintuz
mintuz/skills

XState 状态机建模

xstate

当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程(如拖拽或手势)交互而变化时使用;或在构建、审查、测试或可视化 XState 5 actors 和 @xstate/react 集成时使用;不适用于单个事件即可完全设定的值,如文本草稿、焦点标志或简单的开关切换;建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。

软件开发工程师前端开发与界面实现
★ 35
mintuz
mintuz/skills

网页界面设计优化

web-design

在优化 UI 布局、排版、色彩或细节打磨时使用;不涉及代码实现;提供简洁的原则,以实现有意图、易读的设计。

界面设计师用户体验设计
★ 35
mintuz
mintuz/skills

Tailwind CSS 样式开发

tailwind

在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用,即便只是改一个类名,或请求中未提及 Tailwind:颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级(如不确定项目是否使用 Tailwind,先检查 package.json 或主样式表);不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass;产出的类名能被 Tailwind 识别,语法适配已安装的主版本,具有可见的焦点指示器,且不引入未要求的依赖或杜撰的品牌值。

软件开发工程师前端开发与界面实现
★ 35
mintuz
mintuz/skills

代码重构规划

refactoring

当你需要制定计划来重构、重组或清理正常工作的代码,且测试结果已知(全绿或已记录的失败集合)时使用;不适用于新功能交付或任何行为变更;以可逆的基线安全性和按优先级排序的改进为核心。

软件开发工程师设计评审与架构优化
★ 35
mintuz
mintuz/skills

react

USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.

★ 35