ct-adr-recorder
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Lean change discipline for CLEO work: the smallest change that fully solves the task, and a reply a busy owner understands in one read. Use on every coding task (writing, fixing, refactoring, reviewing, choosing dependencies) and when the owner asks for the simplest solution,
$ npx -y skills add kryptobaseddev/cleo --skill ct-lean --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ct-leanContext preview
The summary Claude sees to decide when to auto-load this skill.
Lean change discipline for CLEO work: the smallest change that fully solves the task, and a reply a busy owner understands in one read. Use on every coding task (writing, fixing, refactoring, reviewing, choosing dependencies) and when the owner asks for the simplest solution,
name: ct-lean
description: >-
Lean change discipline for CLEO work: the smallest change that fully solves the task, and
a reply a busy owner understands in one read. Use on every coding task (writing, fixing,
refactoring, reviewing, choosing dependencies) and when the owner asks for the simplest
solution, YAGNI, or complains about over-engineering or bloat; also for a lean code review
("review this", "review my PR") or a whole-repo audit ("audit the repo", "what can I
delete"). Never trades away evidence
gates, package boundaries, validation, data safety or anything the task asked for.
license: MIT
metadata:
version: 1.6.0
tier: core
install: harness
covers:
- packages/core/src/orchestration/lean-change.ts
- packages/cleo/src/cli/commands/lean.ts
- packages/core/src/orchestration/lean-debt.ts
- packages/core/src/orchestration/lean-gain.ts
- packages/core/src/nexus/brief-map.ts
lastReviewed: 2026-10-13
stability: stable
attribution: Adapted from Ponytail 5.1.0 by DietrichGebert (MIT) — https://github.com/DietrichGebert/ponytailThe best code is the code never written. Solve the whole task with the least new code, then end the reply with one or two lines: what you skipped or did not check, and any risk the owner must know.
| Level | What changes | |---|---| | `lite` | Build what was asked. When a smaller option fully works, name it in one line and let the owner pick. | | `full` | The rules below. Default. | | `ultra` | `full`, and question the request first: push back on any part the need does not justify. | | `off` | No lean rules. |
The level resolves from `CLEO_LEAN_LEVEL`, then the session level, then the `lean.level` config key, then `full`. When the owner asks for a level ("go ultra", "lean off"), set it: `cleo lean level ultra --session` for this session, `cleo lean level lite` for the project, `--global` for every project. `cleo lean level` alone shows the level and its source. `cleo lean gain --card` shows the measured benchmark scoreboard: averages, never a number for this repo. Subagents get the same level: CLEO-spawned ones through the spawn prompt, Claude Code Agent-tool ones through the SubagentStart hook (`cleo hook subagent-start`, installed with the heavy-command hook; scope it with `CLEO_LEAN_SUBAGENT_MATCHER`, a regex over the agent type).
Read the task (`cleo show <id> --full`) and the code it touches. List every place the change must reach: callers, tests, fixtures, config, exports, contracts. Run `cleo nexus impact <symbol>` before editing a symbol, and grep for runtime callers static analysis cannot see. Check what the change could break: data it would destroy or expose, callers that stop working, stores it would migrate. That is scope. Extra features are not.
1. **Does it need to exist?** Skip features, options and flexibility nobody asked for, and name them in one line. A vague request gets the smallest version that does the core job. 2. **Already in this codebase?** A helper, accessor, contract or pattern: use it the way the surrounding code does. Search `packages/core/src` and `packages/contracts/src` first; `cleo map --brief` lists what exists per folder (set `lean.map` to get it in `cleo briefing`). 3. **Standard library or platform feature?** Use it, unless the repo has its own (a house chokepoint such as `openDualScopeDb` or `cleo run` beats a raw primitive). 4. **An installed dependency?** Use it. Never add a dependency for a few lines. 5. **One line a reader gets at a glance?** One line. 6. **Otherwise** the minimum code that works, in the package the boundary table assigns.
including the callers, tests, fixtures and docs the change breaks.
nobody asked for. Deletion beats addition. Keep the layers, contracts and conventions the repo already has.
needs decoding is not short.
shared code. No workaround at a call site.
small test. Trivial changes need none. Run single test files through `cleo run --wait`.
`cleo lean debt` lists every one (and flags those with no upgrade trigger); `cleo lean debt --file-tasks --parent <epic>` files each new one as a `lean-debt` task.
privacy (one user's data never reaches another, e.g. many recipients go in BCC, not To), accessibility, and anything the task or owner asked for.
make it, then name it in the reply. Only report a risk you cannot fix in scope.
is not smaller.
Answer first: the first line is the result, answer or decision. Then only the evidence the reader needs (bullets or a small
Every developer who has ever returned to a project after weeks away and found only ruins knows the wound CLEO was built to heal. The agents are powerful. But power without memory is chaos. Brilliance without continuity is waste.
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Builds and publishes artifacts to registries (npm, PyPI, cargo, docker, GitHub releases, generic tarballs) following the…
CLEO task management protocol - session, task, and workflow guidance. Use when managing tasks, sessions, or multi-agent workflows…
Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before…
Runs structured multi-agent voting for decision tasks with confidence scores, conflict detection, and HITL escalation when the…
Guided workflow for multi-agent consensus contributions. Use when user says "/contribution", "contribution protocol", "submit…