agentleFS
AdrianParedezAdrianParedez/capability-fabric/skills/decomposing-tasks/SKILL.md

decomposing-tasks

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Turns a goal into a verifiable, risk-ordered plan with explicit success criteria before any work starts. Use at the start of any multi-step, ambiguous, or long-horizon task. Hands off to sustained-execution for long runs and verifying-reasoning to validate the plan.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Define DONE first: If you can't state how you'll know the task succeeded, you're not ready to start.

    line 38
  2. Distinctive:

    Order to de-risk, not to feel productive: Do the scary/uncertain part early while it's cheap to change course, not last when you're …

    line 45
  3. Distinctive:

    If the runtime has a "plan mode," use this method to *fill* it, not replace it.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Decomposing tasks

A plan is not a list of steps, it is a set of success criteria, an ordering that reduces risk early, and a marker of what is reversible vs one-way. Plan before you act; a bad plan compounds over a long run.

Use this when

  • The task has ≥3 non-trivial steps, is ambiguous, or will run long.
  • The cost of going down the wrong path is high.
  • Skip for genuinely trivial single-step tasks, planning them wastes tokens.

The method

- [ ] 1 RESTATE   the goal in one sentence + define DONE (success criteria, testable)
- [ ] 2 UNKNOWNS  list what you don't know; resolve blocking unknowns FIRST
- [ ] 3 DECOMPOSE break into steps, each with a checkable outcome
- [ ] 4 ORDER     sequence to surface risk/uncertainty early (de-risk before invest)
- [ ] 5 CLASSIFY  mark each step reversible (safe to try) or one-way (verify before doing)
- [ ] 6 VALIDATE  sanity-check the plan (verifying-reasoning) before executing
- [ ] 7 HANDOFF   short task -> execute now; long task -> sustained-execution ledger

Principles

  1. Define DONE first. If you can't state how you'll know the task succeeded, you're not ready to start. Success criteria are testable, not aspirational.
  2. Unknowns before effort. The biggest risk is a wrong assumption. Front-load the steps that resolve unknowns (a quick spike, a doc check) before steps that build on them. Cheap experiments that kill bad plans early are the highest-value steps.
  3. Each step has an outcome you can check. "Work on auth" is not a step. "Auth: login endpoint returns a valid JWT for a known user" is.
  4. Order to de-risk, not to feel productive. Do the scary/uncertain part early while it's cheap to change course, not last when you're invested.
  5. Reversible vs one-way doors. Reversible steps: just try them. One-way steps (delete data, publish, send, migrate, overwrite): plan, verify, and confirm before doing.
  6. Right altitude. 3-9 steps for most tasks. If you have 30, group into phases. If you have 1, you didn't need this skill.
  7. Plans are living. Re-plan when an unknown resolves differently than assumed; don't march a dead plan to completion.

Output: the plan block

GOAL: <one sentence>
DONE WHEN:
  - <testable criterion 1>
  - <testable criterion 2>
UNKNOWNS (resolve blocking ones first):
  - <unknown> -> resolve by <step #>
PLAN:
  1. <step>, outcome: <checkable>, [reversible|one-way], de-risks: <unknown?>
  2. ...
RISKS: <top 1-2 things that could go wrong> -> <mitigation/early check>

Anti-patterns

  • Starting to code/act before DONE is defined.
  • Ordering by "easiest first" instead of "riskiest-cheap-to-test first."
  • Steps with no checkable outcome (can't tell if they're done).
  • Treating a one-way door as reversible (irreversible action without verification).
  • A 20-step flat plan with no phases (un-trackable; group it).

Runtime adaptation

  • Minimum: none, this is pure method. For large plans, write the plan block to a file so it survives compaction (see sustained-execution).
  • If the runtime has a "plan mode," use this method to fill it, not replace it.

Files

  • references.md, risk-ordering, reversible/one-way doctrine, estimation.
  • examples.md, worked plans, good vs bad.
  • templates/plan.md, the plan block to fill.
  • checklists/plan-quality.md, gate before executing.
  • benchmarks/, rework-rate and plan-validity method.

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.