fabric-swarm
Skill9 starsChanged 23 days agoApache-2.0View on GitHub
Fabric mode for N similar workers taking items from one shared pool. Use for one list of many near-identical items (files, tickets, pages), one worker each.
In this repository275 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/packs/eventtech/AGENTS.mdAGENTS.md
- .agents/packs/hardware/AGENTS.mdAGENTS.md
- .agents/packs/media/AGENTS.mdAGENTS.md
- skills/global_config/postgres-best-practices/AGENTS.mdAGENTS.md
- skills/global_config/react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- global-rulesCursor rule
- bdb-agentsCursor rule
- fabricCursor rule
- advisorSkill
- ao-orchestratorSkill
- bdb-eventagency-skillSkill
- bdbhtmlmanueldocsSkill
- bdbmediastormSkill
- bdb-shipping-skillSkill
- fabric-graphSkill
- fabric-loopSkill
- fabric-multigraphSkill
- fabricSkill
- fabric-teamworkSkill
- godmode-3d-creationSkill
- godmode-engineeringSkill
- godmode-eventtechSkill
- godmode-hardware-pcbSkill
- godmode-media-creationSkill
- godmode-shippingSkill
- godmode-ui-uxSkill
- instinct-exportSkill
- instinct-importSkill
- instinct-statusSkill
- master-sessionSkill
- skill-createSkill
- bdb-aosSkill
- bdbrainstormSkill
- codebase-memorySkill
- github-repoSkill
- agentic-harness-patternsSkill
- agent-manager-skillSkill
- agent-memory-mcpSkill
- agent-pipelineSkill
- agent-tool-builderSkill
- agenttrailSkill
- ai-agent-developmentSkill
- ai-productSkill
- aos-a2aSkill
- aos-gatewaySkill
- aos-project-initSkill
- aos-setupSkill
- aos-storeSkill
- aos-updateSkill
- api-design-principlesSkill
- apify-lead-generationSkill
- apify-ultimate-scraperSkill
- api-patternsSkill
- archifySkill
- architect-reviewSkill
- ask-timSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Default 4 workers at a time, hard cap 6 (same as workstreams).
- Very specific: line 42
When no item is open or claimed and review_done is true, the run ends: report done/failed counts.
- Very specific: line 46
All items done or failed, or the user stops it, or usage reaches 95 % via stay-within-limits (pause and keep the file).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/fabric-swarm — many similar workers, one shared pool
When: one list of many near-identical items (files, tickets, pages) that each fit one worker. If items depend on each other, use fabric-graph instead.
Agents never invoke each other. The dispatcher (the main session) decides every next step. Workers only return a result.
Pool file
production_artifacts/swarm.json, written ONLY by the dispatcher:
{ "goal": "", "worker_brief": "", "max_workers": 4, "review_done": false,
"items": [ { "id": "", "input": "", "status": "open|claimed|done|failed", "worker": "", "attempts": 0, "result": "" } ] }- The dispatcher clamps
max_workersto 1..6 on write. --skill=<name>is passed through into theworker_briefof every worker.- Workers never write it; they return their result to the dispatcher.
- The claim: the dispatcher marks an item
claimedfor a worker before starting it, so no item runs twice. - Attempt counter:
attemptsis incremented exactly once per attempt, when the dispatcher claims an item (open->claimed). Nowhere else. Max 2 attempts per item. review_doneisfalseuntil the one review pass has run (see Loop step 4).- Resume: the file is the source of truth. On resume, every
claimeditem goes back toopen; the interrupted attempt already counted at claim, so nothing is incremented. If that item already hasattempts= 2, it becomesfailedwith resultinterruptedinstead.
Width
Default 4 workers at a time, hard cap 6 (same as workstreams). Harness or user limits may lower it. Each worker is a subagent with the same worker_brief plus exactly one item.
Loop
- Fill free slots with the next
openitem: mark itclaimed, setworker, and incrementattemptsby 1. This is the only placeattemptsis incremented. - On a result: mark
donewith a one-lineresult. - On a worker failure, without touching
attempts: ifattempts< 2, set the item back toopen; ifattempts= 2, mark itfailedwith the error asresult. - When no item is
openorclaimedandreview_doneisfalse, run the review pass once over thedoneresults (a reviewer subagent reads them against theworker_brief), then setreview_donetotrue. Rejected items go back toopenwithattemptsset to 1 (a reset, not an increment), so each gets exactly one more attempt: its next claim makesattempts2. Then return to step 1. The dispatcher writes the review verdict (rejected items back toopen) andreview_done: truein one write of swarm.json, so a crash cannot repeat the review. - When no item is
openorclaimedandreview_doneistrue, the run ends: report done/failed counts. No second review round.
Stop
All items done or failed, or the user stops it, or usage reaches 95 % via stay-within-limits (pause and keep the file).
Safety
Workers get no push, merge or publish. A swarm run never counts as a GO. Destructive or external writes stay behind the go-gate. Models per role come from the router or .aos/pipeline.json, never from this skill.
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
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.

