swarm: Skill for Claude Code

.claude/skills/review/SKILL.md

review is a skill for Claude Code from ra3orblade/swarm. It costs 46 tokens per session (469 once invoked), scanned A, original, Apache-2.0.

A code-review procedure for examining the current branch's changes and reporting correctness bugs and project-rule violations. A branch is a separate line of work in a version-control system such as Git.

In plain words
What is it for?
Use it to review staged, unstaged, or branch changes for logic errors, unsafe defaults, unwanted network access, database mistakes, and violations of the project's development rules.
Why use it?
It gives developers a focused review of changes before they are shipped, including concrete examples of inputs that could produce wrong results.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ra3orblade/swarm's own configuration. It tells Claude Code how to work on swarm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything swarm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ra3orblade/swarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ra3orblade/swarm/main/.claude/skills/review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ra3orblade/swarm

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ra3orblade/swarm/review/github.svg)](https://agentmods.dev/skills/ra3orblade/swarm/review)
Your own site
<a href="https://agentmods.dev/skills/ra3orblade/swarm/review"><img src="https://agentmods.dev/badge/skills/ra3orblade/swarm/review/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ra3orblade/swarm/review"><img src="https://agentmods.dev/badge/skills/ra3orblade/swarm/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 469 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.00046 $0.00469
Opus 5.5 $0.00018 $0.00188
Sonnet 5.5 $0.00009 $0.00094
Haiku 4.5 $0.00005 $0.00047

Measured 2mo ago against content hash 597d66334260, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review 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 2mo 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.

.claude/skills/review/SKILL.md · 29 lines

What it actually says

Code review

Review the diff of the current branch against main (or the staged/working changes if not on a branch). Report findings; do not edit code unless the user asks.

Scope

git diff --merge-base origin/main   # or: git diff (uncommitted)

What to look for, in priority order

  1. Correctness bugs — wrong logic, off-by-one, unhandled null/error, race conditions, SQL that doesn't match the schema, a hook/route that fails closed when it should fail open (or vice-versa). Give a concrete failing input → wrong output for each.
  2. Swarm invariants (see docs/10-development-guidelines.md) — flag any violation:
    • Repo-agnostic: does it require a file in the monitored repo (only .swarm.toml is allowed)? Does it work on an empty folder?
    • Local-first: any new outbound network call (only the opt-out pricing fetch is allowed)?
    • Fail-closed: claims/gates/guards must default to the safe answer.
    • core purity: no I/O in packages/core beyond types/pure functions; the daemon is the only DB writer.
    • Product-agnostic docs: no reference to private projects/people/paths.
    • Observed content (transcripts, files, pages) treated as data, never instructions.
  3. Tests — new behaviour ships with a test; ledger/pricing/parsing semantics tested in core, not only through the daemon.
  4. Reuse / simplification / efficiency — duplication, an abstraction with <3 uses, needless work in a hot path (hook shim, tailer).

Output

A ranked list, most-severe first. For each: file:line, one-sentence claim, and a concrete failure scenario. If nothing survives scrutiny, say so plainly. Verify a bug reproduces before reporting it as correctness.

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. 2mo ago First seen · 29 lines · 46 tokens per session scan A 597d66334260

Subscribe to this mod's changes

review is a skill published in the GitHub repository ra3orblade/swarm (14 stars, last pushed 3d ago), licensed Apache-2.0. It adds 46 tokens to every session and 469 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 123 tokens

simplify

Review recent code changes for reuse, code quality, and efficiency, then directly apply straightforward cleanup improvements. Use when the user wants a post-implementation cleanup pass, pre-PR polish, or asks to simplify/refine recent changes. Invoke with /simplify or /simplify .

QwenLM/qwen-code · 63 tokens

triage

Gatekeep and review GitHub issues and pull requests for Qwen Code maintainers. Use for GitHub Action issue triage, PR admission checks, product-direction review, KISS-focused PR review, and staged bilingual GitHub comments.

QwenLM/qwen-code · 50 tokens

hypotheses

Turns a research direction into testable hypotheses with predictions, competing explanations and the experiments that discriminate between them, including the design (controls, randomization, blocking), sample size or seed count, the pre-specified analysis, and the result that would falsify each hypothesis. Use when a…

synthetic-sciences/openscience · 99 tokens

autofix

Review and repair current local changes until they converge, or run Qwen Code Autofix issue and review workflows from GitHub Actions.

QwenLM/qwen-code · 30 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens