agentleFS
llblabllblab/pi-actors/skills/swarm/SKILL.md

swarm

Skill19 starsChanged 2 months agoMITView on GitHub

Use when work needs multiple actors or subagents for independent implementation, artifact generation, review, delegated audit, research, or coordinated decomposition and integration.

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

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 83 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Read actors first for generic Recipe, spawn, Run, Trace, Control, artifact, and lifecycle operation.

    line 10
  2. Distinctive:

    Do not change a running participant's profile merely because policy changed.

    line 25
  3. Very specific:

    Use different lenses for breadth and repeated independent judges for confidence.

    line 38
  4. Distinctive:

    Run fresh integrated validation and, for consequential outputs, an independent post-merge review.

    line 52
  5. Distinctive:

    Every material finding traces to inspected evidence or explicit uncertainty.

    line 70
  6. Distinctive:

    Keep reviewer evidence separate from merger findings.

    line 72
  7. Distinctive:

    If successful evidence is below the requested threshold, return degraded or insufficient data instead of inventing quorum.

    line 73
  8. Distinctive:

    Use a clean-context merger for serious quorum work.

    line 74

“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

Use multi-actor execution only when at least two scopes or evidence lenses are meaningfully independent and parallelism, clean-context judgement, or quorum confidence is worth the coordination overhead. Do not swarm a task that one bounded agent can complete safely, a task whose architecture is still unsettled, or concurrent mutations of one shared contract.

Read actors first for generic Recipe, spawn, Run, Trace, Control, artifact, and lifecycle operation. This Skill owns only multi-actor methodology: decomposition, scope ownership, independence, synthesis, integration, and completion proof.

Coordinator and participants

The coordinator owns decomposition, shared contracts, integration order, and final validation. Participants own bounded tasks or evidence lenses. Keep the coordinator available for decisions instead of duplicating participant implementation; use actors for launch, observation, and lifecycle mechanics.

Reasoning allocation

Allocate reasoning by role instead of making one long thread implement and judge itself:

  • Bounded implementation/authorship participants default to reasoning off when the task card fixes scope, invariants, checks, and escalation. Enable reasoning only when unresolved diagnosis or local design judgement is part of their assignment.
  • Reviewers default to independent medium reasoning and clean context. For consequential work, several reviewers with distinct lenses or repeated independent judgement usually provide better error discovery than increasing one author's reasoning and relying on self-review.
  • Synthesizers and integrators use medium reasoning because they reconcile evidence, conflicts, shared contracts, and retained state.
  • The coordinator decides whether review fanout is worth its cost, preserves dissent, and never treats reviewer count as evidence quality by itself.

Do not change a running participant's profile merely because policy changed. Replace or add a later independent review only when fresh evidence is still needed.

Choose the shape

NeedShapePrimary Recipe
Different risk lenses on one targetLens swarmswarm/lens-review
Independent judges for one exact claimQuorumswarm/quorum-review
Evidence map plus contradiction-preserving synthesisResearch swarmswarm/research-synthesis
Competing architecture directions and one smallest next sliceArchitecture swarmswarm/architect
Bounded implementation assignment with scope critiqueDevelopment taskingswarm/development-tasking
Multi-lens ship/readiness verdictReadiness reviewswarm/review-readiness

Use different lenses for breadth and repeated independent judges for confidence. Combine both only for high-stakes work where the added cost is justified. swarm/subagent-* Recipes are maintained composition components; start from a primary Recipe unless building an intentional custom composition.

Coordinator protocol

The coordinator owns the whole result even when participants choose local implementation details.

  1. State the goal, non-goals, evidence standard, integration owner, and stop condition.
  2. Partition work into disjoint read or write scopes. Give shared contracts one owner.
  3. Give each participant a bounded task card with allowed scope, avoided scope, expected artifact, checks, and escalation rule.
  4. Assign each participant an explicit execution profile and isolation mode under the reasoning-allocation contract.
  5. Preflight required model/tool access before expensive fanout.
  6. Launch independent work without cross-contaminating lenses. Do not let participants silently expand scope.
  7. Preserve every terminal result, including failures, disagreements, and partial evidence; avoid doing participant work in the coordinator while a valid owner remains active.
  8. Merge through one named synthesizer or integrator. Resolve conflicts from explicit intent and invariants, not textual convenience.
  9. Run fresh integrated validation and, for consequential outputs, an independent post-merge review.
  10. Report complete, degraded, or insufficient-data status honestly; name residual owners and next actions.

Scope and coordination rules

  • One writable scope has one owner. Parallel readers may share a stable target.
  • Public contracts, schemas, central configuration, and integration surfaces require exclusive ownership.
  • Concurrent writers use disjoint paths, isolated worktrees, or declared patch/artifact outputs.
  • Shared ledgers, lockfiles, generated contracts, metadata, schemas, release surfaces, and cross-domain configuration belong to one named integrator unless a task card transfers one surface to another exclusive owner.
  • Participants record shared-surface and other out-of-scope needs in handoff instead of editing them opportunistically.
  • Reasoning and model profiles are task-card inputs, not implicit properties of the whole swarm.
  • Coordinator checkpoints are bounded decision requests, not free-form actor chat.
  • Locks support scope ownership but do not replace coordinator judgement. Every lock must be bounded and releasable.
  • One integrator owns merge order, conflict resolution, and final validation.
  • A zero-conflict merge is not proof of semantic compatibility.

Evidence and quorum rules

  • Every material finding traces to inspected evidence or explicit uncertainty.
  • Preserve minority high-impact findings and contradictions; consensus does not erase them.
  • Keep reviewer evidence separate from merger findings.
  • If successful evidence is below the requested threshold, return degraded or insufficient data instead of inventing quorum.
  • Use a clean-context merger for serious quorum work. Use a fresh post-merge reviewer when the result drives code, security, architecture, money, governance, migrations, or release decisions.

See review swarms for lens, quorum, synthesis, and conflict-evidence detail. See development swarms for task cards, write ownership, handoffs, conflict reports, and integration.

Stop rules

Stop or replan when scopes overlap, a participant needs an undeclared shared contract, evidence cannot meet the threshold, provider/tool preflight fails, conflict changes the architecture, no integrator owns the result, or integrated validation is unavailable. Do not compensate with extra agents, repeated blind retries, shared mutable work, or coordinator-written consensus unsupported by participant evidence.

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.