obra/superpowers · skills/dispatching-parallel-agents/SKILL.md
dispatching-parallel-agents
“A tidy playbook for splitting unrelated bugs across parallel subagents. Practical, if a little repetitive.”
What it does
Teaches the agent to split independent problems, usually separate failing test files, into self-contained subagent tasks. It sends them all in one response so they run concurrently, then reviews, checks for conflicts and runs the full suite.
- When the agent uses it
- When facing 2+ independent tasks with no shared state or sequential dependencies, such as several test files failing for unrelated reasons.
- Who it is for
- Good for anyone using an agent with subagents on multi-failure debugging; skip it if your tool has no subagents or your bugs are tangled together.
- What it costs
- 121 lines, about 1.6k tokens once the agent loads it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
What it tells the agent to do
- Group the failures into independent domains, e.g. one test file or subsystem each
- Write a focused, self-contained prompt per domain: scope, goal, constraints, expected output
- Issue all subagent dispatches in the same response so they run in parallel
- Read each returned summary and check whether agents edited the same code
- Run the full test suite, spot check the fixes, then integrate the changes
Lines worth reading
Straight from the file, with why each one matters.
line 3Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Says when but not what. The words 'parallel' and 'subagent' appear only in the name.
line 77Multiple dispatch calls in one response = parallel execution. One per response = sequential.
The one mechanical fact that makes the whole skill work, stated in a single line.
line 110Do NOT just increase timeouts - find the real issue.
A sharp rule against the classic flaky-test cop-out, built into the sample prompt.
line 373+ test files failing with different root causes
The description says 2+, the body says 3+. A small mismatch in the threshold.
line 167Agents can make systematic errors
A frank reminder that the subagents' summaries are claims to verify, not facts.
Watch out for
- Low
Subagents may 'fix' tests by loosening expectations. The template allows this without asking them to flag it.
line 108Adjusting test expectations if testing changed behavior
The scorecard
- TriggerSays when to use it6/10
Clear on when, silent on what it does. Lacks 'parallel' and 'subagents'.
- FocusOne clear job8/10
One job: fan out independent problems, then reunite the results.
- LeanLight to load7/10
168 lines, but the when-to-use and verification sections each appear twice.
- ConcreteSteps you can follow7/10
Real prompt template and dispatch example. Few checks beyond 'run full suite'.
- SafeSafe to run9/10
No commands, network or secrets. Only a slight test-weakening loophole.
What it does well
- The sample subagent prompt is complete: exact tests, symptoms, allowed fixes, a ban on timeout bumps, and a return format.
- It states plainly that parallelism comes from issuing all dispatches in one response.
- Before/after pairs in Common Mistakes make vague delegation easy to spot and fix.
How it could be better
Say what the skill does in the description
The agent decides from the description alone, and right now it never mentions subagents or parallel dispatch.
Adddescription: Dispatches one subagent per independent problem in a single response so they run in parallel, then reviews and integrates their results. Use when facing 2+ independent tasks, such as several test files failing for unrelated reasons, with no shared state or sequential dependencies.
Merge the duplicated sections
'When to Use' overlaps 'When NOT to Use', and 'Review and Integrate' overlaps 'Verification', costing context for nothing.
Add## When NOT to Use - Related failures: fixing one might fix others - Exploratory debugging: you don't know what's broken yet - Shared state: agents would edit the same files or resources ## Verification 1. Review each summary 2. Check whether agents edited the same code 3. Run the full suite 4. Spot check: agents can make systematic errors
Make subagents flag weakened tests
Changing test expectations can hide real bugs, so the parent agent should see every such change explicitly.
AddIf you change any test expectation, list each one in your summary with the old value, the new value and why the behavior legitimately changed.
Pick one threshold, 2+ or 3+
The description and the 'Use when' list disagree on how many independent problems justify fanning out.
Add- <N>+ test files failing with different root causes
Kin reviews against Anthropic’s Extend Claude with skills and agentskills.io’s the Agent Skills standard. It reads SKILL.md only, so a script beside it can still do things the file does not say.