dispatching-subagents
Skill2 starsChanged 42 days agoMITView on GitHub
Use when you have 2+ independent pieces of work with no shared state or sequential dependency — failing tests in different subsystems, separate bugs, parallel investigations. Dispatch one focused subagent per problem domain so they run concurrently and keep your own context clean.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- skyfox675/agents-skillstheir own version, first seen Nov 6, 2026
- oaustegard/claude-skillstheir own version, first seen Oct 13, 2026
- jonhill90/skillstheir own version, first seen Sep 30, 2026
- atgreen/hackinatortheir own version, first seen Aug 24, 2026
- tienenwu/fablestheir own version, first seen Jul 7, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- oaustegard/claude-skills★ 158same name
- skyfox675/agents-skills★ 11same name
- jonhill90/skills★ 8same name
- tienenwu/fables★ 4same name
- atgreen/hackinator★ 1same 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 repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- benchmarkingSkill
- commit-messagesSkill
- csharp-15-syntaxSkill
- csharp-aot-trimmingSkill
- csharp-api-designSkill
- csharp-assembly-inspectionSkill
- csharp-asyncSkill
- csharp-collections-modernSkill
- csharp-concurrency-primitivesSkill
- csharp-data-layoutSkill
- csharp-debuggingSkill
- csharp-discardsSkill
- csharp-disposable-patternsSkill
- csharp-docsSkill
- csharp-error-handlingSkill
- csharp-extension-membersSkill
- csharp-generics-modernSkill
- csharp-guard-clausesSkill
- csharp-json-source-generationSkill
- csharp-language-versionsSkill
- csharp-logging-diagnosticsSkill
- csharp-lspSkill
- csharp-modern-typesSkill
- csharp-nullabilitySkill
- csharp-nullable-migrationSkill
- csharp-nunitSkill
- csharp-pattern-matchingSkill
- csharp-performanceSkill
- csharp-polyfillsSkill
- csharp-source-generatorsSkill
- csharp-static-lambdasSkill
- csharp-string-handlingSkill
- csharp-tunitSkill
- csharp-verificationSkill
- dotnet-11-librariesSkill
- dotnet-analyzersSkill
- dotnet-central-package-managementSkill
- dotnet-file-based-appsSkill
- dotnet-msbuild-usingsSkill
- dotnet-multi-targetingSkill
- dotnet-project-hygieneSkill
- dotnet-runSkill
- dotnet-runtime-asyncSkill
- dotnet-slnxSkill
- dotnet-test-platformsSkill
- executing-plansSkill
- performance-bounded-deduplicationSkill
- roslyn-analyzer-performanceSkill
- roslyn-discoverySkill
- roslyn-duplicate-detectionSkill
- roslyn-guard-rewritersSkill
- roslyn-rewritersSkill
- subagent-driven-developmentSkill
- tddSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use when all of these hold:
- Distinctive: line 15
No shared state — agents won't edit the same files or fight over resources
- Distinctive: line 17
Don't use when:
- Distinctive: line 25
Dispatch in parallel: Put all the Agent calls in a single message so they run concurrently.
- Distinctive: line 26
Integrate: Read each summary, check for conflicts, run the full suite yourself, spot-check.
- Distinctive: line 65
After agents return: review each summary, confirm no two touched the same code, run the whole suite together, and sanity-check a couple of …
“Common” is measured: kept by at least 6 in 10 of the 4 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
Dispatching subagents
Delegate independent work to subagents with isolated context. You craft exactly what each one needs — they do not inherit your session history. This runs problems in parallel and keeps your context free for coordination.
When to use
Use when all of these hold:
- 2+ distinct problems (different files, subsystems, or bugs)
- Each can be understood and solved without context from the others
- No shared state — agents won't edit the same files or fight over resources
Don't use when:
- Failures are related (fixing one may fix the rest — investigate together first)
- You don't yet know what's broken (explore first, then dispatch)
- The work is sequential (output of one feeds the next)
How
- Split by problem domain. One agent per independent area. "Fix auth/session.test" and "Fix billing/invoice.test" — not "fix all the tests."
- Dispatch in parallel. Put all the Agent calls in a single message so they run concurrently. (Separate messages run them one at a time.)
- Integrate. Read each summary, check for conflicts, run the full suite yourself, spot-check. Agents can make systematic mistakes — verify, don't trust blindly.
Anatomy of a good agent prompt
Each prompt is focused, self-contained, and explicit about its return value:
- Scope — exactly one file/subsystem. Narrow.
- Context — paste the actual error messages, test names, failing output. The agent has none of your history.
- Constraints — e.g. "Fix the test only, do NOT change production code" or "Do NOT touch unrelated files."
- Return contract — "Return: root cause + the exact changes you made + final test output." You need this to integrate.
Example:
Fix the 3 failing tests in tests/auth/session.test.ts:
1. "expires idle session" — expects status 401, gets 200
2. "refresh extends expiry" — token TTL not updated
3. "concurrent refresh" — race, sometimes double-refreshes
Steps:
1. Read the test file and understand what each test asserts.
2. Find the root cause — is it a real bug or a stale test expectation?
3. Fix it properly. Do NOT just bump timeouts to hide a race — fix the race.
4. Do NOT change code outside src/auth/.
Return: root cause for each, the diff you applied, and the final test run output.Common mistakes
- Too broad — "fix the tests" → agent gets lost. Give it one file.
- No context — "fix the race condition" → agent doesn't know where. Paste the failure.
- No constraints — agent refactors half the repo. Fence it in.
- Vague return — "fix it" → you can't integrate. Demand a specific summary.
- Papering over — agents that "fix" by widening timeouts or loosening assertions. Tell them to find the real cause.
Verify before you trust
After agents return: review each summary, confirm no two touched the same code, run the whole suite together, and sanity-check a couple of the diffs by hand. Independent fixes usually integrate cleanly — but you only know that once the full bar is green.
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.

