todo.md is mandatory in every project, in the shape rank_todo.py --help shows, which ~/.claude/bin/rank_todo.py checks and ranks; its --help shows a valid file. ## Scoring holds the formula and the bar; ## Items is one table of every item; ## Details holds each item's detail under its ID. Cite an item by its ID. The formula and bar are the project's own to tune.
Order items only by score and the Blocked by column. An item's Blocked by cell lists the IDs of the items that must be done before it starts, such as 12, 14; rank_todo.py --help says how it ranks them. No text in todo.md outside the table orders items: where an item must go first, score it so, and say why in its detail.
Plan only on the project's rung or above. loop-claude's prompt tells you when you run below it. Below it, never score or re-score an item, move it between releases, split a milestone into items, delete an item under the bar, or rewrite a filed item's tagline or detail. Draft each new item, and each change to a filed item, instead. Before your next commit, launch one subagent to apply the drafts, score them and set their release. Launch it on the rung CLAUDE.md's delegation rule gives a subagent that files or scores items. Keep the scores and releases it writes. For a security finding, launch it at once. Any rung may remove a finished item's row and detail, and score a delegated task's R + C. A subagent launched for another task leaves todo.md alone.
An item's release allows the bump that semver read strictly asks for. An item that changes what exists needs a major, or before 1.0.0 a minor. One that only adds needs a minor, and a fix a patch.
Score an item when it is filed or edited. Each of R, S and C is a whole number from 1 to 10:
R — the risk that the change creates serious bugs or issues.
S — the size of the change.
C — how hard the change is to get right: novel design, subtle invariants, many interacting parts. A huge rename is low C; a ten-line lock fix can be high. C stays out of the score.
Name in Moves each achieve goal in README.md → ## Goals the item moves, and how far, from 1 to 10, judged by its value to the audience in ## Audience: 1.1 by 8, 1.2 by 5. Name the most specific goal it moves, and a parent goal only for a move none of its sub-goals covers, never beside its own sub-goal. Leave out every maintain goal, which vetoes, except on an item marked defect that restores it: name that goal, and how much of it is broken. rank_todo.py --help says how it weighs each goal.
A table with A, G and Goals in place of Moves is in the old shape. Reshaping it is the project's only work until done, as CLAUDE.md → "Working loop" says, and rank_todo.py says how. Until then, A is the item's value to the audience and G its value to the goals it cites.
Check R, S and C against finished chunks. Guess them, then run ~/.claude/bin/score-outcomes <R> <S> <C> in the project. It lists the finished items guessed nearest, what their chunks measured, and the median outcome at each guessed value. Set each score to the value guessed for the finished items whose outcome matches what you expect of this one. Keep your guess when no listed item resembles the one you are scoring.
Read the places the comprehension seats found hard before filing an item.~/.claude/bin/larv-review places, run in the project, prints them. Where the item's change touches one, its detail says to make that place easier to read.
An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed. The chunk's summary names each, with its score.
The Exempt cell keeps an item whatever its score:security for a security finding, defect for a 🔴 finding or an item that restores a maintain goal the project breaks today, question for a question only the human can answer, which ranks first in its release, decision for an item docs/decisions.md cites, owner for an item the human told you to keep, and, where no other reason fits, principle for a 🟡 finding against a file under ~/.claude/principles/, whose item's detail names that principle. Every item docs/decisions.md cites carries one of these reasons.
A maintain goal vetoes an item that breaks it, whatever the item scores: redesign the item so it holds the goal, or drop it.