agentleFS
Lesile-YinLesile-Yin/agent-skills/skills/audit-swarm/SKILL.md

audit-swarm

Skill2 starsChanged 3 months agoMITView on GitHub

Fan out 4–5 role-specialised audit agents (regression / security / performance / coverage / style) over a code change, then merge findings with a noise-filtered severity model. Use as a wider-net alternative to a single review pass, or as a complement to prism-review when a change needs breadth.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a non-trivial change, before merge.

    line 17
  2. Distinctive:

    When prism-review's four lenses need more coverage (e.g.

    line 18
  3. Distinctive:

    When a single model's review keeps missing a category of defect.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Audit Swarm

One reviewer sees one lens. audit-swarm sees many at once by spawning a small swarm, each constrained to its lane, then merging without duplicating noise.

When to use

  • After a non-trivial change, before merge.
  • When prism-review's four lenses need more coverage (e.g. a dedicated coverage or style lane).
  • When a single model's review keeps missing a category of defect.

Workflow

Step 1 — Scope the swarm

Given the diff + intent brief, pick 4–5 lanes. Default set: regression, security, performance, coverage, style. Drop a lane if the change can't touch it; add one if the domain demands (e.g. i18n, accessibility).

Step 2 — Dispatch with contracts

Each agent gets: the diff, the brief, and exactly one lane checklist (see references/lanes.md, adapted from prism-review's lens model). Agents report findings only in their lane; cross-lane observations go to merge as "notes".

Step 3 — Merge with a noise filter

Dedupe by file:line. Collapse "looks fine" noise. Rank survivors by severity (critical / major / minor / nit). A finding is critical only if it can cause data loss, a security break, or a regression in shipped behavior.

Step 4 — Emit the merged report

Table form: file:line · lane · severity · one-line finding · suggested fix. Flag escalations (critical/major) for human review; nits may be auto-batched.

Anti-patterns (never do these)

  • Overlapping lanes — two agents auditing the same thing just doubles noise.
  • Agents without a contract — they drift into generic "looks okay" spam.
  • Running a swarm on a one-line typo diff — cost exceeds value.
  • Severity inflation — not everything is "critical".

Output contract

Return a merged findings table + an escalation list + a one-line coverage note ("N lanes, M findings, K critical"). No swarm runs without a diff and a brief.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.