From agents
Use when a task is too large or ambiguous to hand to a single agent without first defining clear subtask boundaries. Triggers on: "큰 작업 분해해줘", "에이전트 분리해줘", "subtask로 나눠줘", "task decomposition", "이 작업 어떻게 나눠야 해?", "agent에게 어떻게 전달해?", "병렬 작업 계획 잡아줘". Best for: multi-agent orchestration planning, producing subtask definitions with prompts. Not for: executing already-defined tasks (use dispatching-parallel-agents for that).
How this skill is triggered — by the user, by Claude, or both
Slash command
/agents:agent-task-decomposerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A bad decomposition wastes more time than no decomposition. Agents given vague scope explore endlessly, duplicate work, or step on each other's outputs. A good decomposition defines crisp boundaries so each agent can succeed independently without needing to ask clarifying questions mid-run.
A bad decomposition wastes more time than no decomposition. Agents given vague scope explore endlessly, duplicate work, or step on each other's outputs. A good decomposition defines crisp boundaries so each agent can succeed independently without needing to ask clarifying questions mid-run.
Prompt quality is equally important. An agent that receives an underspecified prompt will make assumptions — and those assumptions are invisible until the output lands wrong. Writing precise, constraint-bearing prompts upfront eliminates the most common failure mode in agentic workflows.
MCP instruction: If sequential-thinking is available, use it to work through Steps 1-5 in order. The most common failure is jumping from task identification (Step 1) to prompt writing (Step 5) without completing dependency mapping (Step 3) — this produces prompts that assume context the subtask agent won't have.
Before decomposing anything, map the complete task:
If these are unclear, ask one focused question before proceeding. Do not decompose an ambiguous task — decompose a clear one.
Subtasks should split along one or more of these seams:
| Seam type | Example |
|---|---|
| Domain | Auth logic vs. payment logic vs. notification logic |
| Artifact | Research output vs. implementation vs. test suite |
| Phase | Data collection → analysis → recommendation |
| Component | Frontend module A vs. backend service B |
Good subtask boundaries have:
Bad subtask boundaries have:
Draw the dependency graph (even mentally) before assigning subtasks to agents.
Independent subtasks → can run in parallel (use dispatching-parallel-agents)
Sequential subtasks → one agent hands off to the next
Mixed graph → parallelize the independent layers, sequence the rest
Mark explicitly:
Each subtask must carry everything the agent needs to execute it — the agent will not have access to the conversation history or other agents' reasoning.
Include in each subtask's context:
Resist the urge to share everything. Agents with too much irrelevant context lose focus. Give only what this specific task requires.
Parallelization note: Step 5 is fully parallelizable after Step 4 is complete — each subtask's context is now isolated and independent. If running as an agent, dispatch all subtask prompt generation simultaneously.
Every optimized prompt must have five elements:
One sentence. What does "done" look like?
authenticateUser function in src/auth/session.ts to return a typed AuthResult instead of throwing exceptions"List what the agent starts with: file paths, data, prior output, environment facts.
What the agent must not do:
src/auth/"Exactly what the agent returns:
How the agent confirms success before returning:
npm test src/auth and confirm all tests pass"docs/schema.json"src/auth/ references src/payment/"Produce this format for every decomposition:
## Task Overview
[One paragraph: what the full task is, what the final deliverable is]
## Dependency Graph
[Diagram or bullet list showing which subtasks depend on which]
## Subtask N: [Name]
**Runs:** [immediately / after Subtask X completes]
**Input:** [what it receives]
**Output:** [what it produces]
### Optimized Prompt
[Full prompt text — ready to paste into an agent, no editing required]
| Task size | Target subtask count |
|---|---|
| 30-min task | 1–2 subtasks |
| Half-day task | 3–5 subtasks |
| Multi-day task | 5–10 subtasks, each half-day or less |
If a subtask still feels too large, apply the same decomposition process recursively. If a subtask feels trivially small, merge it with an adjacent one — but only if they share the same agent and the same file scope.
Decomposing before clarifying the goal. A precise decomposition of a fuzzy task produces precise confusion.
Overlapping file ownership. Two subtasks writing to the same file in parallel produce merge conflicts or silently overwrite each other's work. Assign one owner per file.
Missing the output contract. Agents that do not know their expected output format produce output in whatever format felt natural. Define it explicitly.
Prompts without constraints. Unconstrained agents refactor, rename, reorganize, and expand scope. Constraints are not optional polish — they are the fence that keeps the agent on task.
Too many subtasks with fine-grained dependencies. A sequential chain of 10 small subtasks gains nothing from decomposition and loses parallelism. Merge sequential steps that belong to the same agent.
npx claudepluginhub newkayak12/claude-skills --plugin agentsDecomposes complex user goals into subtasks for multi-agent systems using sequential, parallel, hierarchical, conditional, and iterative strategies. Covers granularity, ambiguity handling, and design artifacts.
Decompose complex tasks into parallel units, design dependency graphs with blockedBy/blocks, and write effective task descriptions with acceptance criteria.
Breaks down implementation plans into detailed task lists with agent contexts, acceptance criteria, dependencies, priorities, complexity levels, and status tracking.