{"id":108153,"plugin_id":"plugins_6aaeb2c568208191bd71d62167ba2ba3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-20T14:45:58.709Z","digest":"2a6f0b807a6e8a7a20ccf4914b0a1140e11fc792b9a8c797e64e3717f72d79b2","against":21554,"payload":{"description":"Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.","included_files":[],"name":"swarm","skill_md_contents":"---\nname: swarm\ndescription: \"Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.\"\nmenu-description: fan out N parallel workers across slices or races, then return one aggregated report\n---\n\n# Swarm\n\n## Start\n\nOpen a todolist with one entry per phase before launching anything.\n\n1. Frame\n2. Fan out\n3. Aggregate\n4. Report\n\n## Phase A: Frame\n\n1. State the done predicate and the artifact or report the swarm must return.\n2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.\n3. Pick the worker model from the `swarm workers` line in `~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`. If the rule or that line is missing, use the `FastMechanical` / `DeepReasoning` default in `models.json`. For `auto` or `inherit-parent`, omit `model` so the workers run on the parent model. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. For a model race, name each arm's model up front. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.\n4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.\n\n## Phase B: Fan out\n\nSpawn all N workers in one message with `subagent_type: generalPurpose`, `environment: \"cloud\"`, `run_in_background: true`, and the step 3 model, left unset for `auto` or `inherit-parent`. Use `environment: \"local\"` only when the worker needs access to something on the user's computer.\n\nWhen a worker must start from a non-default pushed branch, pass `cloud_base_branch`.\n\nEvery brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence. A worker that can prove a defect reports `ISSUES` and lists every issue it can prove, not only the first.\n\nIf a worker drops out, proceed with N-1 and note it.\n\n## Phase C: Aggregate\n\nRead the terminal results. Drop a result that does not record the SHAs and method its brief names, 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 selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.\n\n## Phase D: Report\n\nReturn one consolidated in-chat report with a result table, issue one-liners, gaps or dropouts, and the race rule when used.\n"},"changes":[{"path":"/skill_md_contents","type":"changed","before":"---\r\nname: swarm\r\ndescription: \"Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.\"\r\nmenu-description: fan out N parallel workers across slices or races, then return one aggregated report\r\n---\r\n\r\n# Swarm\r\n\r\nFan out N parallel workers. They may cover separate slices, race the same brief, or mix both. The parent waits, aggregates, and returns one report.\r\n\r\n**Platform note.** On Codex, the Claude tool names and `claude-*` slugs named below are Claude defaults. Resolve them via [`codex-tools.md`](../engineer-mode/references/codex-tools.md).\r\n\r\n## Start\r\n\r\nOpen a todolist with one entry per phase before launching anything.\r\n\r\n1. Frame\r\n2. Fan out\r\n3. Aggregate\r\n4. Report\r\n\r\n## Phase A: Frame\r\n\r\n1. State the done predicate and the artifact or report the swarm must return.\r\n2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.\r\n3. Set N from the user or derive it from the shape. N is total workers, not the number that run at once.\r\n4. Pick the worker model from `swarm workers` in `~/.claude/fstack-models.md` when present. Otherwise use the default in [Models](#models). For a model race, name each arm's model up front.\r\n5. Give each worker its own writable output when it writes. Use a worktree, branch, or `/tmp/swarm-<slug>/worker-<n>/`.\r\n\r\n## Phase B: Fan out\r\n\r\nSpawn all N workers in one message with `subagent_type: \"general-purpose\"`, `run_in_background: true`, and the configured model. Claude Code subagents all run on this machine, so isolation comes from the worktree or output directory assigned in Phase A, not from a remote environment.\r\n\r\nWhen a worker must start from a non-default branch, check that branch out in the worker's own worktree and name the worktree path in its brief.\r\n\r\nEvery brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence.\r\n\r\nIf a worker drops out, proceed with N-1 and note it.\r\n\r\n## Phase C: Aggregate\r\n\r\nRead the terminal results. For coverage, every required slice needs a result. For a race, apply the selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.\r\n\r\nKeep a compact result table, one-line evidenced issues, and explicit gaps or dropouts.\r\n\r\n## Phase D: Report\r\n\r\nReturn one consolidated in-chat report with the table, issue one-liners, gaps or dropouts, and the race rule when used.\r\n\r\n## Models\r\n\r\nRole defaults live in repo-root `models.json`. `/setup-fstack` writes a per-harness override sheet that wins at runtime.\r\n\r\n- swarm workers: `claude-opus-5`\r\n","after":"---\nname: swarm\ndescription: \"Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.\"\nmenu-description: fan out N parallel workers across slices or races, then return one aggregated report\n---\n\n# Swarm\n\n## Start\n\nOpen a todolist with one entry per phase before launching anything.\n\n1. Frame\n2. Fan out\n3. Aggregate\n4. Report\n\n## Phase A: Frame\n\n1. State the done predicate and the artifact or report the swarm must return.\n2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.\n3. Pick the worker model from the `swarm workers` line in `~/.cursor/rules/fstack-models.mdc` or `~/.claude/fstack-models.md`. If the rule or that line is missing, use the `FastMechanical` / `DeepReasoning` default in `models.json`. For `auto` or `inherit-parent`, omit `model` so the workers run on the parent model. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. For a model race, name each arm's model up front. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **engineer-mode** skill.\n4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.\n\n## Phase B: Fan out\n\nSpawn all N workers in one message with `subagent_type: generalPurpose`, `environment: \"cloud\"`, `run_in_background: true`, and the step 3 model, left unset for `auto` or `inherit-parent`. Use `environment: \"local\"` only when the worker needs access to something on the user's computer.\n\nWhen a worker must start from a non-default pushed branch, pass `cloud_base_branch`.\n\nEvery brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence. A worker that can prove a defect reports `ISSUES` and lists every issue it can prove, not only the first.\n\nIf a worker drops out, proceed with N-1 and note it.\n\n## Phase C: Aggregate\n\nRead the terminal results. Drop a result that does not record the SHAs and method its brief names, 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 selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.\n\n## Phase D: Report\n\nReturn one consolidated in-chat report with a result table, issue one-liners, gaps or dropouts, and the race rule when used.\n"}],"summary":"Fields changed: 1. /skill_md_contents.","summary_kind":"deterministic","summary_metadata":{}}