brainstorming
MUST USE when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no…
Use when 2+ tasks are independent and can run concurrently without file or state conflicts or sequential dependencies. Triggers on: "run these in parallel", "do these at the same time", plans with independent tasks, when subagent-driven-development identifies parallelizable work.
$ npx -y skills add REPOZY/superpowers-optimized --skill dispatching-parallel-agents --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dispatching-parallel-agentsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when 2+ tasks are independent and can run concurrently without file or state conflicts or sequential dependencies. Triggers on: "run these in parallel", "do these at the same time", plans with independent tasks, when subagent-driven-development identifies parallelizable work.
name: dispatching-parallel-agents description: > Use when 2+ tasks are independent and can run concurrently without file or state conflicts or sequential dependencies. Triggers on: "run these in parallel", "do these at the same time", plans with independent tasks, when subagent-driven-development identifies parallelizable work.
Use parallel subagents only for truly independent work.
Use parallel dispatch when all are true:
If any condition fails, run sequentially.
**Do not use when:**
1. Split work into independent domains. 2. Write one focused prompt per domain. 3. Dispatch all agents in a **single message** with multiple parallel Agent tool calls. Do not dispatch sequentially across multiple messages — staggered dispatch delays start times, burns cache TTL, and undermines the parallelism. 4. Collect summaries and changed files. 5. Resolve conflicts between summaries and changed files. 6. Run integration verification: execute the full project test suite plus any cross-domain checks. Do not mark the wave complete until integration passes.
Never forward parent session context or history to subagents. Construct each subagent's prompt from scratch using only the items listed below. Subagents must not receive conversation history, prior reasoning chains, or context from other subagent runs.
**Why this is also the cache-optimal approach:** All subagents share the same system prompt prefix, which is cached by the API. By keeping each subagent's input as `[cached system prompt] + [small unique task prompt]`, every agent gets a cache hit on the heavy shared prefix and only pays full price for its small task-specific tail. Forwarding parent conversation history would make each subagent's prefix unique and large, breaking cache sharing and multiplying input token costs.
Each agent prompt must include:
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 Your task: 1. Read the test file and understand what each test verifies. 2. Identify root cause — timing issues or actual bugs? 3. Fix the root cause. Do NOT just increase timeouts. 4. Do NOT change any files outside src/agents/agent-tool-abort.test.ts and its direct implementation file. You are a focused subagent. Do NOT invoke any skills from the superpowers-optimized plugin. Do NOT use the Skill tool. Do NOT dispatch, spawn, or delegate to any subagent of your own. Do all of this work yourself. Your only job is the task described above. Return: Summary of root cause and what you changed.
❌ **Too broad:** "Fix all the tests" — agent gets lost ✅ **Specific:** "Fix agent-tool-abort.test.ts" — focused scope
❌ **No context:** "Fix the race condition" — agent doesn't know where ✅ **With context:** Paste the error messages and test names
❌ **No constraints:** Agent might refactor everything ✅ **Constrained:** "Do NOT change files outside X"
❌ **Vague output:** "Fix it" — you don't know what changed ✅ **Specific output:** "Return summary of root cause and what you changed"
When risk is high, fall back to sequential execution.
The production-grade fork of obra/superpowers — same trusted workflow, dramatically leaner, safer, and more intelligent.
MUST USE when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no…
Creates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command,…
Use in long or noisy sessions to persist durable state across session boundaries via state.md. Also generates project-map.md when…
Use BEFORE brainstorming when facing a complex architectural, technology, or design decision where the options are not yet…
MUST USE when updating, migrating, or auditing project dependencies: upgrading packages, fixing security vulnerabilities (CVEs),…
Maintains a project-specific known-issues.md mapping recurring errors to their solutions. Consulted automatically by…