subagent-delegation
Skill22 starsChanged 24 days agoMITView on GitHub
Delegate routine work to subagents — boilerplate generation, data transformation, file analysis, documentation drafting. Use when splitting tasks into independent subtasks for parallel subagent execution.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- chrisbanes/skillstheir own version, first seen Nov 8, 2026
- TrueImmortal82/open-code-skillstheir own version, first seen Nov 8, 2026
- rmkr/skillstheir own version, first seen Nov 5, 2026
- shinpr/codex-workflowstheir own version, first seen Nov 3, 2026
- 0xUrsanomics/utopia-ostheir own version, first seen Nov 1, 2026
- code-dimension/code-dimension-skillstheir own version, first seen Oct 17, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- chrisbanes/skills★ 1.1ksame name
- toonight/get-shit-done-for-antigravity★ 952same name
- sammcj/agentic-coding★ 169same name
- shinpr/codex-workflows★ 39same name
- shinpr/codex-subagent-playbook★ 8same name
- code-dimension/code-dimension-skills★ 3same name
- 0xUrsanomics/utopia-os★ 2same name
- p10ns11y/skills★ 2same name
- buildpad-ai/skills★ 1same name
- lfake2320-collab/agentdesk★ 0same name
2 more not listed
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 repository259 other files it gives its agents.
- AGENTS.mdAGENTS.md
- composition-patterns/AGENTS.mdAGENTS.md
- react-best-practices/AGENTS.mdAGENTS.md
- react-native-skills/AGENTS.mdAGENTS.md
- react-view-transitions/AGENTS.mdAGENTS.md
- vercel-optimize/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accelerated-computing-cudfSkill
- accessibilitySkill
- agentic-evalSkill
- agent-skillguardSkill
- agent-task-mappingSkill
- ai-writing-detectorSkill
- avoid-ai-writing-routerSkill
- avoid-ai-writingSkill
- azure-integrationsSkill
- best-practicesSkill
- brainstormingSkill
- breaking-changes-managementSkill
- canvas-designSkill
- cloud-design-patternsSkill
- codebase-designSkill
- codebase-to-courseSkill
- code-examples-syncSkill
- code-qualitySkill
- codex-app-threadsSkill
- codex-computer-useSkill
- codexerSkill
- codex-in-app-browserSkill
- codex-router-mediaSkill
- codex-routerSkill
- collision-zone-thinkingSkill
- competition-submission-checkerSkill
- composition-patternsSkill
- condition-based-waitingSkill
- context-mapSkill
- core-web-vitalsSkill
- course-content-mapSkill
- csharp-xunitSkill
- custom-agent-usageSkill
- deepstream-devSkill
- deepstream-import-vision-modelSkill
- defense-in-depthSkill
- deploy-to-vercelSkill
- development-workflowSkill
- devops-toolingSkill
- dispatching-parallel-agentsSkill
- docSkill
- documentation-authoringSkill
- documentation-automationSkill
- documentation-patternsSkill
- documentation-qualitySkill
- documentation-verificationSkill
- document-metadata-reviewSkill
- docxSkill
- domain-modelingSkill
- dotnet-best-practicesSkill
- ds-notebook-strict-codeSkill
- ds-teaching-assistantSkill
- excalidraw-diagram-generatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
8
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 15
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
- Distinctive: line 54
Do not claim an MCP operation was used when the active host does not expose it.
- Distinctive: line 55
Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
- Distinctive: line 67
Before claiming "skill applied successfully":
- Distinctive: line 82
Before you mark delegated work complete, the coordinating agent must ask:
- Very specific: line 94
Step 2: Delegate: - Use runSubagent for routine or repetitive work
- Distinctive: line 95
Step 3: Review: - Check output for correctness, completeness, integration compatibility
- Distinctive: line 97
Step 5: Validate: - Test integrated code, debug issues, ensure quality
- Distinctive: line 101
Before integrating subagent results, verify:
“Common” is measured: kept by at least 6 in 10 of the 12 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
Subagent Delegation Patterns
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
Activation Conditions
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
Activate this skill when:
- Creating repetitive code structures or boilerplate
- Performing data transformation tasks
- Analyzing codebase for patterns or information
- Generating documentation from existing code
- Creating simple utility functions
- Breaking down complex features into manageable subtasks
Core Delegation Patterns
See Delegation Patterns for detailed examples of:
- Boilerplate generation (API routes, CRUD operations, component structures)
- Data transformations between formats
- File analysis and pattern extraction
- Documentation generation from code
- Utility function creation
<!-- MCP:START --><!-- PORTABILITY:START -->Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/subagent-delegationand restart Codex after major changes.
<!-- PORTABILITY:END -->MCP Availability And Fallback
Preferred MCP Server: None required
- Fallback prompt: "Use the Subagent Delegation Patterns skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
- Do not claim an MCP operation was used when the active host does not expose it.
- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
<!-- MCP:END -->Anti-Patterns
- Delegating or evaluating without a scoped success condition: The output becomes hard to review and easy to overbuild.
- Skipping the evidence step: A workflow that cannot be re-checked quickly is not ready for handoff.
- Bundling unrelated subtasks together: It creates noisy prompts, weaker ownership, and avoidable integration risk.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Subagent Delegation workflow names the agent boundary, delegated scope, and expected return artifact.
- Pass/fail: Context passed to helpers is minimal, task-local, and free of hidden expected answers.
- Pass/fail: Results are integrated only after evidence, diffs, or citations are checked by the controller.
- Pressure-test scenario: Run the workflow on two similar tasks that must not share assumptions or leaked context.
- Success metric: Zero context leakage; every delegated output is independently reviewable.
Examples & Scripts
- Delegation Pattern Examples — Code examples of common delegation patterns
- Delegation Template — JavaScript template for structuring delegation calls
Self-Verification Phase-Gate Questions
Before you mark delegated work complete, the coordinating agent must ask:
- Did the subagent receive a scoped task, owned files or responsibilities, and a clear definition of done?
- Did I review the returned output for correctness, integration fit, and missing edge cases instead of forwarding it blindly?
- Did I preserve the evidence trail showing what was delegated, what changed, and what still needs local ownership?
- Are any follow-up fixes, risks, or unresolved assumptions now explicit to the next reviewer?
Integration Workflow
For delegating tasks to subagents, follow this 5-step process:
- Step 1: Plan - Analyze problem, design solution, identify routine subtasks
- Step 2: Delegate - Use
runSubagentfor routine or repetitive work - Step 3: Review - Check output for correctness, completeness, integration compatibility
- Step 4: Integrate - Incorporate output into codebase, handle conflicts
- Step 5: Validate - Test integrated code, debug issues, ensure quality
Quality Control
Before integrating subagent results, verify:
- Code follows project conventions (style, naming, structure)
- Matches specified interfaces and contracts
- Includes necessary error handling
- Has appropriate comments/documentation
- No security vulnerabilities or obvious performance issues
- Compatible with existing codebase (imports, dependencies)
Combining with Sequential Thinking
For complex tasks, use Sequential Thinking first to plan architecture, then delegate routine parts:
// Use Sequential Thinking to plan
mcp_sequentialthi_sequentialthinking({
thought: "Breaking down feature...identifying repetitive CRUD for delegation",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true
})
// Then delegate boilerplate
runSubagent({
description: "Generate CRUD API",
prompt: "Create CRUD functions matching data model..."
})
// Main agent implements core logicRelated Skills
- agent-task-mapping: Use it when the workflow also needs task-to-agent routing decisions.
- custom-agent-usage: Use it when the workflow also needs loading and invoking custom agent definitions safely.
- subagent-driven-development: Use it when the workflow also needs plan-driven implementation with reviewer loops.
- agentic-eval: Use it when the workflow also needs rubric-driven evaluation loops.
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.

