Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: author-swarm description: Turn a multi-step goal into a correct, deployable agentswarm swarm.yaml. Use when the user wants to "run a swarm", "spin up a CEO + VPs", "parallelize this work across agents", or asks how to write/structure a swarm config. Produces a validated YAML that agentswarm run can deploy. trigger: write a swarm | author a swarm.yaml | run a swarm | parallelize across agents | CEO + VPs | spin up a multi-agent run | how do I structure depends_on
author-swarm — Goal → deployable swarm.yaml
This skill is agentswarm's core authoring task: take a goal that has several pieces of work and express it as a swarm.yaml that the CEO orchestrator can deploy. The output is a declarative file — one CEO in pane 0, N VPs in panes 1..N, each with its own model tier and dependency edges.
Trigger
Invoke when the user wants to run a multi-agent job and needs the config, e.g. "research → write → edit → distribute", "build the package and write the docs in parallel", or any request to "run a swarm" / "set up the VPs".
Steps
- Decompose the goal into VP roles. One role per independent unit of work. Give each a
short, unique role name (the loader rejects duplicates). Strategic/coordination work → opus; implementation → sonnet; simple/mechanical → haiku.
- Draw the dependency graph. For each VP, list the role names that must finish first in
depends_on. A VP with no deps starts immediately; a VP with deps stays pending until every dep reports done. depends_on gates deployment, not just reporting — never assume a downstream VP can read an upstream output before the upstream is done.
- Write each prompt to end with the completion signal. Every VP prompt MUST instruct the
agent to print {Role}: DONE on its last line — that exact string is the ONLY thing the CEO treats as completion. No signal = the VP is never marked done (it will go idle and eventually hit max_runtime).
- Set the swarm-level knobs.
name,session(tmux session name),poll_interval
(seconds between CEO checks — 60–120 is typical), max_runtime (minutes before auto-shutdown), idle_timeout (seconds of no output before a pane is flagged idle).
- List advisory `outputs` per VP (the files it produces). These document intent; they do
not gate anything.
- Validate before deploying. Run
agentswarm validate <file>(or the MCP
validate_swarm tool). Fix every reported error — the validator catches missing sections, duplicate roles, and depends_on edges that point at undefined roles.
- Dry-run, then deploy.
agentswarm run --dry <file>prints the deployment plan without
touching tmux; agentswarm run <file> deploys for real.
Skeleton
swarm:name: my-swarmsession: swarm-mypoll_interval: 90max_runtime: 120idle_timeout: 300ceo:prompt: |You are the CEO. Monitor the VPs, resolve blockers, compile the result when all are done.model: opuscontext: [CLAUDE.md]vps:- role: Researchpane: 1prompt: |Do the research. Say "Research: DONE" on your last line.model: sonnet- role: Writerpane: 2prompt: |Wait for Research, then write. Say "Writer: DONE" on your last line.model: sonnetdepends_on: [Research]outputs: [out/article.md]
Output
A complete swarm.yaml plus the two verification commands you ran:
swarm.yaml written (N VPs, dependency chain: A → B → C)agentswarm validate swarm.yaml → ✓ Config validagentswarm run --dry swarm.yaml → deployment plan printed
Invariants this skill must preserve
- Role names unique across the swarm.
- Every VP prompt ends with its own
{Role}: DONEline. - Every
depends_onentry references a role defined in the same file. - Model tiers map to task tier (opus strategic / sonnet implementation / haiku simple).