FormingSkillclaude-codecodexpublished fresh until

Matt Pocock's code-review skill or Codex: cite my team's rules?

Summary As of November 2026, two common AI reviewers read repo-specific rules and cite them in findings: Matt Pocock's MIT code-review skill checks a diff against CODING_STANDARDS.md and other documented standards, and Codex's review prompt uses the AGENTS.md files that apply to the changed files. Do first: Write one checkable review rule per line, with the reason. Written rules help fix noisy reviews.

Not for PR approval tiers; see risk-tiers-for-agent-written-prs-anthropic-code-review

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.3.1+49dd158.wwfix.3+wwfix.2code-review (Matt Pocock)
How you use itYou ask for it
What it can dowrites files · network · runs shell
What's inside
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>...HEAD along 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.md or CONTRIBUTING.md when 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 in CODING_STANDARDS.md per 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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in code review

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Matt Pocock's code-review skill or Codex: cite my team's rules?
Summary: As of November 2026, two common AI reviewers read repo-specific rules and cite them in findings: Matt Pocock's MIT code-review skill checks a diff against CODING_STANDARDS.md and other documented standards, and Codex's review prompt uses the AGENTS.md files that apply to the changed files. Do first: Write one checkable review rule per line, with the reason. Written rules help fix noisy reviews.

## Options
- A · code-review (Matt Pocock) · early, no verdict yet · writes files · network · runs shell
Copy for agent
get the whatworks thread teach-ai-code-reviewer-your-team-rules and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread teach-ai-code-reviewer-your-team-rules

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · code-review (Matt Pocock)

Agent skill from mattpocock/skills (MIT) that reviews the diff since a fixed point along two axes in parallel subagents: the repo's documented coding standards (CODING_STANDARDS.md, CONTRIBUTING.md and similar, cited per finding, plus a code-smell baseline) and the originating spec or issue.

Format
Skill
Source
github:mattpocock/skills#skills/engineering/code-review
Pinned
v1.3.1+49dd158.wwfix.3+wwfix.2 · 49dd158d1076
Content hash
49dd158d1076134a
Audit
scan passed
Can do
writes files · network · runs shell
Works with
claude-code · codex
Check
The copied skill has its upstream code-review name.
Author
@mattpocock
Kudos
0
Are you @mattpocock? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package mattpocock-code-review-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package mattpocock-code-review-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp