agentleFS
las-pinterlas-pinter/persona-agents/skills/planner/task-decomposition/SKILL.md

task-decomposition

Skill2 starsChanged 2 months agoMITView on GitHub

Break down a feature or requirement into independently completable, estimated, dependency-mapped tasks.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use git-workflow.

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.
  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    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
  1. Distinctive:

    Stop decomposing when ALL of these are true:

    line 41
  2. Distinctive:

    If uncertain about a task, add a pre-work investigation task rather than assuming.

    line 51
  3. Distinctive:

    Never start with "fix" — understand first.

    line 73
  4. Distinctive:

    Keep the system shippable at each step.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 13 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 Decomposition

Decomposition Decision Tree

Q1: What type of work is this?

NEW FEATURE?   → Decompose by user-facing actions (vertical slices).
                 Each task delivers a complete, testable capability.

BUGFIX?        → Decompose as: reproduce → root cause → fix → regression test.

REFACTOR?      → Decompose by component/module with behavior preserved at each step.

INTEGRATION?   → Decompose by contract: connect → error handling → monitoring.

OTHER?         → Decompose by layer: UI → API → data → infra.

Q2: How do I split?

RULE 1 (vertical slicing): Can the work be split by user-facing actions?
  → YES: Each action = one task. Prefer this over horizontal splitting.

RULE 2 (layer separation): Spans multiple architectural layers?
  → YES: One task per layer. Mark dependencies explicitly.

RULE 3 (independent concern): Can you identify sub-concerns?
  → YES: One task per concern.
  → NO:  May already be atomic. Check stopping conditions.

Q3: Is this task atomic? (Stopping Conditions)

Stop decomposing when ALL of these are true:

ConditionCheck
EstimableCan assign small / medium / large
VerifiableCan describe a test that proves it's done
IndependentNo hidden dependency on unplanned work
Single responsibilityNo "and" in the task description
No unknownsAll key decisions are understood

If uncertain about a task, add a pre-work investigation task rather than assuming.


Decomposition Patterns

Feature (vertical slices)

Split by user-facing action, end-to-end. Each action delivers value independently.

Feature: Password Reset Flow
├── Task 1: POST /api/auth/reset-request endpoint (small)
├── Task 2: POST /api/auth/reset endpoint with token validation (small, depends on Task 1)
├── Task 3: Send reset email (medium, depends on Task 1)
└── Task 4: Frontend reset-password form (small, depends on Task 2)

Dependency pattern: Task 1 ← Task 2 ← Task 4 (Task 3 parallel to Task 1)

Bugfix

Never start with "fix" — understand first. Tasks are sequential.

Bugfix: Checkout crashes with coupon code "SAVE50"
├── Task 1: Reproduce consistently in dev environment (small)
├── Task 2: Identify root cause (small, depends on Task 1)
├── Task 3: Implement fix (small, depends on Task 2)
└── Task 4: Add regression test (small, depends on Task 3)

Refactor (component by component)

Keep the system shippable at each step.

Refactor: Migrate Express routes to Fastify
├── Task 1: Set up Fastify alongside Express with shared middleware (medium)
├── Task 2: Migrate /users routes (small, depends on Task 1)
├── Task 3: Migrate /products routes (small, depends on Task 1)
├── Task 4: Migrate /orders routes (small, depends on Task 1)
└── Task 5: Remove Express and clean up dependencies (small, depends on Tasks 2-4)

Dependency pattern: Tasks 2, 3, 4 are parallel; Task 5 depends on all three.

Integration (contract layers)

Split by interface boundary.

Integration: Stripe Payment Provider
├── Task 1: Implement payment-intent creation endpoint (medium)
├── Task 2: Implement webhook handler for payment events (medium, depends on Task 1)
├── Task 3: Error handling, retries, fallback flows (small, depends on Tasks 1-2)
└── Task 4: Monitoring metrics, logging, alerting (small, depends on Tasks 1-2)

Anti-Patterns

Anti-patternLooks likeInstead
The monolith"Implement X" (large, no details)Split into user-facing actions
The layer cakeDB → API → UI for every featureVertical slices — full stack per action
Hidden research"Investigate and implement" in one taskSeparate investigation from execution
Silent unknownNo open questionsSurface all unknowns explicitly
Deep nestingTasks with subtasks of subtasksMax one level of nesting (N.N format)

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.