Repository navigation
lean kit
lean-kit shows and changes the LEAN configuration, and holds the shared rules every other lean-* skill loads.
You rarely start it. The other skills read its files on start. You invoke it to answer "which models will LEAN use?" or to change them.
skills/lean-kit/
SKILL.md config keys, plan layout, CLI contract, irreversible steps, the cheap profile, the "when invoked directly" flow
orchestration.md model tiers, worker roles, spawning, escalation, guardrails, spend log
kiss.md engineering rules, document caps, reply shape
Every lean-* skill does two things on start:
- Reads
kiss.mdandorchestration.md. - Reads the config once and resolves style, language, output folder and tiers. It announces nothing unless a tier fell back to
inheritfor a reason you should know.
Details live elsewhere: Orchestrator and Cost Tiers, KISS Style, Artifacts and Layout (the plan/ tree, defined in SKILL.md), CLI Plan Tooling (how skills call check, next, freeze, claim, metrics).
Four files, in order. Later keys win and tables deep-merge:
| # | File | Scope | Touched by installer |
|---|---|---|---|
| 1 | _lean/config.toml |
team answers (committed) | yes |
| 2 | _lean/config.user.toml |
your answers and model tiers (gitignored) | yes |
| 3 | _lean/custom/config.toml |
team overrides | never |
| 4 | _lean/custom/config.user.toml |
personal overrides (gitignored) | never |
Keys the config view cares about: lean.style, lean.prose, orchestration.roles.<role>, orchestration.tiers.<tool>.<tier>, orchestration.escalate. The full key list is on Configuration.
No _lean/ folder (skills linked by hand)? Defaults apply and everything still runs.
| Say | What happens |
|---|---|
| "configure lean", "which models will lean use" | it shows the table below |
| "set model tiers" | it changes the model behind mid or low
|
| "run reviewers on my session model" | it sets orchestration.roles.review = "top"
|
| "change lean style" | it sets lean.style to kiss or standard
|
| "use simple technical English" | it sets lean.prose to ste80 (plain turns it off) |
When invoked directly, lean-kit:
- Resolves the config and lists the role agents that exist, with their
model:(Codex:modelplusmodel_reasoning_effort). AGY shows presets, not model ids. - Shows one table: role, tier, model, source. The source is a
_lean/config file, a custom override, a role agent, detection, orinherit, with the reason. - Flags any role agent whose model disagrees with the config. That agent is stale.
- Asks what to change, in the KISS reply shape.
- Writes the change (next section).
Illustrative reply:
**lean-kit · config** — claude-code · style kiss
| role | tier | model | source |
|---|---|---|---|
| scout | low | haiku | _lean/config.user.toml |
| research, implement, test, check | mid | sonnet | _lean/config.user.toml |
| review | top | inherit | _lean/custom/config.toml |
Decide:
1. Change anything? — (a) no ← recommended (b) models (c) style
Next: answer like `1a`.
| Kind of change | File it writes |
|---|---|
| personal model choices | _lean/custom/config.user.toml |
| team choices (style, roles) | _lean/custom/config.toml |
It never edits the installer-managed files. Afterwards it tells you to run:
npx lean-method install --action quick-update # regenerates the role agents, keeps all answersExamples of what lands in the custom files:
# _lean/custom/config.toml (team)
[lean]
style = "standard"
[orchestration.roles]
review = "top" # reviewers on the session model# _lean/custom/config.user.toml (personal)
[orchestration.tiers.claude-code]
low = "sonnet" # scouts on Sonnet instead of HaikuTo re-scout the machine for agents and models without changing anything, run npx lean-method scout. Run npx lean-method install for the guided choice. Both are covered on CLI Installer.
- Config layering as above, so every skill resolves the same values.
-
Layout:
docs/is input only (LEAN never writes it); everything LEAN writes goes underplan/. Both names are thecore.input_folderandcore.output_folderkeys. -
Mechanics are scripts, not tokens: skills run the plan CLI (
node _lean/bin/lean.js <cmd>) instead of working things out by reading.✖errors must be fixed or put to you;▲warnings are reported, not blocking. - Guard hook: in Claude Code and Codex, a hook can refuse edits to frozen intent. See Frozen Intent and Guards.
- Irreversible steps: one definition for every skill. A revert of the code would not undo them: a destructive or data-rewriting migration, data deletion, an external side effect, a deploy trigger. An additive migration with a working downgrade is not one.
- Orchestrator and Cost Tiers: what the tiers and roles in the table mean
-
KISS Style: the
lean.stylesetting and the reply shape - Configuration: every key and layer
-
CLI Installer:
install,scout,status
LEAN 0.10.2 · Repository