agentleFS
GhostwheeIGhostwheeI/Master-Planner/.cursor/skills/task-decomposer/SKILL.md

task-decomposer

Skill0 starsChanged 5 months agoMITView on GitHub

Breaks a spec into small, verifiable, dependency-ordered tasks with acceptance criteria, verification steps, and phase checkpoints. Use after a spec exists and work needs to be turned into commit-sized, implementable units. Produces tasks.md.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Place high-risk tasks early (fail fast).

    line 75
  2. Very specific:

    Write .cursor/plans/<project>/tasks.md.

    line 83

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task Decomposer

You convert a validated spec into an implementable task graph. Good decomposition is the difference between reliable completion and a tangled mess. Every task must be small enough to implement, test, and verify in one focused session.

Adapts the dependency-graph + vertical-slicing + sizing model from addyosmani/agent-skills planning-and-task-breakdown (MIT) and the commit-aligned step model from github/awesome-copilot structured-autonomy-plan (MIT). See docs/ATTRIBUTION.md.

Step 1 — Stay read-only

Operate in planning mode: read the spec and the relevant codebase, identify existing patterns, map dependencies, note risks. Do not write implementation code. The output is tasks.md, not code.

Step 2 — Map the dependency graph

Work out what depends on what, then order bottom-up (build foundations first):

Database schema
  └─ API models/types
       ├─ API endpoints ─ Frontend client ─ UI components
       └─ Validation logic

Step 3 — Slice vertically

Build one complete feature path at a time, not all-DB-then-all-API-then-all-UI.

  • Bad (horizontal): "build entire schema" / "build all endpoints" / "build all UI".
  • Good (vertical): "user can register (schema+API+UI)" / "user can log in" / "user can create a task".

Each vertical slice leaves the system working and testable.

Step 4 — Write tasks (commit-aligned)

Assume the work ships as one PR on a dedicated branch; each task is one testable commit toward the goal.

## Task N: [short title]
- **Description:** one paragraph: what this accomplishes.
- **Dependencies:** [None | Task X, Task Y]
- **Files likely touched:** src/..., tests/...
- **Mode:** [AUTO | HITL]
- **Acceptance criteria:**
  - [ ] specific, testable condition
  - [ ] specific, testable condition
- **Verification:** test command / build / manual check
- **Estimated scope:** [XS | S | M | L]

Rules: every task has at least one acceptance criterion and a verification method; order strictly by dependency; mark [HITL] where human review is required, [AUTO] otherwise.

Step 5 — Size and checkpoint

SizeFilesExample
XS1add a validation rule
S1-2one endpoint
M3-5one feature slice
L5-8multi-component feature
XL8+too big — break it down

Break a task down further if: it would take more than one focused session; you can't state acceptance in ≤3 bullets; it touches two independent subsystems; or the title contains "and".

Insert checkpoints between phases:

## Checkpoint: after Tasks 1-3
- [ ] all tests pass
- [ ] app builds clean
- [ ] core flow works end-to-end
- [ ] review with human before proceeding

Place high-risk tasks early (fail fast).

Step 6 — Note parallelization (only if a team is in play)

Safe to parallelize: independent feature slices, tests for done features, docs. Must be sequential: migrations, shared-state changes, dependency chains. Needs coordination: features sharing an API contract (define the contract first).

Output and handoff

Write .cursor/plans/<project>/tasks.md. Update manifest.md phase. For Medium, hand to the user for approval; for Large/High-Risk, hand to plan-griller for independent review first.

Anti-Rationalization

ExcuseReality
"I'll figure out the order as I go"That's how rework happens. Map the dependency graph.
"The tasks are obvious"Then writing them takes two minutes and surfaces hidden dependencies.
"This one big task is fine"If it's L+ or has 'and' in the title, split it. Agents do best on S/M tasks.
"Verification is implied"Implied means unverifiable. Write the command or check.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.