agentleFS
MihirokteMihirokte/agent-skills/skills/swarm/SKILL.md

swarm

Skill0 starsChanged 4 months agoMITView on GitHub

When the user invokes /swarm, decompose independent work across multiple native subagents, scale the worker count with complexity, and synthesize one coherent result.

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use make-bot-ui, setup-pstack 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.
  • 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 8 projects that use this

  • shishivSkill

    setup-pstack

    Configure pstack delegation against the active Pi host. Use for /skill:setup-pstack, "configure pstack models", or checking delegation readiness.

    Also in 14 projects that use this

  • TheOnlyFusionCubeSkill

    principle-attack-the-premise

    Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.

    Also in 10 projects that use this

  • TheOnlyFusionCubeSkill

    principle-test-behavior-not-implementation

    Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.

    Also in 10 projects that use this

  • shishivSkill

    automate-me

    Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill + unslop, optionally pulling fresh evidence from recent transcripts.

    Also in 17 projects that use this

  • finograficSkill

    figure-it-out

    Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.

    Also in 19 projects that use this

  • +6 more from shishiv

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 3

    Distinctive

    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:

    How to run the swarm: Use the host agent's native subagent or delegation tool to launch separate workers in parallel (same turn if …

    line 20
  2. Distinctive:

    After subagents return, merge: resolve conflicts, unify design, run or request a single validation pass, and produce one coherent answer …

    line 25
  3. Distinctive:

    Use a general-purpose worker unless the host offers a more appropriate specialist.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 42 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 (/swarm)

When to use

Apply this skill whenever the user sends /swarm (with or without extra text in the same message). Treat it as an explicit command to parallelize the request across multiple subagents.

Rules

  1. Minimum agents: n ≥ 2. Never satisfy /swarm with a single subagent or a single serial plan without delegation.
  2. Scale n with complexity — bias upward; when in doubt, add another agent rather than overload one.
    • Small / localized (one file, one bug, narrow question): n = 2–3 (e.g. implement + verify, or explore + implement).
    • Medium (feature touching several files, API + UI, tests): n = 3–5 (e.g. backend, frontend, tests, docs or integration).
    • Large (refactor, multi-package, audit, unfamiliar codebase): n = 5–8+ (partition by subsystem, directory, concern, or risk).
    • Very large / open-ended: split by independent workstreams so agents do not block each other; n as high as is useful within practical limits (each Task must have a crisp prompt and clear deliverable).
  3. How to run the swarm: Use the host agent's native subagent or delegation tool to launch separate workers in parallel (same turn if possible). If the host has no delegation capability, explain that /swarm is unsupported instead of simulating parallelism. Each worker gets:
    • A narrow scope and concrete output (files to touch, questions to answer, or artifacts to produce).
    • No duplicate ownership of the same file unless one agent reads and another writes with an explicit handoff in your merge step.
  4. You (orchestrator) must:
    • Briefly state n and why that count matches complexity (one short paragraph).
    • After subagents return, merge: resolve conflicts, unify design, run or request a single validation pass, and produce one coherent answer for the user.
  5. If the user also gave a task description in the /swarm message, that description is the goal; decomposition is yours.

Anti-patterns

  • One giant Task prompt that does everything.
  • n = 1 or purely sequential subagents when work could run in parallel.
  • Skipping synthesis so the user sees disconnected partial reports.

Model hint

Use a general-purpose worker unless the host offers a more appropriate specialist. Use isolated worktrees for concurrent code edits when the host supports them.

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.