npx skills add ...
npx skills add vinvcn/mattpocock-skills-zh-cn --skill review
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
npx skills add vinvcn/mattpocock-skills-zh-cn --skill review
对用户提供的固定点与 HEAD 之间的 diff 做双轴 review:
两个轴线都作为并行 sub-agents运行,避免互相污染 context;然后这个 skill 聚合它们的 findings。
Issue tracker 应该已经提供给你;如果缺少 docs/agents/issue-tracker.md,运行 /setup-matt-pocock-skills。
用户说的任何内容都是 fixed point:commit SHA、branch name、tag、main、HEAD~5 等。不要自作主张;原样传入。如果用户没有指定,询问:“Review against what — a branch, a commit, or main?” 在拿到 fixed point 前不要继续。
先捕获一次 diff command:git diff <fixed-point>...HEAD(three-dot,因此比较对象是 merge-base)。同时用 git log <fixed-point>..HEAD --oneline 记录 commits 列表。
按以下顺序寻找来源 spec:
#123、Closes #45、GitLab !67 等)— 按 docs/agents/issue-tracker.md 中的 workflow 获取。docs/、specs/ 或 .scratch/ 下与 branch name 或 feature 匹配的 PRD/spec 文件。Repo 中任何记录代码应该如何写的内容。常见位置:
CLAUDE.md、AGENTS.mdCONTRIBUTING.mdCONTEXT.md、CONTEXT-MAP.md、per-context CONTEXT.md filesdocs/adr/(architectural decisions 也是 standards).editorconfig、eslint.config.*、biome.json、prettier.config.*、tsconfig.json(machine-enforced standards;记录它们,但不要重复检查 tooling 已经检查的内容)docs/ 下任何 STYLE.md、STANDARDS.md、STYLEGUIDE.md 或类似文件收集文件列表。Standards sub-agent 会读取它们。
发送一条包含两个 Agent tool calls 的消息。两个都使用 general-purpose subagent。
Standards sub-agent prompt — 包含:
Spec sub-agent prompt — 包含:
如果缺少 spec,跳过 Spec sub-agent,并在最终报告中说明。
在 ## Standards 和 ## Spec headings 下展示两个 reports,可原样或轻微清理。不要合并或重新排序 findings;这两个轴线刻意保持分离,方便用户独立查看。
最后用一行总结:每个轴线的 findings 总数,以及被标记的最严重单个问题(如果有)。
一个变更可能通过其中一个轴线,但失败在另一个轴线:
分开报告能避免一个轴线掩盖另一个轴线。