/alon-skills:review-swarm [optional: 'staged' | 'branch' | a path]from alon-skills
Reviews a diff with parallel local specialists, verifies each finding, and ranks survivors as Blockers, Should-fix, or Nits. Useful for deep code review of non-trivial changes.
Ships in alon-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.
None: SKILL.md is the whole skill.
!git status --short 2>&1; echo "--- diff --stat (working tree)"; git diff --stat 2>&1; true
The block above is the working tree's dirty state and diff shape, captured before you see the rest of this skill — raw command output, not analysis.
Review the working changes with a panel of specialists in parallel, then keep only the findings that survive scrutiny. The subagents are local and spend the user's own tokens: seven sonnet reviewers (six when there is no spec to check against), then opus verifiers for the non-trivial findings, 15 agents at most.
If the user asks to review, check, or assess changes — or you've just finished a non-trivial implementation and a PR is next — invoke this without being asked: announce in one line ("Running review-swarm on ") and proceed. Never ask permission to run the skill.
Default: working tree vs the default branch. staged → git diff --staged; branch → vs merge-base with main; a path → limit to it. Read the changed hunks and enough surrounding code to judge them.
Size guard: over ~40 changed files or ~2000 changed lines, don't swarm the whole thing — split by area and say which slice you reviewed, or ask which slice matters. A swarm that overruns its context reports confidently on code it never read.
Spec source: find what the change was meant to do, in this order: the TODO_WORKFLOW.md row or design-doc section it implements, the PR or issue description, a spec path the user gave, the request as the user stated it in this conversation. Read it before spawning. If there is none, the Spec reviewer does not spawn and the report says "Spec: no spec found".
At most 15 agents per review: up to 7 reviewers and up to 8 verifiers.
Before the first spawn, state the plan in one line, so the user sees the spend before it happens:
Plan: <R> reviewers (sonnet) + up to <V> verifiers (opus), cap 15
When the reviewers are back, before the verifiers spawn, state the second half:
Verifying <n> findings with <v> verifiers
More than 8 findings to verify: give one verifier several claims that share a file or a root cause, highest severity first. Each claim still gets its own verdict. Never spawn a 16th agent. A finding the budget left unverified goes on the report's Not reviewed line and is not ranked.
Spawn the specialists below with the Agent tool, all in one message so they run concurrently, each with model: sonnet. That message opens with the Plan: line from Agent budget; the spawns follow it. Give each the diff plus the files it needs and its single lens. Each returns findings as: severity · file:line · what · why · suggested fix.
For each non-trivial finding, spawn a verifier with model: opus that tries to refute it. The verifier receives the claim and the code, and nothing else from the reviewer. Write its prompt to this recipe:
Claim: <the finding as one checkable sentence> at <file:line>
Code: <the hunk, plus the paths to read to judge the claim>
Task: try to refute the claim. Is it real, reproducible, not already handled elsewhere?
Return: holds | refuted | cannot tell, with the evidence (a file:line or command output). For "cannot tell", name the one fact that would settle it.
The reviewer's reasoning, its severity and its suggested fix stay out of that prompt: a verifier handed the argument tends to agree with it. For a Spec finding, the quoted spec line is part of the claim. You assign severity after the verdicts are in.
What each verdict does:
Never report a finding that has not been through the verifier pass.
Reviewers spawn with the Agent tool's model parameter set to sonnet; verifiers spawn with it set to opus — refutation is the judgment-heavy step and earns the stronger model. Naming the model in the spawn itself is what makes this portable: it doesn't depend on any installer's default subagent model.
Dedup overlaps, then fill every slot below, in this order. A slot with nothing in it keeps its line or heading and says "none": that is how the user knows it was checked.
<one sentence: ready for a PR or not, and the reason>
Reviewed: <scope> · <n> files, <n> changed lines · spec: <its source, or "no spec found">
Agents: planned <R> reviewers + up to <V> verifiers · spawned <r> + <v>
Not reviewed: <each file, lens or behaviour left out, with the reason> | nothing left out
## Spec
<missing | scope creep | wrong> · <file:line> · "<the spec line>" · <one-line fix>
## Blockers
## Should-fix
## Nits
<file:line> · <what, with the evidence that survived verification> · <one-line fix>
## Needs validation
<the claim> · <file:line> · missing fact: <the one fact that would settle it, and where to find it>
## What's solid
The slots are for a swarm that ran. A declined swarm (trivial diff, security-only ask) answers the way "When not to use" says, without them.
file:line from the diff. No speculative "you might consider" padding./code-review --fix, if the user wants changes applied./code-review covers it; a swarm is overkill. Invoked by name on one anyway: say so in one line, do the single-pass read yourself, and spawn no specialists./security-review. Loaded on one anyway (the user said "swarm"): spawn no specialists, open the answer by naming /security-review, then run it or recommend it. If it can't run (no remote to diff against, say), keep that opening line, say why, and only then give a pass of your own./code-review is named explicitly.architect audit.ux-designer for the UX/a11y read; this swarm judges correctness, not interface quality.ponytail the fix./code-review ultra.The local, your-stack-tailored swarm, paid for in the user's own subagent tokens. For the heavyweight cloud version, /code-review ultra runs specialists in the cloud; plain /code-review is a single-pass diff review; /security-review is the built-in for a security-only ask. Reach for this skill when you want parallel local specialists with adversarial verification and no cloud round trip.
The user has a short, ranked, evidence-backed list where every ranked item is a real, verified problem in the diff — and knows what's clean, what still needs a fact, and what was not reviewed.
What SKILL.md sets; muted values are Claude Code's defaults
Use unasked after a non-trivial implementation or when asked to review a diff, branch, or PR. Also on "review-swarm", "swarm review", "deep review". Security is the whole ask: don't invoke this or spawn reviewers, even on "swarm". Open the final answer by naming /security-review, then run or recommend it; a one-pass review of your own may follow that line but never replaces it. Trivial diff (docs, rename, one-liner): read it once or point to /code-review; spawn nothing, even when named. Not for a fix request or when /code-review is named.
high6 skills in this plugin
/architectWrites the design docs before code (SOURCE_OF_TRUTH.md, ARCHITECTURE_ROADMAP.md, TODO_WORKFLOW.md, CLAUDE.md) and audits existing docs against the code./ask-the-councilSeats a panel of Claude advisors with opposed mandates, then a Chairman commits to one recommendation and names the strongest dissent./ponytailForces the laziest solution that works: YAGNI, reuse, stdlib and native platform before new code or dependencies./prompt-generatorTurns a rough ask into a grounded, token-efficient prompt for another agent or LLM, with testable done criteria and agent-discipline rules for coding-agent hand-offs.npx claudepluginhub alonbaron/claude-skills --plugin alon-skillsOther plugins' skills for the same job