Code Review
Dual-axis review of a diff against a fixed point, checking Standards and Spec in parallel sub-agents.
- CCM score
- 63 of 100
- skills.sh installs
- 4.6K
- GitHub stars
- 6.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Runs Standards and Spec reviews as parallel sub-agents, each in a fresh context, and reports them side by side
- Starts from a fixed point (commit, branch, tag, or merge-base), verifies it resolves, and confirms the diff is non-empty
- Locates spec sources from commit issue references, user-supplied paths, or matching
docs/,specs/, and.scratch/files - Applies repo-documented standards plus a Fowler code-smell baseline, treating smells as labeled judgement calls that repo rules can override
- Keeps the two axes separate so a pass on one cannot mask a failure on the other
Install
$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill code-review -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
对用户提供的 fixed point 与 HEAD 之间的 diff 做双轴 review:
- Standards:代码是否符合这个 repo 记录下来的 coding standards?
- Spec:代码是否忠实实现来源 issue / spec?
两个轴线都作为并行 sub-agents运行,避免互相污染 context;然后这个 skill 聚合它们的 findings。每个 sub-agent 都要使用全新的 context window 启动。
Issue tracker 应该已经提供给你;如果没有,请让用户运行 /setup-matt-pocock-skills。
流程
1. 确定 fixed point
用户说的任何内容都是 fixed point:commit SHA、branch name、tag、main、HEAD~5 等。如果用户没有指定,就询问。
先捕获一次 diff command:git diff <fixed-point>...HEAD(three-dot,因此比较对象是 merge-base)。同时用 git log <fixed-point>..HEAD --oneline 记录 commits 列表。
继续前,确认 fixed point 能解析(git rev-parse <fixed-point>),并且 diff 非空。错误 ref 或空 diff 应该在这里失败,而不是进入两个并行 sub-agents 后才失败。
2. 找到 spec 来源
按以下顺序寻找来源 spec:
- Commit messages 中的 issue references(
#123、Closes #45、GitLab!67等),按 tracker doc 中的 workflow 获取。 - 用户作为 argument 传入的 path。
docs/、specs/或.scratch/下与 branch name 或 feature 匹配的 spec 文件。- 如果什么都找不到,询问用户 spec 在哪里。如果用户说没有 spec,Spec sub-agent 跳过并报告 “no spec available”。
3. 找到 standards 来源
搜索 repo 中所有记录代码应该如何写的文件。当 CODING_STANDARDS.md 或 CONTRIBUTING.md 存在时,必须列入清单。
Details
- Repository
- github.com/vinvcn/mattpocock-skills-zh-cn
- Categories
- Code Review & Quality, Git & Releases
- First seen
- Jul 14, 2026
Questions
What does the code-review skill do?
It reviews the diff between a fixed point (a commit, branch, tag, or merge-base) and HEAD along two axes: Standards, checking whether the code follows the repository's documented coding standards, and Spec, checking whether it meets the requirements of the source issue or spec. Both reviews run as parallel sub-agents and their findings are reported side by side.
How do I install the code-review skill?
Run npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill code-review -y in your project. Once installed, the agent can review branches, pull requests, and in-progress changes, including requests like "review since X".
Who should use the code-review skill?
It is aimed at developers who want to review a branch, a PR, or work in progress against both the repository's coding standards and the spec it was meant to implement. It sits in the Code Review & Quality category, where other skills such as improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review are listed.
Does the code-review skill need a spec or issue tracker?
The Spec review needs a source spec, which the skill looks for in commit messages, in a path the user provides, or in docs, specs or .scratch folders. If no spec is available, the Spec sub-agent is skipped and the report says so, while the Standards review still runs.
More from vinvcn/mattpocock-skills-zh-cn
All 24- Ask Matt4.6K
- Diagnosing Bugs4.6K
- Implement4.5K
- Codebase Design4.5K
- Research4.4K
- Writing Shape3.9K
- Writing Fragments3.9K
- Writing Beats3.9K
- Grill Me7.1K
- Grill With Docs6.7K
- Setup Matt Pocock Skills6.4K
- Handoff6.3K
- Tdd6.3K
- Improve Codebase Architecture6.2K
- Prototype6.2K
- Triage6K
- Git Guardrails Claude Code5.8K
- Scaffold Exercises5.8K
- Setup Pre Commit5.8K
- Migrate To Shoehorn5.8K
- Teach5.6K
- Grilling4.9K
- Domain Modeling4.6K
Similar to Code Review
More Code Review & Qualityreviewmattpocock/skills89.9K installsTwo-axis review of changes since a fixed point, checking code against repo standards and the originating spec.
review-and-simplify-changesdimillian/skills880 installsScoped review of git changes for reuse, quality, efficiency, and clarity, with optional safe automated fixes.
thermoscursor/plugins2.4K installsParallel dual-subagent code review that combines bug and security checks with code-quality audits.
ce-code-revieweveryinc/compound-engineering-plugin4.1K installsStructured review of a named diff or PR for bugs, regressions, tests, and standards, report-only by default.
validate-changes-match-specswarpdotdev/common-skills26K installsVerifies a branch or pull request implementation matches its introduced product, technical, and security specs.
review-swarmdimillian/skills830 installsParallel read-only review of a git diff or file scope, surfacing high-signal regressions, security, and coverage issues.