Routes code-review situations to the right practice, and executes a two-axis review (Standards + Spec) of a diff via parallel sub-agents. Use when reviewing a branch/PR/work-in-progress, receiving review feedback, or before any completion claim. Dispatches receiving-code-review, requesting-code-review, or verification-before-completion for their specialized concerns.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Router + two-axis review executor. Three concerns live in sibling skills; this skill routes to them and runs the actual diff review.
Technical correctness over social comfort. Verify before implementing. Ask before assuming. Evidence before claims.
SITUATION?
│
├─ Received feedback on my code
│ └─ → `receiving-code-review` (technical evaluation, not performative agreement)
│
├─ Want a review of completed work
│ ├─ Major feature / before merge → run the Two-Axis Review below, then Ponytail delete-list pass
│ └─ After each task in subagent-driven dev → run Two-Axis Review
│
└─ About to claim work is complete
└─ → `verification-before-completion` (evidence gate, not review)
Reviews the diff between HEAD and a fixed point the user supplies (commit SHA, branch, tag, main, HEAD~5). Two axes run as parallel sub-agents so they don't pollute each other's context; this skill aggregates.
Capture the diff command once: git diff ...HEAD (three-dot, compares against merge-base). Note commits via git log ..HEAD --oneline. Confirm the ref resolves and the diff is non-empty before spawning sub-agents.
Look in order: issue refs in commit messages (#123, Closes #45) → a path the user passed → a PRD/spec under docs/, specs/, or .scratch/ matching the branch. If none found, ask the user; if they say there is no spec, the Spec sub-agent skips and reports "no spec available".
Anything documenting how code should be written: CODING_STANDARDS.md, CONTRIBUTING.md, lint/style configs. Plus the smell baseline below always applies.
Always carries this fixed set of Fowler code smells (Refactoring, ch.3) — applies even when a repo documents nothing. Two rules bind it:
Match each against the diff:
switch/if-cascade recurs across the change. → polymorphism or shared map.a.b().c().d() the caller shouldn't depend on. → hide behind one method.One message, two Agent calls, general-purpose for both.
Standards sub-agent — include: the diff command + commit list, the standards-source files found, the smell baseline above pasted in full (the sub-agent has no other access). Brief: "Report per file/hunk — (a) every place the diff violates a documented standard: cite the standard (file + rule); and (b) any baseline smell: name it and quote the hunk. Distinguish hard violations (documented-standard breaches) from judgement calls (baseline smells). A documented repo standard overrides the baseline. Skip anything tooling enforces. Under 400 words."
Spec sub-agent — include: the diff command + commit list, the path or fetched contents of the spec. Brief: "Report: (a) requirements the spec asked for that are missing or partial; (b) behaviour in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but where the implementation looks wrong. Quote the spec line for each finding. Under 400 words."
If the spec is missing, skip the Spec sub-agent and note it in the final report.
Present the two reports under ## Standards and ## Spec headings, verbatim or lightly cleaned. Do not merge or rerank — the two axes are deliberately separate. End with a one-line summary: total findings per axis, and the worst issue within each axis. Don't pick a single winner across axes.
After the review, if the diff added abstractions, dependencies, wrappers, or extra files, run a Ponytail delete-list pass. Use /ponytail-review when available; otherwise apply the checklist inline: reuse existing helper, stdlib/native first, delete speculative flexibility, shrink wrappers.
A change can pass one axis and fail the other. Code that follows every standard but implements the wrong thing → Standards pass, Spec fail. Code that does exactly what the issue asked but breaks conventions → Spec pass, Standards fail. Reporting them separately stops one axis from masking the other.
verification-before-completion before next.receiving-code-review; do not implement before verifying.Verify. Question. Then implement. Evidence. Then claim.
What SKILL.md sets; muted values are Claude Code's defaults
/core:code-reviewfrom core
npx claudepluginhub dxta/claude-code-skills --plugin core23 skills in this plugin
/agent-selectionSelect Pi agents from compact local agent index./anti-patternsCommon mistakes to avoid with explanations and correct alternatives/clean-codeApply Robert C. Martin Clean Code principles and the clean-code-skills rule catalog when code quality is explicit or when an agent is reviewing, simplifying, refactoring, or cleaning touched code. Use for clean code, code smells, maintainability, readability, naming, small functions, comments/docstrings, DRY, duplication, magic numbers, boundary conditions, Boy Scout cleanup, refactor review, PR review, code quality review, test readability, boundary test coverage, test maintainability, pytest monkeypatch rejection, fixture/conftest cleanup, or requests like "make this cleaner", "review for maintainability", "is this clean code", "simplify this", "remove code smells", "rename this", "split this function", "clean up comments", "clean up tests", or "review tests for clarity". For Python or TypeScript, load only the matching language reference file for files in active scope.Other plugins' skills for the same job