skills/dispatching-parallel-agents/SKILL.md
Use when facing 2+ independent tasks or investigations that can be worked on without shared state or sequential dependencies
npx skillsauth add BubbleBuffer/superpawers dispatching-parallel-agentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
When you have multiple independent work items that can proceed without waiting for each other, doing them sequentially wastes time. Each item is independent and can happen in parallel.
Core principle: Dispatch one agent per independent problem domain. Let them work concurrently.
digraph when_to_use {
"Multiple independent items?" [shape=diamond];
"Are they truly independent?" [shape=diamond];
"Single agent handles all" [shape=box];
"One agent per domain" [shape=box];
"Can they work in parallel?" [shape=diamond];
"Sequential agents" [shape=box];
"Parallel dispatch" [shape=box];
"Multiple independent items?" -> "Are they truly independent?" [label="yes"];
"Are they truly independent?" -> "Single agent handles all" [label="no - related"];
"Are they truly independent?" -> "Can they work in parallel?" [label="yes"];
"Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
"Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
}
Use when:
subagent-driven-development instead| Situation | Skill |
|-----------|-------|
| Parallel exploration or independent investigations, no shared state | dispatching-parallel-agents |
| Sequential execution of a verified plan on one working branch | subagent-driven-development |
| Multi-component evidence gathering during Phase 1 of debugging | dispatching-parallel-agents (from inside systematic-debugging) |
Group work by what's fundamentally separate:
Research example:
Debugging example:
Each domain is independent - research on authentication doesn't affect database exploration.
Each agent gets:
// Dispatch three focused agents concurrently
Task("Explore authentication system")
Task("Map database schema")
Task("Document API endpoints")
// All three run concurrently
When agents return:
Good agent prompts are:
## Research Example
Explore the authentication system and report:
1. How does the system handle login/logout?
2. What tokens are used and where are they stored?
3. What protected routes require authentication?
Return: Structured findings with file:line references.
## Debugging Example
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
1. "should abort tool with partial output capture" - expects 'interrupted at' in message
2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
3. "should properly track pendingToolCount" - expects 3 results but gets 0
These are timing/race condition issues. Your task:
1. Read the test file and understand what each test verifies
2. Identify root cause - timing issues or actual bugs?
3. Fix by:
- Replacing arbitrary timeouts with event-based waiting
- Fixing bugs in abort implementation if found
Return: Summary of what you found and what you fixed.
❌ Too broad: "Explore the codebase" - agent gets lost ✅ Specific: "Map the authentication flow" - focused scope
❌ No context: "Find the bugs" - agent doesn't know where ✅ Context: Paste the error messages and test names
❌ No constraints: Agent might refactor everything ✅ Constraints: "Focus on X, don't touch Y"
❌ Vague output: "Done" - you don't know what changed ✅ Specific: "Return structured findings with file:line references"
Scenario: Need to understand a large codebase before implementation
Questions:
Decision: Each is independent - can explore all simultaneously
Dispatch:
Agent 1 → Explore authentication system
Agent 2 → Map database patterns
Agent 3 → Document testing setup
Results:
Integration: Combined into coherent architecture overview
After agents return:
data-ai
Use when a request involves multiple steps or files, or when an approved design must be turned into a detailed implementation plan
development
Use when deciding which SuperPawers skill should govern a new task or workflow step, before taking any other action
development
Use when starting feature work that needs git isolation or before writing committed spec, plan, or code artifacts
development
Use when a task list exists or is being created for multi-step implementation work, whether from a formal plan or an ad-hoc breakdown