How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-dev:decomposeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Break down a development task into small, executable subtasks with clear dependencies.
Break down a development task into small, executable subtasks with clear dependencies.
You need these before decomposing:
Each task must include:
Read CLAUDE.md to understand the project's architecture layers, then split by layer from inner to outer.
General pattern (adapt to project):
1. Core types — data classes, interfaces, enums
2. Business logic — use cases, services, domain rules
3. Infrastructure — repositories, API clients, DB
4. Presentation — UI components, view models, controllers
5. Tests — unit tests, integration tests
6. Cross-cutting — lint, formatting, CI checks
For KMP projects:
1. commonMain API — shared types, interfaces
2. expect/actual — platform abstractions
3. androidMain — Android-specific implementation
4. iosMain — iOS-specific implementation
5. Tests — commonTest, platform tests
6. Sample apps — androidApp, iosApp
7. Cross-cutting — detekt, explicitApi
For web projects:
1. Types/schemas — shared types, API contracts
2. Backend logic — API handlers, services
3. Frontend logic — state management, hooks
4. UI components — views, pages
5. Tests — unit, E2E
6. Cross-cutting — lint, build
Set dependencies on tasks that require earlier ones:
Use TaskCreate for each subtask:
subject: "Implement {What} in {Where}"
description: |
**What**: {description}
**Where**: {file path(s)}
**How**: {implementation approach}
**Why**: {reason}
**Verify**: {verification step}
activeForm: "Implementing {What}"
After creating all tasks, show the full task list with dependencies:
| # | Layer | Description | Blocked By |
|---|-------|-------------|------------|
| 1 | Core | Define FooData data class | — |
| 2 | Logic | Implement FooService | #1 |
| 3 | Infra | Add FooRepository | #2 |
| 4 | UI | Add FooScreen component | #2, #3 |
| 5 | Test | Unit tests for FooService | #2 |
| 6 | Cross | Lint + format check | #3, #4 |
Ask user to confirm before starting implementation.
After generating the full task list, use Codex to validate the decomposition.
ToolSearch("select:mcp__codex__codex")
mcp__codex__codex(
prompt: "Validate this task decomposition for correctness and completeness:
## Task List
{full task table with dependencies}
## Project Architecture
{architecture layers from CLAUDE.md}
## Validation Checklist
1. **Layer ordering**: Are tasks ordered inner-to-outer (core → logic → infra → presentation → tests → cross-cutting)?
2. **Missing tasks**: Are there any steps that should exist between tasks? Any gaps?
3. **Dependency correctness**: Are all dependency edges correct? Any missing or unnecessary dependencies?
4. **Parallelization**: Which tasks could safely run in parallel (no shared state, no dependency)?
5. **Risk assessment**: Which tasks are highest-risk and might need extra verification?
Output: validated task list with any corrections, plus a list of parallelizable task groups."
)
If Codex suggests corrections:
If ToolSearch fails to find Codex or the call errors:
npx claudepluginhub riox432/ai-dev-templates --plugin ai-devGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.