agentleFS
mattdweigand-sketchmattdweigand-sketch/agent-skills/skills/swarm/SKILL.md

swarm

Skill1 starsChanged 39 days agoMITView on GitHub

Invocation-only workflow. Use only when the user includes literal `swarm` as an instruction to apply this workflow. Do not trigger for broader agent, harness, judge, checker, orchestration, or multi-agent requests unless the literal `swarm` invocation is present.

87 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, make-bot-ui and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 19 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 27 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 23 projects that use this

  • jaydubya818Skill

    principle-attack-the-premise

    Apply when repeated fixes fail and a shared assumption may be wrong.

    Also in 31 projects that use this

  • jaydubya818Skill

    poteto-mode

    Use when non-trivial work should follow the smallest rigorous Jstack workflow.

    Also in 27 projects that use this

  • +5 more from jaydubya818

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 83 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill only when the user includes literal swarm as an instruction to apply this workflow, for example:

    line 14
  2. Very specific:

    Do not use this skill for incidental mentions of agents, multi-agent design, orchestration, checkers, judges, Ringer, or harnesses unless …

    line 21
  3. Very specific:

    If the task is not swarm-ready, return DO NOT SWARM with the smallest better alternative.

    line 27
  4. Distinctive:

    If any of these are missing and cannot be inferred safely, ask one compact batch of questions before designing the swarm.

    line 45
  5. Very specific:

    Use SWARM only when all are true:

    line 62
  6. Distinctive:

    Prefer deterministic checks.

    line 81
  7. Distinctive:

    No rank escapes verification.

    line 93
  8. Distinctive:

    Do not turn every task into a swarm.

    line 141
  9. Distinctive:

    Do not let worker self-reports count as proof.

    line 142
  10. Distinctive:

    Do not let a persuasive explanation substitute for evidence.

    line 143
  11. Distinctive:

    Do not allow external writes, sends, deletes, purchases, permission changes, production commands, or public posts without explicit …

    line 144
  12. Distinctive:

    Do not hide uncertainty inside the final recommendation.

    line 145
  13. Distinctive:

    Do not create a closed loop where the same agent that produced work is treated as an independent checker.

    line 146
  14. Distinctive:

    If execution is requested but the available environment cannot run real parallel agents, produce pasteable worker and checker prompts …

    line 147

“Common” is measured: kept by at least 6 in 10 of the 83 edited versions of this file we could read. “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

Swarm

Invocation-only workflow for turning a bounded task into a verified swarm: planner, workers, checks, appeals, and a review packet.

The core rule: do not trust the agents. Build the institution around them.

Trigger Boundary

Use this skill only when the user includes literal swarm as an instruction to apply this workflow, for example:

  • swarm this
  • run swarm on this workflow
  • swarm: <task>
  • /swarm <task>

Do not use this skill for incidental mentions of agents, multi-agent design, orchestration, checkers, judges, Ringer, or harnesses unless the user uses swarm as the invocation keyword.

Default Posture

Swarm is not the default answer. A task earns a swarm only when it can be split into bounded lanes and checked cheaply enough that parallelism reduces review burden instead of multiplying it.

If the task is not swarm-ready, return DO NOT SWARM with the smallest better alternative.

Plan-only by default. Produce SWARM PLAN; do not spawn agents, edit files, run commands, or take durable/external side effects unless the user explicitly asks to execute the plan.

Workflow

1. Capture The Job

Identify:

  • goal
  • source of truth
  • allowed actions
  • forbidden actions
  • durable/external side effects
  • done condition
  • review budget

If any of these are missing and cannot be inferred safely, ask one compact batch of questions before designing the swarm.

2. Run The Readiness Gate

Classify the task:

  • SWARM: multiple bounded lanes, independent outputs, clear checks, manageable merge.
  • SINGLE RUN: one agent/thread should do it; parallelism adds overhead.
  • STEER FIRST: the work is still too ambiguous.
  • DO NOT RUN: permission, source-of-truth, safety, or rollback path is missing.

Fallback routing:

  • SINGLE RUN: use run-kit for a scoped run spec, proof, or cross-check.
  • STEER FIRST: stay in conversation until the source of truth, done condition, and review budget are clear.
  • DO NOT RUN: stop and ask for the missing authority, permission, or rollback path.

Use SWARM only when all are true:

  • Work can be decomposed into lanes with explicit boundaries.
  • Each lane has a concrete artifact or answer.
  • Each lane has an executable, citeable, or inspectable check.
  • Merge can be reviewed against a written standard.
  • Side effects are gated before execution.

3. Write The Constitution

Define 5 to 14 testable rules for done-right work.

Each rule must include:

  • the standard
  • the evidence needed
  • the check method
  • who decides if the check is disputed

Prefer deterministic checks. Use LLM judges only where judgment is real and the evidence is available.

4. Design The Org Chart

Assign:

  • Planner: decomposes the work, writes lane specs, does not execute worker tasks by default.
  • Workers: execute one bounded lane each; no global authority; no external side effects unless explicitly allowed.
  • Checkers: verify worker outputs against the constitution; deterministic checks first, LLM judges second.
  • Reviewer: merges outputs, resolves contradictions, and prepares the review packet.
  • Owner: the human or named authority who accepts, rejects, or escalates the final result.

No rank escapes verification. Planner, worker, checker, and reviewer outputs can all be wrong.

5. Build The Appeals Path

Checks can fail incorrectly. Include a process for:

  • worker retry after a valid failure
  • checker correction after an invalid failure
  • escalation when evidence is insufficient
  • human review for high-stakes or ambiguous boundaries

The appeal must preserve the reason for the original check and the reason for changing it.

6. Produce The Review Packet

The review packet is the product. Final prose is only a receipt.

Include:

  • task and scope
  • constitution
  • lane specs
  • worker outputs or expected artifacts
  • proposed checks by default; checks run only after explicit execution
  • failures, retries, and appeals
  • unresolved risks
  • final recommendation

Output Shape

Use this heading:

SWARM PLAN

Then include:

  • Verdict: SWARM / SINGLE RUN / STEER FIRST / DO NOT RUN
  • Why: short reason for the verdict
  • Constitution: numbered testable rules
  • Org Chart: planner, workers, checkers, reviewer, owner
  • Worker Lanes: lane name, task, input, output, forbidden actions
  • Checks: proposed checks by default; commands, citation checks, deterministic checks, LLM judges, or human reviews actually run only after explicit execution
  • Appeals: retry, checker correction, escalation path
  • Review Packet: what the final packet must contain
  • Execution Notes: exact next prompts, commands, or dispatch instructions if execution is requested

Guardrails

  • Do not turn every task into a swarm.
  • Do not let worker self-reports count as proof.
  • Do not let a persuasive explanation substitute for evidence.
  • Do not allow external writes, sends, deletes, purchases, permission changes, production commands, or public posts without explicit permission.
  • Do not hide uncertainty inside the final recommendation.
  • Do not create a closed loop where the same agent that produced work is treated as an independent checker.
  • If execution is requested but the available environment cannot run real parallel agents, produce pasteable worker and checker prompts instead.

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.