agentleFS
aegnticaegntic/compound-engineering/skills/orchestrating-swarms/SKILL.md

orchestrating-swarms

Skill1 starsChanged 5 months agoMITView on GitHub

This skill should be used when orchestrating multi-agent swarms using Claude Code's TeammateTool and Task system. It applies when coordinating multiple agents, running parallel code reviews, creating pipeline workflows with dependencies, building self-organizing task queues, or any task benefiting from divide-and-conquer patterns.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 13

    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:

    Use swarms when the work has real parallelism, specialist boundaries, or dependency staging.

    line 20
  2. Distinctive:

    Use a normal Task/subagent when you want a focused result returned directly.

    line 37
  3. Distinctive:

    Use a teammate only when the worker needs a shared queue, persistent inbox messaging, or multi-step coordination.

    line 38
  4. Distinctive:

    Keep the team small. Extra workers are justified only when they remove wall-clock time or increase specialist quality.

    line 39
  5. Distinctive:

    Write tasks as outcomes, not vague topics.

    line 42
  6. Distinctive:

    Keep scopes non-overlapping unless the assignment is an explicit cross-check.

    line 43
  7. Distinctive:

    Prefer DAG-style dependencies over ad hoc sequencing.

    line 44
  8. Distinctive:

    Keep the canonical task list and dependency map.

    line 56
  9. Distinctive:

    Do not use a swarm as a substitute for thinking through the decomposition.

    line 68
  10. Distinctive:

    Do not create overlapping workers without saying why overlap is useful.

    line 69
  11. Distinctive:

    Do not dispatch named specialists without their full template or operating contract.

    line 70
  12. Distinctive:

    Do not accept worker claims without evidence you can trace.

    line 71
  13. Distinctive:

    Always close the loop with integrated verification, not just per-worker success.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 3 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

orchestrating-swarms Skill

Use swarms when the work has real parallelism, specialist boundaries, or dependency staging. If one agent can finish faster than the coordination overhead, stay single-threaded.

When to use

  • Parallel research, review, or implementation tracks.
  • Pipeline work where one stage unlocks another.
  • Large tasks that benefit from specialist prompts and explicit handoffs.
  • Situations where a leader must merge findings from multiple workers.

Workflow

  1. Decide whether you need a swarm. Prefer one agent for linear work, tiny diffs, or tasks with one obvious path.
  2. Break the job into independent units with owners, dependencies, and a concrete finish condition for each unit.
  3. Choose the right worker shape: short-lived subagents for one-off work, persistent teammates only when shared coordination is necessary.
  4. Give every worker full context: goal, scope, constraints, expected output, and what not to touch.
  5. Track progress, unblock dependencies, merge results, verify the combined outcome, then shut the swarm down cleanly.

Operating guide

Subagent vs teammate

  • Use a normal Task/subagent when you want a focused result returned directly.
  • Use a teammate only when the worker needs a shared queue, persistent inbox messaging, or multi-step coordination.
  • Keep the team small. Extra workers are justified only when they remove wall-clock time or increase specialist quality.

Task design

  • Write tasks as outcomes, not vague topics.
  • Keep scopes non-overlapping unless the assignment is an explicit cross-check.
  • Prefer DAG-style dependencies over ad hoc sequencing.
  • State what evidence counts as done: files changed, tests run, findings delivered, screenshots captured, or open questions listed.

Message contract

Have workers report in a terse, machine-checkable shape:

  • status: ready | blocked | done
  • scope: what they owned
  • evidence: commands, files, screenshots, or metrics
  • handoff: what the next worker or leader must do
  • risks: unresolved concerns

Leader responsibilities

  • Keep the canonical task list and dependency map.
  • Resolve blockers instead of letting workers stall silently.
  • Merge duplicate findings and remove contradictory advice.
  • Re-run shared verification after integrating worker output.
  • Shutdown teammates after their work is accepted.

Output

  • Swarm plan: workers, scopes, dependencies, and completion signals.
  • Progress log: blocked vs active vs done.
  • Final synthesis: merged findings, verification evidence, and remaining risks.

Guardrails

  • Do not use a swarm as a substitute for thinking through the decomposition.
  • Do not create overlapping workers without saying why overlap is useful.
  • Do not dispatch named specialists without their full template or operating contract.
  • Do not accept worker claims without evidence you can trace.
  • Always close the loop with integrated verification, not just per-worker success.

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.