parallel-execution
Skill275 starsChanged 10 months agoMITView on GitHub
CRITICAL skill for executing multiple Task tool calls in a SINGLE message for true parallelism. Essential for efficient multi-task workflows, subagent coordination, and maximizing throughput.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- andreymudri/claude-teammatestheir own version, first seen Nov 2, 2026
- andreymudri/fleetmatestheir own version, first seen Nov 2, 2026
- NoobyGains/godmodetheir own version, first seen Nov 1, 2026
- kimasplund/thinkbetter-skillstheir own version, first seen Oct 25, 2026
- garri333/Skillstheir own version, first seen Oct 11, 2026
- CloudAI-X/claude-workflowtheir own version, first seen Oct 8, 2026
Used with
Projects with it also use writing-skills.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillwriting-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- CloudAI-X/claude-workflow★ 1.4ksame name
- CloudAI-X/claude-workflow-v2★ 1.4ksame name
- NoobyGains/godmode★ 118same name
- andreymudri/claude-teammates★ 3same name
- andreymudri/fleetmates★ 3same name
- beeltec/skills★ 2same name
- cheukswiss/etdxm★ 2same name
- garri333/Skills★ 1same name
- kimasplund/thinkbetter-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- analyzing-projectsSkill
- designing-apisSkill
- designing-architectureSkill
- designing-testsSkill
- managing-gitSkill
- optimizing-performanceSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If Task calls are in separate messages, they run SEQUENTIALLY, not in parallel.
- Distinctive: line 83
After all tasks complete, combine their findings into a unified response.
- Distinctive: line 91
When you have N independent tasks, spawn N subagents:
- Distinctive: line 149
Use conflicting mandates for thorough review:
- Very specific: line 169
When using parallel execution, mark ALL parallel tasks as in_progress simultaneously:
- Distinctive: line 289
Before launching parallel tasks, verify:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Parallel Execution
CRITICAL: This skill teaches how to execute multiple tasks simultaneously for maximum efficiency.
The Fundamental Rule
ALL Task calls MUST be in a SINGLE assistant message for true parallelism.
If Task calls are in separate messages, they run SEQUENTIALLY, not in parallel.
Why Parallel Execution Matters
Sequential (SLOW - AVOID)
Message 1: Start Task A
↓ wait for completion
Message 2: Start Task B
↓ wait for completion
Message 3: Start Task C
↓ wait for completion
Total time = A + B + C = 90 seconds (if each takes 30s)Parallel (FAST - USE THIS)
Message 1: Start Task A ─┐
Start Task B ─┼─ All run simultaneously
Start Task C ─┘
Total time ≈ max(A, B, C) = 30 secondsSpeedup: 3x faster with 3 parallel tasks
How to Execute in Parallel
Step 1: Identify Independent Tasks
Tasks are independent when:
- They don't depend on each other's output
- They don't modify the same files
- They can run in any order
Step 2: Launch ALL Tasks in ONE Message
<!-- CORRECT: All tasks in single message = PARALLEL -->
<task>
<description>Analyze authentication module</description>
<prompt>Review src/auth for security patterns...</prompt>
</task>
<task>
<description>Analyze API layer</description>
<prompt>Review src/api for REST best practices...</prompt>
</task>
<task>
<description>Analyze database layer</description>
<prompt>Review src/db for query optimization...</prompt>
</task>Step 3: Collect and Synthesize Results
After all tasks complete, combine their findings into a unified response.
Parallelization Patterns
Pattern 1: Task-Based Parallelization
When you have N independent tasks, spawn N subagents:
Implementation Plan:
1. Implement auth module
2. Create API endpoints
3. Add database schema
4. Write unit tests
5. Update documentation
Launch 5 parallel subagents:
├─ Subagent 1: Implement auth module
├─ Subagent 2: Create API endpoints
├─ Subagent 3: Add database schema
├─ Subagent 4: Write unit tests
└─ Subagent 5: Update documentationAll 5 in ONE message!
Pattern 2: Directory-Based Parallelization
Analyze different directories simultaneously:
Codebase Structure:
├── src/auth/
├── src/api/
├── src/db/
└── src/ui/
Launch 4 parallel subagents:
├─ Subagent 1: Analyze src/auth
├─ Subagent 2: Analyze src/api
├─ Subagent 3: Analyze src/db
└─ Subagent 4: Analyze src/uiPattern 3: Perspective-Based Parallelization
Review from multiple angles at once:
Code Review Perspectives:
- Security vulnerabilities
- Performance bottlenecks
- Test coverage gaps
- Architecture patterns
Launch 4 parallel subagents:
├─ Subagent 1: Security review
├─ Subagent 2: Performance analysis
├─ Subagent 3: Test coverage review
└─ Subagent 4: Architecture assessmentPattern 4: Adversarial Verification
Use conflicting mandates for thorough review:
Verification Subagents (all parallel):
├─ Syntax & Type Checker
├─ Test Runner
├─ Lint & Style Checker
├─ Security Scanner
└─ Build Validator
Then (sequential, after above complete):
├─ False Positive Filter
├─ Missing Issues Finder
└─ Context ValidatorTodoWrite Integration
When using parallel execution, mark ALL parallel tasks as in_progress simultaneously:
Before Launching Parallel Tasks
{
"todos": [
{ "content": "Analyze auth module", "status": "in_progress", "activeForm": "Analyzing auth module" },
{ "content": "Analyze API layer", "status": "in_progress", "activeForm": "Analyzing API layer" },
{ "content": "Analyze database layer", "status": "in_progress", "activeForm": "Analyzing database layer" },
{ "content": "Synthesize findings", "status": "pending", "activeForm": "Synthesizing findings" }
]
}After Each Task Completes
Mark as completed as results come in:
{
"todos": [
{ "content": "Analyze auth module", "status": "completed", "activeForm": "Analyzing auth module" },
{ "content": "Analyze API layer", "status": "completed", "activeForm": "Analyzing API layer" },
{ "content": "Analyze database layer", "status": "in_progress", "activeForm": "Analyzing database layer" },
{ "content": "Synthesize findings", "status": "pending", "activeForm": "Synthesizing findings" }
]
}When to Parallelize
Good Candidates
| Scenario | Parallel Approach |
| Multiple independent analyses | One subagent per analysis |
| Multi-file processing | One subagent per file/directory |
| Different review perspectives | One subagent per perspective |
| Multiple independent features | One subagent per feature |
| Exploratory research | Multiple search strategies |
When NOT to Parallelize
| Scenario | Why Sequential |
| Tasks with dependencies | B needs A's output |
| Same file modifications | Risk of conflicts |
| Sequential workflows | Order matters (commit → push → PR) |
| Shared state | Race conditions |
| Limited resources | Overwhelming the system |
Performance Impact
| # Parallel Tasks | Sequential Time | Parallel Time | Speedup |
| 2 | 60s | 30s | 2x |
| 3 | 90s | 30s | 3x |
| 5 | 150s | 30s | 5x |
| 10 | 300s | 30s | 10x |
Assuming each task takes ~30 seconds
Common Mistakes
Mistake 1: Separate Messages
WRONG (Sequential):
Message 1: "I'll start analyzing the auth module..."
<task>Analyze auth</task>
Message 2: "Now let me analyze the API..."
<task>Analyze API</task>
RIGHT (Parallel):
Message 1: "I'll analyze all modules in parallel..."
<task>Analyze auth</task>
<task>Analyze API</task>
<task>Analyze DB</task>Mistake 2: Announcing Before Acting
WRONG:
"I'm going to launch three parallel tasks to analyze the codebase."
[waits for response]
"Now launching the tasks..."
RIGHT:
"Launching three parallel analysis tasks now:"
<task>...</task>
<task>...</task>
<task>...</task>Mistake 3: Forgetting Synthesis
WRONG:
Just dump all task outputs without integration
RIGHT:
After receiving all results, synthesize:
- Identify common themes
- Resolve contradictions
- Prioritize findings
- Create unified recommendationsParallel Execution Checklist
Before launching parallel tasks, verify:
- Tasks are truly independent
- No shared file modifications
- No sequential dependencies
- All tasks in SINGLE message
- TodoWrite updated with all
in_progress - Synthesis step planned
Template: Parallel Analysis
## Launching Parallel Analysis
I'm analyzing this codebase from multiple perspectives simultaneously.
### Parallel Tasks
<task description="Security Review">
Analyze for security vulnerabilities, focusing on:
- Authentication/authorization
- Input validation
- Secrets handling
</task>
<task description="Performance Review">
Analyze for performance issues, focusing on:
- N+1 queries
- Memory leaks
- Blocking operations
</task>
<task description="Test Coverage Review">
Analyze test coverage, focusing on:
- Missing test cases
- Edge cases
- Integration tests
</task>
### Synthesis (after all complete)
[Combine findings into prioritized report]Quick Reference
RULE #1:
ALL Task calls in SINGLE message = PARALLEL
Task calls in SEPARATE messages = SEQUENTIAL
PATTERNS:
Task-based: One subagent per task
Directory-based: One subagent per directory
Perspective-based: One subagent per viewpoint
Adversarial: Multiple competing reviewers
TODOWRITE:
Mark ALL parallel tasks as in_progress BEFORE launching
Mark each as completed AFTER receiving results
SPEEDUP:
N parallel tasks ≈ Nx faster
(5 tasks @ 30s each: 150s → 30s)
CHECKLIST:
☐ Tasks independent?
☐ No shared files?
☐ No dependencies?
☐ All in ONE message?
☐ Synthesis planned?Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

