一键导入
dispatching-parallel-agents
Use when multiple independent tasks can run simultaneously. Maximizes throughput through parallel Task tool invocations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when multiple independent tasks can run simultaneously. Maximizes throughput through parallel Task tool invocations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working with git operations including commits, branches, worktrees, and PRs. Covers the full git workflow from feature isolation to PR submission.
Complete PR submission pipeline with local sub-agent review before pushing, CI verification, and automated review integration. Always dispatches code-reviewer and code-simplifier for code changes, plus conditional reviewers (security, performance, dependency, accessibility, i18n, type-design, etc.) based on change type. Waits for CI with `gh pr checks --watch`. Integrates CodeRabbit and Greptile feedback.
GitHub CLI patterns for PR reviews, comments, and API operations. Use when working with gh api commands, especially for review threads and comments.
Use when following a written plan or task list. Checkpoint verification at each step. Triggers - execute plan, follow plan, implement plan, next step, continue, proceed.
Use for parallel branch development with workspace isolation.
Use when implementing analytics, event tracking, or setting up dashboards. Covers privacy-first tracking, event patterns, and common analytics tools.
| name | dispatching-parallel-agents |
| description | Use when multiple independent tasks can run simultaneously. Maximizes throughput through parallel Task tool invocations. |
Iron Law: Parallelize when tasks have NO dependencies. Sequentialize when outputs flow to inputs.
| Scenario | Use This Skill |
|---|---|
| Multiple independent research tasks | YES |
| Exploring different solution approaches | YES |
| Validating across multiple files/domains | YES |
| Testing multiple hypotheses | YES |
| Tasks with shared state/dependencies | NO - use sequential |
| Output of task A is input to task B | NO - use sequential |
1. IDENTIFY -> Find parallelizable work
2. VALIDATE -> Confirm independence
3. STRUCTURE -> Prepare Task tool calls
4. DISPATCH -> Execute in parallel
5. COLLECT -> Gather results
6. SYNTHESIZE -> Combine insights
Good Candidates:
## Feature: Multi-Platform Integration
### Parallelizable:
- [ ] Research Stripe API patterns (deep-researcher)
- [ ] Research SendGrid email patterns (deep-researcher)
- [ ] Research Twilio SMS patterns (deep-researcher)
### Sequential (depends on above):
- [ ] Design unified integration layer (backend-engineer)
Parallelization Checklist:
Dependency Matrix:
| Task | Reads | Writes | Blocks | Blocked By |
|---|---|---|---|---|
| Research A | docs | notes | - | - |
| Research B | docs | notes | - | - |
| Implement | code | code | Research A, B | - |
Independence Rules:
Single Message, Multiple Task Invocations:
I'll dispatch three research tasks in parallel.
Task: @deep-researcher
## Research: Stripe Payment Patterns
Load skills: documentation-research, api-design
Investigate best practices for Stripe webhook handling,
idempotency, and error recovery.
---
Task: @deep-researcher
## Research: SendGrid Email Patterns
Load skills: documentation-research, api-design
Investigate best practices for SendGrid template management,
tracking, and bounce handling.
---
Task: @deep-researcher
## Research: Twilio SMS Patterns
Load skills: documentation-research, api-design
Investigate best practices for Twilio message delivery,
status callbacks, and rate limiting.
Structuring Rules:
Execution Patterns:
Task: @deep-researcher
Research topic A...
Task: @deep-researcher
Research topic B...
Task: @deep-researcher
Research topic C...
Use when: Same type of work across different domains.
Task: @security-auditor
Audit authentication flow...
Task: @performance-optimizer
Analyze bundle size...
Task: @quality-engineer
Review test coverage...
Use when: Different expertise needed for independent validations.
Task: @backend-engineer
Implement using approach A (Redux)...
Task: @backend-engineer
Implement using approach B (Zustand)...
Task: @backend-engineer
Implement using approach C (Jotai)...
Use when: Evaluating different solutions before committing.
Collect from each parallel task:
## Results: [Task Name]
### Agent: [agent-name]
### Status: SUCCESS | PARTIAL | FAILED
### Findings:
- Key finding 1
- Key finding 2
- Key finding 3
### Artifacts:
- File: /path/to/output.md
- Notes: Inline summary
### Recommendations:
- Recommendation 1
- Recommendation 2
### Confidence: HIGH | MEDIUM | LOW
Collection Rules:
Combining Parallel Results:
## Synthesis: [Feature/Research Area]
### Completed Tasks: 3/3
### Aggregated Findings:
| Topic | Key Insight | Confidence |
|-------|-------------|------------|
| Stripe | Use webhooks with idempotency keys | HIGH |
| SendGrid | Template versioning required | MEDIUM |
| Twilio | Status callbacks essential | HIGH |
### Patterns Identified:
- All services require idempotent handling
- Webhook verification is critical for all
- Error retry with exponential backoff needed
### Conflicts/Divergence:
- None | [Describe any conflicting findings]
### Recommended Next Steps:
1. Design unified webhook handler
2. Implement idempotency layer
3. Create service abstraction
### Tasks for Sequential Phase:
- [ ] Unified integration design (depends on all research)
## Parallel Execution Summary
### Succeeded: 2/3
- [x] Research A - Complete
- [x] Research B - Complete
- [ ] Research C - FAILED
### Failure Analysis:
- Task: Research C
- Error: API documentation unavailable
- Impact: Cannot proceed with C integration
### Recovery Options:
1. Retry with different source
2. Proceed without C (if optional)
3. Block and escalate to user
Failure Handling Rules:
## Timeout Handling
### Completed: 2/3
### Timed Out: 1/3
### Action:
- Preserve completed results
- Document timeout: Task C exceeded 5 min limit
- Options:
1. Retry with simpler scope
2. Continue without result
3. Increase timeout and retry
Task: @deep-researcher
Find all authentication implementations...
Task: @deep-researcher
Find all database query patterns...
Task: @deep-researcher
Find all error handling patterns...
Task: @quality-engineer
Validate frontend test coverage...
Task: @quality-engineer
Validate backend test coverage...
Task: @quality-engineer
Validate E2E test coverage...
Task: @backend-engineer
Prototype solution using ORM A...
Task: @backend-engineer
Prototype solution using ORM B...
| Situation | Action |
|---|---|
| One task blocks others | Switch to sequential |
| All tasks truly independent | Use full parallelization |
| Uncertain about dependencies | Start with 2 parallel, validate |
| High failure risk | Add redundant research tasks |
Pairs with: subagent-driven-development (for complex orchestration), debug (parallel hypothesis testing), brainstorm (parallel ideation)