review-swarm

review-swarm is a skill for Claude Code from alonbaron/claude-skills. It costs 92 tokens per session (1,475 once invoked), scanned A, original, MIT.

A local code-review tool that asks several specialist reviewers to examine your changes in parallel and combines their findings.

In plain words
What is it for?
Use it to review a working diff before merging or opening a pull request. It returns checked, de-duplicated findings with severity and file-and-line locations.
Why use it?
It helps catch correctness, security, performance, design, simplicity, testing, and failure-path problems that one review may miss.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the NotebookEdit tool.

Part of the alon-skills plugin — 6 skills shipped together

Good fit Use it to review a working diff before merging or opening a pull request. It returns checked, de-duplicated findings with severity and file-and-line locations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alonbaron/claude-skills/review-swarm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alonbaron/claude-skills --skill review-swarm
Clone the repo
git clone --depth 1 https://github.com/alonbaron/claude-skills

Made for: Claude Code.

Or install alon-skills, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-swarm

README.md
[![agentmods](https://agentmods.dev/badge/skills/alonbaron/claude-skills/review-swarm/github.svg)](https://agentmods.dev/skills/alonbaron/claude-skills/review-swarm)
Your own site
<a href="https://agentmods.dev/skills/alonbaron/claude-skills/review-swarm"><img src="https://agentmods.dev/badge/skills/alonbaron/claude-skills/review-swarm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for review-swarm

Your own site · 80×15
<a href="https://agentmods.dev/skills/alonbaron/claude-skills/review-swarm"><img src="https://agentmods.dev/badge/skills/alonbaron/claude-skills/review-swarm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01475
Opus 5.5 $0.00037 $0.00590
Sonnet 5.5 $0.00018 $0.00295
Haiku 4.5 $0.00009 $0.00147

Measured 9d ago against content hash a7134fe181cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-swarm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/review-swarm/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Review Swarm

!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. Free and local (Claude subagents).

Proactive use

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.

Scope

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.

Reviewers

Spawn the six specialists below with the Agent tool, all in one message so they run concurrently, each with model: sonnet. Give each the diff plus the files it needs and its single lens. Each returns findings as: severity · file:line · what · why · suggested fix.

  • Correctness — logic errors, edge cases, null/empty, off-by-one, concurrency/races.
  • Security & trust boundaries — authz/authn (JWT), input validation at boundaries, injection, IDOR, leaked secrets.
  • Data & performance — N+1 (JPA/Hibernate, SQLAlchemy), missing indexes, unbounded queries, transaction scope, lazy-load traps.
  • Architecture & altitude — does it fit the domain model? are invariants enforced at the core? wrong layer, leaky abstraction.
  • Simplicity (ponytail lens) — over-engineering, premature abstraction, dead code, a stdlib/native one-liner that replaces the change.
  • Tests & failure paths — non-trivial logic with no test, untested failure paths, error handling that could lose data.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +3 lines a7134fe181cf
  2. 1mo ago Changed 2dd39f513b53
  3. 1mo ago Changed · -10 lines · -57 tokens per session 88f76e4b78cf
  4. 1mo ago First seen · 103 lines · 149 tokens per session scan A 4ac612731e0c

Subscribe to this mod's changes

review-swarm is a skill published in the GitHub repository alonbaron/claude-skills (13 stars, last pushed 4d ago), licensed MIT. It adds 92 tokens to every session and 1,475 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gemini

Cross-model second opinion from Google Gemini — a different AI reviewing the same changes, with deep Google ecosystem knowledge. Three modes: review (pass/fail gate for Google Ads campaigns, SEO metadata, or code), challenge (adversarial stress-test that tries to break your changes), and consult (open Q&A with Gemini…

nowork-studio/notfair-plugin · 184 tokens

critical-code-reviewer

Rigorously review code or pull requests for correctness, security, accessibility, maintainability, tests, and edge cases. Use when users request a critical code review, want a guided walkthrough of findings, need implementer-facing feedback, or want to prepare, create, or submit a GitHub pull request review.

posit-dev/skills · 67 tokens

security-architecture-review

Reviews a design or change for security before it ships — authentication and authorization, data handling, secrets, dependencies, and the secure-development practices around it. Use this to review an architecture or pull request for security, set secure coding standards, choose or tune SAST and DAST tooling, assess a…

cbrock84/headcount · 78 tokens

pr-threads-address

Address PR review feedback by systematically working through every unresolved PR review thread on the current branch's PR - analyze each comment, make the requested code changes (with tests where useful), commit, and optionally reply and resolve.

posit-dev/skills · 48 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

boundaries

Analyze Phoenix context boundaries and module coupling via mix xref. Use when checking cross-context calls, validating dependencies, before splitting modules, or reviewing architecture.

oliver-kriska/claude-elixir-phoenix · 33 tokens