agentleFS
hidenobunagaihidenobunagai/astack/skills/swarm/SKILL.md

swarm

Skill1 starsChanged 12 days agoMITView on GitHub

Fan out N parallel workers over data slices, datasets, notebooks, or charts, drain them, and return one report. Use for /swarm, \"swarm this\", or parallel coverage (check every table, profile every dataset), races between analysis approaches, and gauntlet-style exploration.

87 other projects use a version of this, 43 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, make-bot-ui and 3 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

  • 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

    poteto-mode

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

    Also in 27 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 11 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 83 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Race: run N workers on the same brief, or on N approaches to one question.

    line 15
  2. Distinctive:

    If a worker drops out, continue with N-1 and note the dropout.

    line 26

“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

Open a todo list with one entry per phase before you launch anything: Frame, Fan out, Aggregate, Report.

Phase A: Frame

  1. State the done predicate and the report the swarm must return. Example: "every table in warehouse/staging has a row count, a key check, and a null summary, and each result is PASS, ISSUES, or BLOCKED".
  2. Choose the shape:
    • Partition: split the work into slices, one per dataset, notebook, or table. Each slice must have a result.
    • Race: run N workers on the same brief, or on N approaches to one question. Declare the selection rule first: first pass, rank all, or best-of.
    • Mix both when needed.
  3. Pick the worker model. Use Agent with subagent_type general-purpose, model sonnet, effort high for most workers. For a trivial mechanical sweep (renaming, listing, counting), use model haiku, effort low. For a race, name each arm's model before you spawn. Put one arm on opus at high as a second opinion, so the race is not decided by one model family alone.
  4. Give each writing worker its own output. Use isolation worktree for code. When workers verify or measure something, the brief names the exact input: the file path with its content hash, or the query text with the data snapshot date. A measurement brief also names the method: sample count, what one sample is, and the order of the runs. The worker records both in its result.

Phase B: Fan out

Spawn all workers in one message. Every brief stands alone. It includes the goal, the scope, the slice or race arm, how to verify, and what to report. Reports use PASS, ISSUES, or BLOCKED, each with evidence. A worker that can prove a defect reports ISSUES and lists every provable issue, not only the first.

Workers may read warehouse data but must not write to it. Any write to a shared table or a scheduled job is out of scope and pauses for the human.

If a worker drops out, continue with N-1 and note the dropout.

Phase C: Aggregate

Read every result. If a result does not record the inputs and method its brief names, discard it and respawn that worker once. After a second miss, record a gap. A gap does not count as a pass. For coverage, every required slice needs a result. For a race, apply the rule you declared in Phase A.

Phase D: Report

Return one consolidated report in the chat: a table with one row per slice or arm, the issues in one line each, the gaps and dropouts, and the race rule when one was used. Do not paste raw worker output.

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.