/ever-better:ever-betterfrom ever-better
Entry point for diagnosing repository quality gaps and routing to the right ever-better skill. Matches 'lint', 'refactoring', 'technical debt', or similar queries.
Ships in ever-better. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Take a repository that has little or no quality tooling and walk it to a state where the code can
only get better. You supply the judgment; the ever-better CLI supplies the measurements and the
ledger.
ESLint can record every violation that exists today into eslint-suppressions.json. Old code is
grandfathered, new code is held to the whole rule set from the first commit, and the recorded
count can fall but never rise. So the hard part is not "which rules" — it is knowing where you
started, and never letting the number go back up. ever-better is the diagnosis, the installer
and the ledger around that.
| Phase | What happens | Driven by |
|---|---|---|
| P0 diagnose | survey the repo, name every gap | ever-better diagnose |
| P1 bootstrap | install missing tooling, generate configs | ever-better-bootstrap skill |
| P2 freeze | pin today's violations as the ceiling | ever-better-freeze skill |
| P3 drain | fix one rule at a time; the bugs it exposes get tests | ever-better-drain skill |
| P4 tighten | add the next tier of rules, repeat | ever-better-bootstrap + -freeze again |
| P5 split & DRY | remove duplication and dead code | ever-better-dry skill |
P3 and P5 are where the value is. Everything before them installs tooling and records a number; those two bring the number down and take the bugs out with it.
They automate by default. A fix, an extracted function, a new test, a deleted orphan — done, not asked about. Only a refactor that needs the owner's judgment becomes a GitHub issue, and the issue says what the options are and which one you would pick.
Each phase exists because the one before it made it possible: draining before freezing has no ceiling to lower, and refactoring before the types are in place is done blind. Skipping ahead usually means doing the same work twice.
So keep the checklist in front of you rather than in your head — ever-better status and the
worklist in QUALITY.md are it, both derived from the ledger and so incapable of drifting from the
numbers. Re-read it between steps and name the step you are starting. An agent working from memory
does not stop; it quietly merges two steps, drops the verification in the middle, and reports a
phase complete that was never run.
Nothing writes the work log for you. freeze, prune and check record counts; what a count
cost and what it uncovered exists only because somebody wrote it down:
npx ever-better log --kind drained --rule max-depth "12 violations; 1 real bug — unreachable branch, deleted with a test"
npx ever-better log --kind deferred --rule max-lines "router.ts is 1400 lines; splitting it is its own project"
npx ever-better log --kind issue --rule no-floating-promises "opened #42 — swallowed error, product decision"
npx ever-better log --kind note "ESLint 8 -> 9 before freezing, so the ceiling is from the new rule set"
The last twenty entries render as the Work log table in QUALITY.md, and deferred also
becomes a Carried over checklist.
note and deferred exist so a decision is legible later as
a decision, rather than looking like something nobody got to.Two halves, and the split is about what can tell you when something broke:
resolutions pinning them. They cannot change what
ships, only what it says about what ships, and every number recorded later is a number from this
rule set. Freeze against an old ESLint and the upgrade afterwards invalidates the ceiling.Check the CLI is reachable. npx ever-better --help. If npx cannot find it, install it:
npm install -g ever-better, or run it from a clone.
Diagnose, read-only. From the repo root:
npx ever-better diagnose
This writes nothing. Add --write once the user wants QUALITY.md and
.ever-better/state.json created.
Read the gaps out loud, in the user's terms. The CLI prints each gap with the phase that closes it and one line of why it matters. Do not just paste the output — say which gaps are worth closing for this repo, and which are noise. A repo of scripts does not need a three-platform CI matrix; a published npm package does.
Route. Depending on what came back:
CLAUDE.md / AGENTS.md, or a first run on this repo → the ever-better-prepare
skill. Everything after it is done by an agent reading instructions; thin instructions produce
a different answer every session and nobody can tell which was right.ever-better-migrate skill, before any refactoring. Types
are the cheapest rule set there is, the tier that finds the most real bugs cannot run without
them, and a shape chosen before the compiler has spoken is a shape you will choose again.bootstrap phase → the ever-better-bootstrap skillever-better-freeze skillever-better-drain skillever-better-dry skilleslint-suppressions.json gets committed. It is a record, not a hack, and reviewers should
understand that before they see it in a diff.ever-better freeze twice to "fix" a red build. It refuses by design — a second
freeze would grandfather everything added since the first. ever-better prune is how the
ceiling moves, and it can only move down.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub isamu/ever-better --plugin ever-better8 skills in this plugin
/ever-better-bootstrapever-better bootstrapInstall the quality tooling a repository is missing and review the generated config before anything is enforced. Use after `ever-better diagnose` reports gaps in the bootstrap phase, or when the user says "lint を入れて", "eslint 設定して", "set up linting and tests here", "TypeScript にしたい". Ends at the point where the baseline can be frozen — it never freezes./ever-better-drainever-better drainWork a frozen backlog down one rule at a time — fix the violations, extract the pure function that makes a fix testable, write the test, prune the ceiling, commit. Automates everything it can and opens a GitHub issue only for a refactor that genuinely needs the owner's judgment. Use after `ever-better freeze`, or when the user says "warn を減らして", "backlog を潰して", "リファクタリングして", "drain the baseline", "テストを増やして"./ever-better-dryever-better dryTurn duplication that jscpd found into shared functions, and dead code that knip found into deletions. Judges which clones are knowledge worth extracting and which are coincidence to leave alone. Use when the user says "重複を消して", "DRY にして", "コピペを共通化", "dead code を消して", or after a duplication scan reports clones. Runs after the lint backlog is drained./ever-better-freezeever-better freezePin a repository's current lint violations as a ceiling that can only fall, and wire CI to enforce it. Use after `ever-better-bootstrap`, or when the user says "ベースラインを固定して", "freeze the baseline", "既存のエラーは許して新しいのだけ止めたい", "grandfather the existing violations". Also covers reclaiming the ceiling with prune after a fix./ever-better-migrateever-better migrateMove a JavaScript repository to TypeScript in one pass — rename everything, get it compiling, and let the lint fallout land in the ratchet instead of blocking the migration. Use when `diagnose` reports "No TypeScript", or the user says "TypeScript にしたい", "型を入れたい", "migrate this to TypeScript", "ts化して". Not for adding types to a repo that is already TypeScript — that is the drain skill's type tier./ever-better-prepareever-better prepareCheck that the agent instructions this process depends on actually exist before running it — the user's global CLAUDE.md and the repository's own. Adds only the conventions ever-better assumes, and reports which were already there. Use before `ever-better-run` on a repo for the first time, or when the user says "CLAUDE.md を整えて", "規約を追加して", "set up the conventions", or when a run produced inconsistent work across sessions.Other plugins' skills for the same job