/dwin-skills:code-reviewfrom Dwin Skills
Review the changes since a fixed point (commit, branch, tag, or merge-base) along three axes — Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Behavior (does the change hold up when a reviewer runs it and tries to break it?). Runs the 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".
Ships in Dwin Skills. 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.
Three-axis review of the diff between HEAD and a fixed point the user supplies:
The axes run as parallel sub-agents so they don't pollute each other's context, then this skill aggregates their findings.
If docs/agents/issue-tracker.md exists, follow it. Otherwise, use the issue
tracker tools or CLI available in the current environment and keep the review
self-contained.
Resolve the comparison from the user's commit, branch, or supplied PR. For a PR, inspect its current base and head and verify the selected checkout against that head. Preserve an explicit fixed point. Ask only when available repository and PR evidence leaves the intended comparison unclear.
Capture the diff command once: git diff <fixed-point>...HEAD (three-dot, so the comparison is against the merge-base). Also note the list of commits via git log <fixed-point>..HEAD --oneline.
Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. A bad ref or empty diff should fail here — not inside two parallel sub-agents.
Look for the originating spec, in this order:
#123, Closes #45, GitLab !67, etc.) — fetch them using docs/agents/issue-tracker.md when present, or the available issue-tracker tools otherwise.docs/, specs/, or .scratch/ matching the branch name or feature.The Behavior axis needs the change's intent even when there is no spec. With a spec, the intent is the spec. Without one, write the intent in a sentence or two from the commits and the PR description, and label it as inferred.
Search the repo for every file that documents how code should be written. When CODING_STANDARDS.md or CONTRIBUTING.md exists, it must be on the list.
On top of whatever the repo documents, the Standards axis always carries the smell baseline below — a fixed set of Fowler code smells (Refactoring, ch.3) that applies even when a repo documents nothing. Two rules bind it:
Each smell reads what it is → how to fix; match it against the diff:
switch/if-cascade on the same type recurs across the change. → replace with polymorphism, or one map both sites share.a.b().c().d() navigation the caller shouldn't depend on. → hide the walk behind one method on the first object.The baseline carries one item that is not a Fowler smell, under the same two rules:
do not remove, keep in sync with, ask X before changing. → propose the cheapest type, test, or lint that enforces the rule, and keep the comment until that check exists. A comment about something the repo cannot change, such as an external API's quirk, stays as it is.Issue the sub-agent calls together, in the foreground, and aggregate the reports they return. Background sub-agents can finish without their reports reaching you.
A review is read-only. Open every prompt with: "Read the code and run checks, then report. The author owns every edit, commit, push, and post, so leave the working tree, the branch, and the PR exactly as you found them." The same rule binds you when you are the reviewer.
When your own brief rules out sub-agents, as a reviewer started by another agent usually is, run the Standards axis, then Spec, then Behavior yourself and report them under the same three headings.
Standards sub-agent prompt — include:
Spec sub-agent prompt — include:
If the spec is missing, skip the Spec sub-agent and note this in the final report.
Behavior sub-agent prompt — include:
When the diff has nothing to run, as with a prose-only change, skip the Behavior sub-agent and note this in the final report.
Before reporting, rerun the command behind each Behavior finding. Keep a finding when the output shows the failure and the failure breaks the intent. Drop the rest, and merge findings that share a root cause.
Present the reports under ## Standards, ## Spec, and ## Behavior headings. Give Standards and Spec verbatim or lightly cleaned. Under Behavior, give each kept finding's command, its output, and how it breaks the intent, then the number dropped and why; say "no verified findings" when none survive. Do not merge or rerank findings across axes — they are deliberately separate (see Why three axes).
End with a one-line summary: total findings per axis, and the worst issue within each axis (if any). Don't pick a single winner across axes — that's the reranking the separation exists to prevent.
A change can pass one axis and fail another:
Standards and Spec are readings of the diff. Behavior reports only what a run showed, so it catches what a reading passes over and stays silent on anything it could not execute.
Reporting them separately stops one axis from masking another.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dwin/skills --plugin dwin-skills52 skills in this plugin
/arenaHave several agents attempt the same task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use for "arena this" or when one attempt at an artifact would lock in the wrong shape./autopilotDrive a branch to a ready pull request. Keeps it current with its base, gets local review from a different model family, marks it ready, and handles CI and AI-reviewer feedback. With `merge`, also merges it. Use when the user invokes autopilot./babysitMonitor or babysit an open pull request through CI, mergeability changes, and review feedback. Use when the user asks to watch a PR, keep checking it, diagnose checks, address in-scope findings, or stay with it until it is merged, closed, or genuinely needs user input.