agentsclimarketplace

Task decomposition

Skill FluxGateAI/aesop/skills/task-decomposition

Use when a coding task is large or multi-part — it spans multiple files, functions, or steps, or feels too big to hold in your head at once. Breaks it into small, independently-verifiable building blocks with explicit dependencies, marks which blocks are independent (parallelizable) versus sequential, and gives each block a concrete acceptance check. Skip for single cohesive changes.From its SKILL.md

Install
npx -y skills add FluxGateAI/aesop --skill task-decomposition

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.5 KB, as published. Nobody here has run it

Task Decomposition

The idea

Frontier engineers don't attack a big task as one blob. They split it into blocks small enough to reason about completely and verify individually, then compose the verified blocks. The critical discipline is independent verifiability: a good block has its own checkable success criterion (ideally a test). Decomposition without that just multiplies the surface where errors propagate silently.

When to use

  • The task touches multiple files/functions, has several distinct steps, or is large enough that you can't hold the whole solution in context at once.

When NOT to use

  • A single cohesive change (one function, one small fix). Splitting it adds ceremony, not clarity.
  • A problem whose subproblems are deeply interdependent and can't be checked in isolation — decomposition there mainly adds error-propagation risk. Solve it whole, or spend effort finding a cleaner factoring first.

The procedure

Step 1 — State the end goal and its acceptance check

One sentence: what does "done and correct" look like for the whole task, and how will you know (the top-level test, behavior, or artifact)? If you can't name the check, you don't understand the task yet — use deep-understanding first.

Step 1.5 — Check for a known pipeline shape

If the task has a standard shape, prefer its fixed pipeline over improvised decomposition: bug fix = localize → repair → validate; repo-wide migration = dependency-ordered edits, re-planned as each edit ripples. The strongest agent results on real-repo benchmarks came from simple fixed pipelines beating open-ended agent autonomy — save creative decomposition for tasks that don't fit a known shape. For work that spans sessions, decompose to one item per loop: each session picks exactly one block off the plan.

Step 2 — Split into blocks

Break the task into blocks where each block:

  • has a single clear purpose (one reason to change),
  • exposes a well-defined interface (inputs/outputs, or a function signature / module boundary),
  • has an explicit dependency list (which other blocks must exist first),
  • has its own acceptance check — a test, an assertion, a runnable behavior, or a type that must hold.

Aim for blocks you could hand to a fresh context and have completed correctly. If a block is still too big to verify in one piece, recurse and split it again.

Step 3 — Order by dependency and mark independence

Build the dependency graph. Then label each block:

  • Independent — no unbuilt dependency and no shared mutable file with a sibling. These are candidates for parallel execution.
  • Sequential — depends on another block's output, or edits the same code a sibling edits.

This independence marking is the direct input to parallel-subagents.

Step 4 — Sanity-check the decomposition

  • Does composing all block checks actually satisfy the Step 1 goal? (No gaps, no overlap.)
  • Is every block independently verifiable? If one isn't, either give it a check or merge it back.
  • Are the "independent" blocks truly free of shared state? A hidden shared file makes them sequential.

Step 5 — Emit the plan

Produce a short, ordered list. For each block: id, purpose, interface, dependencies, independence label, and acceptance check. Copy the fill-in template from references/block-plan-template.md.

Output format

Goal: <one sentence> — check: <top-level acceptance>

Blocks:
  B1  <purpose>            iface: <signature/boundary>   deps: []        [independent]  check: <test/behavior>
  B2  <purpose>            iface: <...>                  deps: []        [independent]  check: <...>
  B3  <purpose>            iface: <...>                  deps: [B1,B2]   [sequential]   check: <...>

Parallelizable now: {B1, B2}   (hand to parallel-subagents)
Then: B3

Example

Task: "Add CSV export to the reports page."

Goal: user can download a report as CSV matching the on-screen table — check: e2e test downloads file, asserts headers + 3 rows

Blocks:
  B1  serializer: rows -> CSV string        iface: to_csv(rows) -> str      deps: []       [independent]  check: unit test on known rows/edge cases (commas, quotes, unicode)
  B2  HTTP route GET /reports/:id/export     iface: route returns text/csv   deps: []       [independent]  check: route test asserts content-type + attachment header
  B3  wire serializer into route             iface: route uses to_csv        deps: [B1,B2]  [sequential]   check: route returns real CSV body
  B4  "Export" button on reports page        iface: button hits route        deps: [B2]     [sequential]   check: click triggers download (e2e)

Parallelizable now: {B1, B2}
Then: B3, then B4

B1 and B2 touch different files and have independent tests, so they can run in parallel; B3 composes them and must wait.

Anti-patterns

  • Blocks with no acceptance check ("implement the backend") — untestable, error-prone.
  • Splitting interdependent logic that can only be verified together.
  • Labeling blocks independent when they edit the same file — that's shared state, i.e. sequential.
  • Decomposing a trivial task.

See references/research.md for the evidence.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.