Files
claude-config/rules/todo-items.md
T

3.4 KiB

paths
paths
**/todo.md

Todo items (todo.md)

  • todo.md is mandatory in every project, in one shape, which ~/.claude/bin/rank_todo.py checks and ranks; its --help shows a valid file. ## Scoring holds the formula, the bar and the goal weights; ## Items is one table of every item; ## Details holds each item's detail under its ID. Cite an item by its ID. The formula, bar and weights are the project's own to tune.
  • Plan only on the project's rung or above. The project's rung is the cheapest rung of the project's model: the model loop-claude's prompt names as the project's, or else your own. Below it, as loop-claude's prompt says when you are, 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's tagline and detail instead; before your next commit, one subagent on the project's rung files and scores the drafts together and sets their release. A security finding gets that subagent at once. Any rung may remove a finished item's row and detail, and score a delegated task's R + C to pick its subagent's rung.
  • 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, C, A and G 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.
    • A — its value to the audience in README.md → ## Audience.
    • G — its value to the goals it cites in the Goals column; W is the weight of the heaviest of them.
  • 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, question for a question only the human can answer, decision for an item docs/decisions.md cites, 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.
  • Unless the project has a reason to differ, weigh goals by position, the first heaviest. When the weights stop listing the README's goals, rank_todo.py fails and prints those weights.