agentleFS
niksavisniksavis/basicly/.agents/skills/decompose-plan/SKILL.md

decompose-plan

Skill0 starsChanged 57 days agoMITView on GitHub

Cuts work into children the plan gate accepts: EARS criteria, scope globs, budgets, a demo command. Use at DECOMPOSE or when a plan gate refuses a child.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    If a glob matches more than a few files, say why in the plan.

    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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Decompose a plan the gate accepts

This skill cuts a unit into children that the plan gate accepts before BUILD. A refusal here is cheap. The same defect found in BUILD costs a lane's full budget.

Rules

  • Slice vertically. Each child must do something that a consumer can see.
  • Give every child a runnable demonstration. A child with no demonstration was sliced horizontally.
  • Scope the file that produces the value, not the file that shows it. A wrong scope bounces at the landing gate.
  • Declare the true scope, even when the band then prices it higher. An under-declared scope collides at landing.
  • Name the child's own file, never a directory glob. The band prices every file that a glob matches.
  • Flatten, never nest. A child that needs children was cut wrong.

The plan fields

Each child in plan.toml is {title, acceptance, scope, depends_on, budget_tokens, integrity, demonstration}. The gate names each missing field.

FieldRefused whenNotes
acceptanceabsentThe gate checks only presence. Write each criterion in EARS form (trigger, state, condition, optional feature, ubiquitous), so a check can be derived from it.
scopeabsentOverlapping scopes serialize. Two children that write one path collide at the merge queue.
depends_onabsent, or cyclicLists sibling titles. An empty list is a declaration. An absent key is not. Each edge becomes a blocks dependency. A cycle is refused with its members, before any issue is created.
budget_tokensabsentWhat the child is worth to spend. The band prices the lane before it runs.
integrityabsentL1 docs or tests only, L2 internal code, L3 a consumer surface. It selects the gates and the rework allowance.
demonstrationabsent, or no backticked runnable spanA command, a request or a test through the consumer surface.
sharedoptionalLiteral paths from scope that the child only appends its own entry to (a manifest, a lockfile). Without it, that path serializes every child that declares it.

Preview the grouping, then create the children:

basicly decompose <feature> --plan plan.toml --dry-run
basicly decompose <feature> --plan plan.toml

The dry run names each path that collapsed the grouping.

Slice vertically

The horizontal cut puts all schema in one child, all tests in another and all CLI wiring in a third. It gives the cleanest scopes, because scope overlap follows file adjacency. But no child in it does anything a consumer can see, so verify has nothing to check. Cut along the change-shape artifact instead. It comes from the call graph, so one slice can cross directories.

Find the producer

A scope says where a wrong value is produced. The file that shows the value is usually a different module. Find the producer before dispatch:

rg -n '<the literal the defect prints>' <source-dir>
rg -n 'def <the function whose result is wrong>' <source-dir>

The file that emits the value is the scope. A renderer usually sits one call above the builder that owns the fact. Then ask: does this value have more than one consumer, or reach more than one surface? A projected artifact often has several outputs. basicly skills-build writes .claude/skills and .agents/skills, and a scope that names only one fails the projection gate.

Name the child's own file

Name the file that the child creates:

OutputScope entry
changelog fragmentchangelog.d/<epic-id>.<n>.<category>.md
config fragmentbasicly.d/<epic-id>.<n>.toml
projected skill.claude/skills/<name>/SKILL.md

<n> is the child's position in the plan, because children get the ids <epic-id>.1, <epic-id>.2, and so on. A glob such as changelog.d/*.md or .claude/skills/** makes the band read every match into every lane. If a glob matches more than a few files, say why in the plan.

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.