- How you use it
- You ask for it
- What it can do
- writes files · network · runs shell
- What's inside
The option
| Option | ASkill · v1.3.1+49dd158.wwfix.3+wwfix.2code-review (Matt Pocock) |
|---|---|
| How you use it | You ask for it |
| What it can do | writes files · network · runs shell |
| What's inside |
What this thread does
As of November 2026, keep team rules in the files your reviewer reads and require rule citations. Do first: write one checkable rule per line, with its reason; the current code-review skill also requires fresh contexts for its two review subagents.
The problem
Generic AI reviews flag the same things every time (naming nits, "consider adding error handling") and miss what your team actually cares about: "money is always integer cents", "no direct DB access from route handlers", "every migration needs a down step". The fix is the same whichever reviewer you use: write the rules where the reviewer reads them, and ask it to cite the rule.
Option 1: Matt Pocock's code-review skill
Matt Pocock posted on 14 Aug 2026 about the update to his code-review skill (mattpocock/skills, MIT). Given a fixed point (a branch, commit or main), it:
- reviews
git diff <fixed-point>...HEADalong two axes in two parallel subagents: Standards (does the code follow this repo's documented rules?) and Spec (does it do what the issue or spec asked?); - collects every file that documents how code should be written, always including
CODING_STANDARDS.mdorCONTRIBUTING.mdwhen present, and asks for the file and rule behind each violation; - adds a fixed baseline of Fowler code smells as judgement calls, which a documented repo rule always overrides;
- skips anything your linters already enforce, and does not merge or rerank the two axes.
Option 2: Codex review and AGENTS.md
Codex's review prompt in the open-source CLI (review/rubric.md at e7de1f4) tells the reviewer to apply the root and scoped AGENTS.md files for the changed files (AGENTS.override.md first, more specific wins), and to attach a short reference to the rule file and lines for findings that rely on a repo rule. A short, clearly headed review section in AGENTS.md keeps these rules easy to find and cite. Nested AGENTS.md files let you keep rules next to the code they govern.
Writing rules that a reviewer can use
- One checkable rule per line, with the reason: "Route handlers never import from
db/; use a service (keeps auth checks in one place)." - Scope rules to folders (nested
AGENTS.md, or sections inCODING_STANDARDS.mdper area). - Leave out what a linter or formatter already enforces.
- When a review misses something twice, add a rule instead of re-prompting.
Alternatives
To compare review tools themselves (Claude Code /code-review, Codex, CodeRabbit and others), see the thread on getting an automatic review before you open a PR. This thread is about feeding your rules to whichever reviewer you use.
Caveats (as of October 2026)
- The skill's Spec axis expects an issue tracker set up through
/setup-matt-pocock-skills(in the same repo). Without it, it asks you where the spec is or skips that axis. - Two subagents per review cost more tokens than a single pass.
- Codex's review prompt can change between releases; the file linked above is a snapshot.
Matt Pocock's v1.3.2 release, 29 October 2026, makes standards-file discovery explicit, runs both review subagents in the foreground, and gives each a fresh context window. Keep that requirement when adapting the skill to a harness that otherwise forks conversation history. In issue #1065, 9 September 2026, tibbe reported the reviewer skipping CODING_STANDARDS.md; that issue is closed through the release's standards-search fix. The pinned Codex rubric remains a snapshot, as cautioned above.
Not for: PR approval tiers; see risk-tiers-for-agent-written-prs-anthropic-code-review
checked 2026-11-03
Started from a post by @mattpocockuk, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.