swarm
Fan out a task across N independent workers, drain every wave, and return one evidenced report. Use when the user asks to swarm, parallelize, race approaches, run a gauntlet, divide exhaustive coverage, or when `henry-mode` reaches a settled parallel-work stage.
- License 许可
- MIT
- 所属仓库
- caezium/skills
- 最近更新
- 2026-08-24
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- swarm
- description
- Fan out a task across N independent workers, drain every wave, and return one evidenced report. Use when the user asks to swarm, parallelize, race approaches, run a gauntlet, divide exhaustive coverage, or when `henry-mode` reaches a settled parallel-work stage.
02 资源文件 1
- 许可证LICENSE1.0 KB
03 SKILL.md 正文
Swarm
Fan out a task as coverage slices, identical race arms, or a deliberate mixture. The coordinator owns framing, writable boundaries, aggregation, and the final judgment.
Harness availability
| Harness | Worker mechanism | Drain / follow-up | Fallback |
|---|---|---|---|
| Cursor | Available Task/subagent calls; cloud workers only when explicitly supported | Native task results | Run local workers or sequential slices |
| Claude Code | Available Agent/Task calls, optionally in background | Native result/wait mechanism | Sequential slices |
| Codex / T3 | spawn_agent |
wait_agent; use followup_task for another bounded turn |
Run waves within the advertised slot limit, then sequential slices |
| No delegation tool | None | None | Execute every slice sequentially with the same brief and schema |
Inherit the parent model by default. Use model overrides only when the user requests a model race or the harness exposes valid choices. Never invent aliases. N is total workers, not simultaneous slots; run waves until all N have a terminal result.
Frame
- State the done predicate and final artifact.
- Choose
coverage,race, ormixed. For a race, declarefirst-pass,rank-all, orbest-ofbefore launch. - Set N from the user's request or the number of independent slices.
- Give every writing worker an exclusive directory, worktree, branch, or file set. Keep the shared contract outside worker write scopes.
- Track four phases with the harness's plan/todo feature when available: frame, fan out, aggregate, report.
Fan out
Launch as many workers together as the harness permits. Every brief must stand alone and include:
- goal and exact slice/race arm;
- read and write scope, including do-not-touch fences;
- verification command or observable predicate;
- required report schema:
PASS,ISSUES, orBLOCKED, followed by artifact paths and evidence.
If a worker drops out, retry only when doing so is safe and useful; otherwise continue and record the gap. Never let two workers edit the same mutable target concurrently.
Aggregate
Drain every launched worker before concluding. Inspect artifacts rather than trusting summaries. Coverage requires a terminal result for every slice; races use the selection rule declared up front. Deduplicate findings, surface disagreements, and keep raw worker dumps out of the main thread.
Report
Return one compact table with slice/arm, status, evidence, and selected result; then list issues, disagreements, gaps/dropouts, and the race rule. A swarm is complete only when every requested slice is accounted for.
<!-- Adapted from poteto/pstack swarm, MIT License, Lauren Tan, cursor/plugins@51a96e0. -->
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wrangler
Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
workers-best-practices
Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available evidence sources, searches each relevant category, and returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
week-prep
Generate a briefing with calendar, tasks, and attention flags. Use for "week prep", "briefing", or "what's on this week".