一键导入
dispatching-parallel-agents
Use when facing 2+ independent tasks that can be researched or implemented by agents without shared state or sequential dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when facing 2+ independent tasks that can be researched or implemented by agents without shared state or sequential dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dispatching-parallel-agents |
| description | Use when facing 2+ independent tasks that can be researched or implemented by agents without shared state or sequential dependencies |
| tags | ["process","parallel","agents","orchestration"] |
| triggers | ["multiple independent tasks","parallel research","concurrent investigation","fan-out work"] |
| chains_to | ["verification-before-completion"] |
| priority | core |
| gate | false |
When you have 2+ truly independent tasks, launch them as parallel agents in a single message. You orchestrate the fan-out and fan-in. Keep the main context clean.
Tasks are independent when:
Each agent gets a self-contained prompt:
You are tasked with [specific goal].
Context:
- [Relevant background]
- [Files to look at]
Task:
- [Concrete steps]
Output:
- [What to return — findings, code, recommendations]
Constraints:
- [What NOT to do]
- [Read-only? Implementation? Research only?]
Be explicit about whether the agent should:
Launch ALL independent agents in a single message using multiple Agent tool calls:
[Agent 1: Research authentication patterns]
[Agent 2: Research database migration options]
[Agent 3: Review existing API structure]
Use appropriate agent types:
Explore — for codebase exploration and researchgeneral-purpose — for implementation or complex multi-step tasksAfter all agents return:
Based on agent results:
Agent 1: "How does auth work in this codebase?"
Agent 2: "What database patterns are used?"
Agent 3: "What test patterns exist?"
→ Synthesize into a plan
Agent 1: "Security review of this diff"
Agent 2: "Performance review of this diff"
Agent 3: "Pattern compliance review of this diff"
→ Merge findings, prioritize by severity
Agent 1: "Implement component A in worktree"
Agent 2: "Implement component B in worktree"
→ Merge worktrees, integration test
| Anti-Pattern | Why It's Wrong |
|---|---|
| Dispatching dependent tasks in parallel | Agent B will miss Agent A's output |
| Launching agents sequentially when they could be parallel | Wastes time. Use one message, multiple tool calls. |
| Duplicating work between main context and agents | If you delegate, don't also do it yourself |
| Too many agents at once (>5) | Diminishing returns, harder to synthesize |
| Vague prompts | Agents need concrete, self-contained tasks |
| Not synthesizing results | Raw agent output isn't useful. Summarize and decide. |
OPTIONAL: syntaxninja-dojo:verification-before-completion (after implementation agents complete) OPTIONAL: syntaxninja-dojo:subagent-driven-development (for implementation-focused parallel work)
Use when a structured PRD document is needed for the ralph loop — generates prd.json and progress.txt
Use when task scope exceeds one context window and decomposes into independent pass/fail stories with clean iteration boundaries
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work — merge, PR, or cleanup
Use when starting feature work that needs isolation from the current workspace or before executing plans that could leave the branch in a broken state
Use when a hard problem was just solved and the solution should be captured as a learning for future reference
Use when 3+ distinct occurrences suggest a skill should be updated with a new trigger, anti-pattern, or verification step