parallel-dispatch
Skill7 starsChanged 4 months agoMITView on GitHub
When the user's message contains multiple INDEPENDENT tasks in one turn, fan out to N subagents in a single response instead of executing sequentially. Detects compound requests ("check A and also B", "all three of these", "look up X, grep for Y, and read Z") and routes each unit to the most specific worker (Explore, general-purpose, ...). Triggers automatically whenever a single user turn has ≥ 2 independent actionable items. Skip when items depend on each other (must be sequential).
10 other projects use a version of this.
Adopted by
Most recently taken up by
- Mahesh-Bishnoi/skillstheir own version, first seen Nov 8, 2026
- osren/interview-flashcardtheir own version, first seen Oct 24, 2026
- irahardianto/awesome-agvtheir own version, first seen Oct 14, 2026
- lgbarn/shipyardtheir own version, first seen Oct 13, 2026
- GodMaking/makecrewtheir own version, first seen Oct 11, 2026
- Ibrahim-3d/conductor-orchestrator-superpowerstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use test-driven-development, verification-before-completion and 9 more.
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.
OpenAISkilltest-driven-development
Use when implementing any feature or bugfix, before writing implementation code
Also in 5 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 4 projects that use this
CloudflareSkillreceiving-code-review
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Also in 3 projects that use this
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 3 projects that use this
- +7 more from openai
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- Ibrahim-3d/conductor-orchestrator-superpowers★ 381same name
- Ibrahim-3d/orchestrator-supaconductor★ 378same name
- irahardianto/awesome-agv★ 157same name
- lgbarn/shipyard★ 66same name
- bogdanbaciu21/skills★ 2same name
- Mahesh-Bishnoi/skills★ 2same name
- osren/interview-flashcard★ 2same name
- GodMaking/makecrew★ 1same name
- orkait/hyperstack★ 1same name
- trapple/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 repository14 other files it gives its agents.
- ai-tell-cleanupSkill
- branch-guardSkill
- frontend-perf-impact-scanSkill
- jvm-memory-leak-reviewSkill
- kotlin-coroutine-reviewSkill
- nestjs-provider-reviewSkill
- nextjs-app-router-reviewSkill
- parallel-devSkill
- parallel-prSkill
- pr-impact-scanSkill
- react-hooks-reviewSkill
- review-loopSkill
- reviewSkill
- spring-kafka-listener-reviewSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the user's message and enumerate INDEPENDENT actionable items.
- Distinctive: line 25
If in doubt: sequential. Do NOT force parallelism when it introduces ordering risk.
- Distinctive: line 27
If only ONE item is present, this skill does not apply.
- Distinctive: line 38
If a unit needs live user approval mid-flight (e.g.
- Distinctive: line 63
When all subagents return, produce ONE aggregated response for the user.
- Distinctive: line 65
If any subagent errored, surface the error inline with the unit's label.
- Very specific: line 72
If the user's turn has > 12 independent units, split into two responses of ≤ 12 each.
- Distinctive: line 73
Do NOT chain the second batch behind the first if the units are truly independent — emit the second batch as soon as the first returns.
- Very specific: line 81
Over-parallelising trivial work: Do not spawn a subagent for a single gh pr view when the parent can just call Bash directly in one turn.
- Distinctive: line 83
Racing writes: If two units both edit the same file / repo / branch, they are NOT independent.
“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 dispatch — one user turn, N parallel workers
The default failure mode of the primary Claude is executing multi-task user turns sequentially. That is measurably slower on I/O-bound work (gh, WebFetch, git, log polling) and burns cache repeatedly. This skill enforces a different pattern: read the whole turn, split into independent units, dispatch all units in one assistant response.
Phase 1 — Split the request
Read the user's message and enumerate INDEPENDENT actionable items. Two items are independent if:
- Neither reads the other's output.
- The user's phrasing lists them as parallel (
A, B, C,X and also Y,all of these). - Order does not matter for correctness.
Items are NOT independent if:
- Item B needs a value / decision from item A.
- User uses sequencing words (
first A, then B,once A finishes, B). - Item B is a follow-up (
check A, and if there's an issue, B).
If in doubt: sequential. Do NOT force parallelism when it introduces ordering risk.
If only ONE item is present, this skill does not apply. Return control immediately without emitting anything.
Phase 2 — Route each unit
For every independent unit, pick exactly one worker:
| Unit shape | Worker |
| "look up file / grep / read" | Agent(Explore, prompt=<query>) |
| Anything else that is a well-scoped read-only research / analysis / summary | Agent(general-purpose, prompt=<unit>) |
If a unit needs live user approval mid-flight (e.g. anything that will post to a shared surface — external comment, PR create, etc.), do NOT parallelise it — hand it back to the parent as sequential.
Phase 3 — Emit all workers in ONE response
Critical: emit every Agent(...) call in the same assistant response. Claude Code executes tool calls in the same response concurrently; splitting across responses is sequential.
Concrete example. User says: "grep for PaymentIntent in packages/api, list all TS files that import date-fns, and find where MAX_RETRIES is defined."
Correct emission (one response, three tool calls):
Agent(subagent_type="Explore", description="grep PaymentIntent", prompt="grep for symbol 'PaymentIntent' under packages/api and return file:line hits.")
Agent(subagent_type="Explore", description="date-fns importers", prompt="Find every TS file that imports from 'date-fns'.")
Agent(subagent_type="Explore", description="MAX_RETRIES definition", prompt="Find where MAX_RETRIES is defined and return the file:line and the value.")Incorrect — three separate responses:
Response 1: Agent(Explore, PaymentIntent)
Response 2: Agent(Explore, date-fns)
Response 3: Agent(Explore, MAX_RETRIES)Phase 4 — Aggregate
When all subagents return, produce ONE aggregated response for the user. Never regurgitate each subagent's raw output — group by outcome (found / not-found / errored) and put the most actionable bucket first.
If any subagent errored, surface the error inline with the unit's label; do not retry silently.
Concurrency budget
- Hard cap: 12 subagents per response. Beyond that Claude Code starts serializing.
- If the user's turn has > 12 independent units, split into two responses of ≤ 12 each. Announce the split briefly (
Fanning out in two batches (12 + N)…). - Do NOT chain the second batch behind the first if the units are truly independent — emit the second batch as soon as the first returns.
Anti-patterns
- Fake parallelism (sequential in disguise). Emitting one Agent per response and pretending it is parallel. It is not.
- Fake independence. Splitting a workflow that has dependencies (
fix bug → run tests → commit) into parallel workers. That will corrupt state. - Over-parallelising trivial work. Do not spawn a subagent for a single
gh pr viewwhen the parent can just call Bash directly in one turn. - Skipping the aggregation. Returning raw subagent transcripts to the user is noise. Always aggregate.
- Racing writes. If two units both edit the same file / repo / branch, they are NOT independent. Sequential.
When NOT to invoke
- Single-task user turns.
- Any user turn where ordering matters (all
then,after,if X). - Tasks that require the user's live approval mid-flight (posting to any shared / external surface).
- One-shot lookups where a fast Bash call in parent is cheaper than spawning a subagent.
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.

