task-decomposition
Skill0 starsChanged 10 months agoMITView on GitHub
Strategies for breaking large tasks into context-window-sized subtasks
20 other projects use a version of this.
Adopted by
Most recently taken up by
- karthikrshet/aiskillstheir own version, first seen Nov 28, 2026
- baekenough/oh-my-customcodetheir own version, first seen Nov 23, 2026
- madeincartel/claude-code-frameworktheir own version, first seen Nov 15, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- michaelalber/ai-toolkittheir own version, first seen Nov 1, 2026
- mabzhang/opc-toolkittheir own version, first seen Nov 1, 2026
Used with
Projects with it also use post-deploy-qa, pre-deploy-qa and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
madeincartelSkillpost-deploy-qa
Post-deploy verification: execute AVP from tech-spec on live environment, verify all acceptance criteria (user-spec + tech-spec), pick up deferred criteria from pre-deploy QA report. Uses MCP tools (Telegram MCP, Playwright, curl, bash).
Also in 3 projects that use this
madeincartelSkillpre-deploy-qa
Pre-deploy acceptance testing methodology: run test suite (unit/integration/E2E), verify acceptance criteria from user-spec and tech-spec. Does not require live environment.
Also in 3 projects that use this
MicrosoftSkilldeploy-pipeline
Triggers a Power Platform Pipeline deployment run for a Power Pages solution. Selects a target stage, validates the package, optionally configures deployment settings (environment variables, connection references), then deploys and polls for completion. Use when asked to: "deploy pipeline", "run pipeline", "trigger deployment", "deploy to staging", "deploy to production", "run power platform pipeline", "deploy solution via pipeline", "promote solution", "push to staging", "push to production".
Also in 3 projects that use this
nilecuiSkilldocumentation-writing
Writing clear, discoverable software documentation following the Eight Rules and Diataxis framework. Use when creating README files, API docs, tutorials, how-to guides, or any project documentation. Automatically enforces docs/ location, linking requirements, and runnable examples.
Also in 3 projects that use this
GitHubSkillproject-planning
USE FOR: planning and updating work on a GitHub Projects board — reading fields and views, adding issues or pull requests as items, setting status and iteration, and posting a status update. NOT FOR: triaging a repository issue backlog, or preparing a release.
Also in 3 projects that use this
- +5 more from madeincartel
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- DevelopersGlobal/ai-agent-skills★ 220same name
- adamentwistle/fable-skills★ 98same name
- charliehzm/medharness★ 85same name
- baekenough/oh-my-customcode★ 47same name
- d-oit/rust-2026-template★ 15same name
- aws-solutions/konductor★ 12same name
- hieutrtr/ai1-skills★ 8same name
- AgentShekel/agentic-workflow★ 4same name
- karthikrshet/aiskills★ 4same name
- Lukasbrujula/claude-code-framework★ 4same name
10 more not listed
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 repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- quality-gatesSkill
- test-firstSkill
The file
Files
Task Decomposition Patterns
The Context Window Rule
Each subtask must be completable within a single Claude Code context window:
- Maximum ~100k tokens of reading/exploration
- Maximum ~50 files modified
- Aim for 15-60 minutes of focused work
Decomposition Strategies
By Layer (Horizontal)
Split by architectural layer - good for full-stack features:
- Data Layer - Database/model changes, migrations
- Business Logic - Service layer, domain logic
- API Layer - Endpoints, validation, serialization
- UI Layer - Components, state management
- Integration - End-to-end testing, wiring
By Feature (Vertical)
Split by user-facing capability - good for isolated features:
- Core MVP - Minimal working version
- Edge Cases - Boundary conditions, error states
- Polish - UX improvements, loading states
- Documentation - User-facing docs, inline comments
By Risk Level
Split by risk - good for refactoring:
- Foundation - Low-risk infrastructure changes
- Core Changes - Medium-risk feature code
- Integration Points - High-risk connection points
- Verification - Testing and cleanup
By Dependency
Order subtasks so each can be completed independently:
- Types and interfaces first
- Utilities before features
- Data models before business logic
- Backend before frontend
- Unit tests before integration tests
Sizing Heuristics
Too Small (Combine these)
- Changing a single constant
- Adding one import
- Fixing a typo
- Single-line changes
Just Right
- Adding a function with tests (small)
- Creating a component with tests (medium)
- Implementing an API endpoint (medium)
- Refactoring a module (medium-large)
Too Large (Break these down)
- "Implement authentication" - break into providers, session, UI
- "Add database support" - break into schema, migrations, queries
- "Create admin panel" - break into CRUD operations
Dependency Ordering
[Types/Interfaces]
│
▼
[Utilities]
│
▼
[Data Layer]
│
▼
[Business Logic]
│
▼
[API Layer]
│
▼
[UI Layer]
│
▼
[Integration]Subtask Template
{
"id": "st-001",
"title": "Verb + Object (e.g., 'Add user model')",
"description": "What to implement and why",
"files": ["src/models/user.ts", "src/models/user.test.ts"],
"tests": [
"User model validates email format",
"User model hashes password on creation"
],
"acceptance_criteria": [
"User model defined with id, email, passwordHash fields",
"Validation rejects invalid email formats",
"Password is never stored in plain text",
"Unit tests pass"
],
"dependencies": [],
"complexity": "small"
}Red Flags
Watch for these signs a task needs more decomposition:
- Description says "and" multiple times
- Files list has more than 10 items
- Acceptance criteria has more than 5 items
- Dependencies list is complex
- You can't explain it in one sentence
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.

