task-decomposer
Skill0 starsChanged 3 months agoMITView on GitHub
Break down complex tasks with dependency mapping and verification criteria
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Mathews-Tom/armorytheir own version, first seen Nov 1, 2026
- nizaalkhot/skillstheir own version, first seen Nov 1, 2026
- fatih-developer/fth-skillstheir own version, first seen Oct 13, 2026
- yasdelayu/agent-x-cctheir own version, first seen Oct 13, 2026
- Laffey-82/cn-agent-skillstheir own version, first seen Aug 29, 2026
- GhostwheeI/Master-Plannertheir own version, first seen Jun 16, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- Mathews-Tom/armory★ 340same name
- ttmouse/skills★ 34same name
- gear-foundation/vara-skills★ 17same name
- fatih-developer/fth-skills★ 7same name
- Laffey-82/cn-agent-skills★ 1same name
- dhriyatinandu-bot/claude-skills★ 0same name
- GhostwheeI/Master-Planner★ 0same name
- nizaalkhot/skills★ 0same name
- yasdelayu/agent-x-cc★ 0same name
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 repository27 other files it gives its agents.
- architecture-designerSkill
- architecture-patternsSkill
- code-reviewSkill
- dockerSkill
- fastapiSkill
- feature-specificationSkill
- github-issue-resolverSkill
- github-opsSkill
- kubernetes-devopsSkill
- monitoringSkill
- nextjsSkill
- nginxSkill
- prd-to-ddd-designSkill
- prd-writerSkill
- prismaSkill
- react-expertSkill
- redisSkill
- redis-storeSkill
- requirements-analysisSkill
- shadcn-uiSkill
- ssh-essentialsSkill
- task-development-workflowSkill
- trpc-best-practicesSkill
- typescript-proSkill
- typescriptSkill
- webhookSkill
- zodSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Use this skill when you need to:
- Distinctive: line 104
Stop at the level where tasks are 1-2 days each
- Distinctive: line 105
Don't over-decompose into 1-hour tasks
- Distinctive: line 106
Leave flexibility for implementation details
- Distinctive: line 160
Rule: If task is L or XL, break it down further
- Distinctive: line 188
Every task must have testable success criteria
- Distinctive: line 189
No ambiguous "implement feature X"
- Distinctive: line 286
Don't refactor while solving unknowns
- Distinctive: line 330
Stop at 1-2 day tasks
- Distinctive: line 331
Leave implementation details to developer
- Distinctive: line 363
Ask "What needs to exist for this to work?"
- Distinctive: line 394
Every task has 3-7 testable criteria
- Distinctive: line 395
Use "Given/When/Then" format
- Distinctive: line 498
Karpathy Principle: Start Simple, Iterate Based on Reality: - Don't over-specify upfront.
- Distinctive: line 506
Example: Instead of designing perfect API spec for 50 endpoints, start with 5 core endpoints.
“Common” is measured: kept by at least 6 in 10 of the 7 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
Task Decomposer
Purpose: Break down complex tasks into manageable subtasks with clear dependencies and verification criteria.
Works with: Example Mapping, User Story Mapping, Systems Thinking
License: MIT (original work, inspired by agile methodologies)
When to Use
Use this skill when you need to:
- Break down large features into implementable tasks
- Map dependencies between tasks
- Estimate work accurately
- Identify risks early
- Plan incremental delivery
Don't use this for:
- Simple, single-step tasks
- Already well-defined subtasks
- Exploratory spike work (use time-boxing instead)
Prerequisites
1. Clear Goal
Think Before Coding (Karpathy Principle #1):
- What is the ultimate outcome?
- Who are the stakeholders?
- What are the constraints (time, resources, dependencies)?
- What does "done" look like?
2. Context
Gather information:
- Existing system architecture
- Technical constraints
- Team capacity
- Dependencies on other teams/systems
Core Workflows
1. Top-Down Decomposition
Start with the Goal
Example: "Build user authentication system"
Level 1 - Major Components:
## Epic: User Authentication
1. User registration
2. User login
3. Password reset
4. Session management
5. Account securityLevel 2 - Break Down Each Component:
### 1. User Registration
1.1 Design database schema
- Users table
- Email verification tokens table
1.2 Create registration API
- POST /api/register endpoint
- Input validation
- Password hashing
- Email verification
1.3 Build registration UI
- Registration form
- Email verification flow
- Error handling
1.4 Write tests
- Unit tests (validation, hashing)
- Integration tests (API)
- E2E tests (full flow)Simplicity First (Karpathy Principle #2):
- Stop at the level where tasks are 1-2 days each
- Don't over-decompose into 1-hour tasks
- Leave flexibility for implementation details
2. Dependency Mapping
Identify Dependencies
Types of Dependencies:
- Must-have: Task B cannot start until A is done
- Nice-to-have: Task B is easier if A is done first
- Parallel: Tasks can happen simultaneously
Visual Format:
## Dependency Graph
### Critical Path (must be sequential)
Database schema → API endpoints → UI components → Tests
### Can be parallel
- API development (after schema)
- UI mockups (independent)
- Test plan documentation (independent)
### Dependencies Matrix
| Task | Depends On | Blocks |
|------|------------|--------|
| 1.1 Database schema | - | 1.2, 1.3 |
| 1.2 Registration API | 1.1 | 1.3, 1.4 |
| 1.3 Registration UI | 1.2 | 1.4 |
| 1.4 Tests | 1.2, 1.3 | - |Success Criteria:
- Critical path identified
- Parallel work opportunities found
- Blockers surfaced early
- Team can start on independent tasks
3. Task Sizing & Estimation
T-Shirt Sizing
Quick estimation method:
- XS (1-4 hours): Simple, well-defined
- S (4-8 hours): Clear but needs implementation
- M (1-2 days): Some unknowns, standard complexity
- L (3-5 days): Complex, multiple dependencies
- XL (>5 days): Too large, needs decomposition
Rule: If task is L or XL, break it down further
Example:
## Sizing
| Task | Size | Reasoning |
|------|------|-----------|
| 1.1 Database schema | S | Clear requirements, standard patterns |
| 1.2 Registration API | M | Validation logic, email integration |
| 1.3 Registration UI | M | Form + error states + verification |
| 1.4 Tests | L | → Break down by type (unit, integration, E2E) |Revised:
| Task | Size |
|------|------|
| 1.4.1 Unit tests | S |
| 1.4.2 Integration tests | S |
| 1.4.3 E2E tests | M |4. Verification Criteria per Task
Goal-Driven Execution (Karpathy Principle #4):
- Every task must have testable success criteria
- No ambiguous "implement feature X"
- Clear definition of done
Format:
## Task 1.2: Registration API
**Goal**: POST /api/register endpoint that validates input, creates user, sends verification email
**Success Criteria**:
- [ ] Endpoint accepts email, password, name
- [ ] Rejects invalid email format
- [ ] Rejects weak passwords (<8 chars)
- [ ] Hashes password with bcrypt
- [ ] Creates user in database
- [ ] Sends verification email
- [ ] Returns 201 on success, 400 on validation error
- [ ] Unit tests pass (>80% coverage)
- [ ] Integration test passes
**Edge Cases**:
- [ ] Duplicate email returns 409 Conflict
- [ ] Email service failure handled gracefully
- [ ] Database connection error handled
**Dependencies**:
- Requires: Task 1.1 (database schema)
- Blocks: Task 1.3 (UI needs working API)Success Criteria:
- No task can be "done" without verification
- Every task has 3-7 testable criteria
- Edge cases documented
- Happy path + error paths covered
Common Patterns
Pattern 1: Walking Skeleton
Approach: Minimal end-to-end implementation first
Example: User registration
## Phase 1: Walking Skeleton (MVP)
1. Simple registration form (no validation)
2. Basic API (no email, no password hashing)
3. Store user in database
4. Redirect to dashboard
**Result**: End-to-end flow works, no polish
## Phase 2: Add Critical Features
1. Password hashing
2. Email validation
3. Basic error handling
## Phase 3: Polish
1. Email verification
2. Password strength requirements
3. Better error messages
4. Loading statesBenefits:
- Proves architecture works early
- Identifies integration issues
- Delivers value incrementally
Pattern 2: Risk-First Decomposition
Approach: Tackle unknowns and risks first
Example: New payment integration
## High-Risk Tasks (Do First)
1. Spike: Test payment provider API (time-box 4 hours)
2. Prototype webhook handling
3. Test error scenarios (declined cards, network failures)
## Medium-Risk Tasks
1. Build payment form UI
2. Implement checkout flow
3. Add receipt generation
## Low-Risk Tasks (Do Last)
1. Add payment method icons
2. Improve loading animations
3. Add email notificationsSurgical Changes (Karpathy Principle #3):
- Isolate risky work from stable code
- Don't refactor while solving unknowns
- Prove feasibility before building polish
Pattern 3: Vertical Slicing
Approach: Slice features vertically (full-stack per feature) not horizontally (all backend, then all frontend)
Bad (horizontal):
Week 1: All database models
Week 2: All API endpoints
Week 3: All UI componentsNothing works until week 3
Good (vertical):
Week 1: User registration (DB + API + UI)
Week 2: User login (DB + API + UI)
Week 3: Password reset (DB + API + UI)Something works after week 1
Benefits:
- Continuous delivery
- Early feedback
- Easier to pivot
Common Pitfalls
Pitfall 1: Over-Decomposition
Why it happens: Trying to plan every detail upfront
Symptoms:
- 50+ tasks for a simple feature
- Tasks like "Write line 23 of file.ts"
- Excessive overhead tracking tiny tasks
How to avoid:
- Stop at 1-2 day tasks
- Leave implementation details to developer
- Focus on outcomes, not micro-steps
Before:
1. Create users table
2. Add id column
3. Add email column
4. Add password column
5. Add created_at column
6. Add indexes
7. Run migrationAfter:
1. Design and implement users table schema
Success: Migration runs, table created, indexes presentPitfall 2: Hidden Dependencies
Why it happens: Didn't map dependencies thoroughly
Symptoms:
- Task blocked unexpectedly
- Rework needed
- Team waiting on each other
How to avoid:
- Ask "What needs to exist for this to work?"
- Review dependencies with team
- Identify external dependencies early (APIs, third-party services)
Example:
Task: Build product catalog UI
Hidden dependencies found:
- Product API doesn't support filtering yet
- Image CDN not set up
- No product data in staging database
→ Add tasks:
- Implement product filtering API
- Set up CDN
- Create seed data scriptPitfall 3: No Verification Criteria
Why it happens: Vague task descriptions
Symptoms:
- "Is this done?" debates
- Scope creep
- Rework due to misunderstanding
How to avoid:
- Every task has 3-7 testable criteria
- Use "Given/When/Then" format
- Include edge cases
Before:
Task: Implement loginAfter:
Task: Implement login
Success Criteria:
- [ ] User can log in with email + password
- [ ] Invalid credentials show error
- [ ] Successful login redirects to dashboard
- [ ] Session persists across page refresh
- [ ] Logout clears session
Edge Cases:
- [ ] Account locked after 5 failed attempts
- [ ] Expired session redirects to loginVerification Checklist
Decomposition Quality:
- Tasks are 1-2 days each (not 1 hour, not 1 week)
- Clear goal for each task
- No ambiguous descriptions
- Vertical slices where possible
Dependencies:
- Dependencies mapped
- Critical path identified
- Parallel work opportunities found
- External dependencies flagged
Estimation:
- T-shirt sizing complete
- No XL tasks remaining
- Risky tasks identified
- Buffer time included
Verification:
- Every task has success criteria
- Edge cases documented
- Test plan per task
- Definition of done clear
Integration with Other Skills
Combine with:
- requirements-analysis - Gather requirements before decomposition
- feature-specification - Define acceptance criteria per task
- task-development-workflow - Execute decomposed tasks with TDD
- architecture-designer - Decompose architecture decisions
Example workflow:
- Gather requirements (requirements-analysis)
- Break down into tasks (this skill)
- Define specifications (feature-specification)
- Execute with TDD (task-development-workflow)
- Review code (code-review)
References
Methodologies:
- User Story Mapping by Jeff Patton
- Example Mapping by Matt Wynne
- https://www.jpattonassociates.com/user-story-mapping/
- https://cucumber.io/blog/bdd/example-mapping-introduction/
Agile Practices:
- Vertical Slicing: https://www.visual-paradigm.com/scrum/user-story-splitting-vertical-slice/
- Story Points: https://www.atlassian.com/agile/project-management/estimation
Systems Thinking:
- Thinking in Systems by Donella Meadows
- https://www.systems-thinking.org/
Meta: Skill Quality
Incorporates Karpathy Principles:
- ✅ Think Before Coding - Goal clarification before decomposition
- ✅ Simplicity First - Stop at right level of detail (1-2 day tasks)
- ✅ Surgical Changes - Isolate risks, vertical slicing
- ✅ Goal-Driven Execution - Verification criteria per task
Originality: Written from scratch, inspired by User Story Mapping, Example Mapping
Testing: Used to decompose 50+ features across multiple projects
License: MIT
Production Pattern: Iterative Refinement
Karpathy Principle: Start Simple, Iterate Based on Reality - Don't over-specify upfront. Ship MVPs, gather feedback, refine based on actual usage patterns.
Workflow:
- Define minimum viable scope
- Implement and deploy quickly
- Measure user behavior
- Refine based on data, not assumptions
Example: Instead of designing perfect API spec for 50 endpoints, start with 5 core endpoints. Learn what users actually need before building the rest.
Advanced Troubleshooting
Common anti-patterns to avoid:
- ❌ Perfectionism paralysis (waiting for perfect spec)
- ❌ Scope creep (adding "nice-to-haves" mid-project)
- ❌ Ignoring user feedback (building what you think they want)
Recovery strategies:
- ✅ Time-box specification work (2-4 hours max)
- ✅ Use feature flags for gradual rollouts
- ✅ A/B test assumptions before full build
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.

