Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMar 29, 2026·3 min de lectura

Claude Code Agent: Task Decomposition — Break Down Complex Tasks

Claude Code agent that breaks complex tasks into manageable subtasks. Plans execution order, identifies dependencies, and tracks progress.

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 62/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Agent
Instalación
Single
Confianza
Confianza: Established
Entrada
Claude Code Agent: Task Decomposition Expert
Comando con revisión previa
npx -y tokrepo@latest install 36c7c41a-843f-43ce-a447-39c9004478af --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

TL;DR
Claude Code agent skill that breaks complex tasks into subtasks, plans execution order, identifies dependencies, and tracks progress.
§01

What it is

This is a Claude Code agent skill for task decomposition. It breaks complex development tasks into manageable subtasks, plans execution order based on dependencies, and tracks progress through completion.

The skill targets developers who face large, ambiguous tasks and need a structured approach to planning. Instead of diving into code immediately, the agent creates a task plan that can be reviewed, modified, and executed step by step.

§02

How it saves time or tokens

Complex tasks attempted without decomposition often lead to circular attempts, forgotten requirements, and wasted tokens on unfocused exploration. Task decomposition front-loads the planning effort, producing a clear execution path that reduces backtracking.

Each subtask becomes a focused, self-contained unit of work. The agent can execute subtasks sequentially, validating each one before moving to the next, which catches issues early.

§03

How to use

  1. Install the skill in your Claude Code configuration.
  1. Describe a complex task:
Add user authentication to the API with:
- Email/password registration
- JWT token generation
- Password reset flow
- Protected route middleware
- Rate limiting on auth endpoints
  1. The agent decomposes it into ordered subtasks:
Subtask 1: Create User model with password hashing
Subtask 2: Build registration endpoint
Subtask 3: Implement JWT token generation and validation
Subtask 4: Add login endpoint with token response
Subtask 5: Create auth middleware for protected routes
Subtask 6: Build password reset flow (request + reset)
Subtask 7: Add rate limiting to auth endpoints
Subtask 8: Write integration tests
  1. Review the plan, adjust ordering or add subtasks, then execute.
§04

Example

§05

Task Plan: Add Authentication

#SubtaskDepends OnStatus
1User model + migrations-pending
2Registration endpoint1pending
3JWT utils-pending
4Login endpoint1, 3pending
5Auth middleware3pending
6Password reset1, 3pending
7Rate limiting2, 4pending
8Integration testsallpending
§06

Related on TokRepo

§07

Common pitfalls

  • Decomposing too finely. Subtasks that take less than 5 minutes create overhead without benefit. Aim for subtasks that represent 15-60 minutes of focused work.
  • Not identifying dependencies between subtasks. Independent subtasks can run in parallel; dependent ones must be sequenced. Missing a dependency causes rework.
  • Skipping the review step. The initial decomposition is a starting point. Review and adjust before executing. The agent may miss domain-specific requirements.

Preguntas frecuentes

How does the agent determine subtask ordering?+

The agent analyzes the task description and identifies logical dependencies. Database models must exist before endpoints that use them. Utility functions must exist before code that calls them. The agent creates a dependency graph and sorts subtasks topologically.

Can I modify the task plan?+

Yes. The task plan is presented for review before execution. You can add, remove, reorder, or modify subtasks. The agent adjusts dependencies automatically when you make changes.

Does the agent track progress?+

Yes. Each subtask has a status (pending, in-progress, done, blocked). The agent updates status as it completes subtasks and reports overall progress. Blocked subtasks are flagged with the reason.

How granular should subtasks be?+

Subtasks should represent a single, testable unit of work. Too granular (one function per subtask) creates overhead. Too coarse (entire feature as one subtask) loses the benefit of decomposition. Aim for subtasks that produce a reviewable, testable output.

Can this skill handle refactoring tasks?+

Yes. Refactoring tasks benefit significantly from decomposition. The agent can plan a safe refactoring sequence: add new abstraction, migrate callers one by one, remove old code, update tests. This prevents the 'big bang refactor' that often introduces bugs.

Referencias (3)
🙏

Fuente y agradecimientos

Created by Claude Code Templates by davila7. Licensed under MIT. Install: npx claude-code-templates@latest --agent ai-specialists/task-decomposition-expert --yes

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados