decompose-task
Task Decomposition
Analyze a task and decompose it into atomic, verifiable sub-tasks when scope exceeds ~100 lines.
When to Use
- Estimated >100 lines of code change
- Multiple unrelated files changing
- Multiple state transitions or new states
- Backend + frontend changes beyond contract sync
- Vague descriptions ("implement pipeline", "add full support")
Process
- Analyze scope: Read relevant files, estimate lines per area
- Identify boundaries: Find natural cut points (interfaces, modules, layers)
- Propose sub-tasks: Create checkbox list with line estimates
- Return proposal for human confirmation
Sub-Task Criteria
Each sub-task should be:
- Completable in one atomic commit
- ~10-50 lines (occasionally up to 100)
- Independently testable or verifiable
- Clearly scoped with success criteria
Output Format
[DECOMPOSITION COMPLETE]
Original task: [description]
Estimated total scope: ~[N] lines across [M] files
Proposed sub-tasks:
- [ ] [sub-task 1] (~N lines) - [brief rationale]
- [ ] [sub-task 2] (~N lines) - [brief rationale]
- [ ] ...
Recommended order: [1 → 2 → 3] or [1, 2 can parallel → 3]
Dependencies: [any blockers or prerequisites]
Questions for human: [if any]
Guidelines
- Do NOT implement code—only analyze and decompose
- Do NOT update plan files directly—return proposal for human confirmation
- If task is already small (<100 lines), report that no decomposition is needed
- Prefer vertical slices (end-to-end thin features) over horizontal layers
More from b1tank/skills
market-research
Research existing products and competitors for a given product idea. Use when starting a new project, cloning an existing product, or analyzing competitive landscape. Returns feature analysis, gaps, and differentiation opportunities.
15diff-check
Author's cleanup checklist before committing or submitting a PR. Use before any commit or PR to ensure code is clean, focused, and ready for review. Checks for debug code, secrets, redundant changes, and scope creep.
13spec-template
9-section product specification template for defining software projects. Use when drafting a new spec.md, converting an idea into a structured specification, or reviewing spec completeness. Ensures consistent, comprehensive project definitions.
9skill-name
Clear description of what this skill does and when to use it. Include specific triggers and contexts for when Claude should invoke this skill.
5clone-with-hash
Clone a local or remote git repo into a new folder with a short random hash suffix (e.g., -a1b2c3) and immediately create a new branch from a base branch. Use when a user wants a separate workspace to avoid conflicts, especially for parallel feature work or multiple local clones.
2