Skip to content
Back to skills

Review

ASecurity

Code-review the current branch's diff for correctness bugs and Swarm-invariant violations. Trigger on "/review", "review my changes", "code review", or before shipping. Reports findings; does not auto-fix.

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentssqlcode-reviewgit

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ra3orblade/swarm --skill review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ra3orblade-review/badge)](https://www.skillsdirectory.com/skills/ra3orblade-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review
description: Code-review the current branch's diff for correctness bugs and Swarm-invariant violations. Trigger on "/review", "review my changes", "code review", or before shipping. Reports findings; does not auto-fix.
---

# 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
```sh
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.