Skip to content
Skills Library
Programming · Automation

ever-better-run

/ever-better-run

Run the whole ever-better process on a repository unattended — diagnose, install, freeze, then drain the backlog rule by rule until it is empty, then duplication and dead code. Opens issues for the decisions it must not make alone and keeps going. Use when the user hands over a repo with "きれいにして", "全部やっておいて", "品質上げといて", "clean this repo up", "run ever-better on this", or asks for the process to run without supervision.

Author
isamu ↗
Repository
ever-better ↗
Licence
MIT
Last repository change
24.10.2026

Assessment and security

84/ 100Class: good
Format9 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Run the whole ever-better process on a repository unattended — diagnose, install, freeze, then drain the backlog rule by rule until it is empty, then duplication and dead code. Opens issues for the decisions it must not make alone and keeps going. Use when the user hands over a repo with "きれいにして", "全部やっておいて", "品質上げといて", "clean this repo up", "run ever-better on this", or asks for the process to run without supervision.

Triggers from the description

きれいにして全部やっておいて品質上げといてclean this repo uprun ever-better on this
Original author description

Run the whole ever-better process on a repository unattended — diagnose, install, freeze, then drain the backlog rule by rule until it is empty, then duplication and dead code. Opens issues for the decisions it must not make alone and keeps going. Use when the user hands over a repo with "きれいにして", "全部やっておいて", "品質上げといて", "clean this repo up", "run ever-better on this", or asks for the process to run without supervision.

How it works

  1. The checklist and the log are in the repo, not in your head
  2. Coming back to a repository you have not touched in a while
  3. Commit cadence, while working in someone else's repository
  4. Before anything
  5. The run
  6. The stop list
  7. Reporting back
  8. What this never does
Original SKILL.md headings · 182 lines, 1,564 words
SKILL.md preview
---
description: Run the whole ever-better process on a repository unattended — diagnose, install, freeze, then drain the backlog rule by rule until it is empty, then duplication and dead code. Opens issues for the decisions it must not make alone and keeps going. Use when the user hands over a repo with "きれいにして", "全部やっておいて", "品質上げといて", "clean this repo up", "run ever-better on this", or asks for the process to run without supervision.
---

# ever-better run

The unattended mode. The user has handed you a repository and expects to come back to pull
requests, not questions.

**Default to acting.** Everything in this process that can be decided from the code, you decide.
The list of things that stop and ask is short and is written down below — if something is not on
it, do it.

## The checklist and the log are in the repo, not in your head

`QUALITY.md` carries three sections this mode depends on, all rendered from
`.ever-better/state.json`:

- **Worklist** — the phases as checkboxes, with the smallest remaining rules as sub-items. Work it
  top to bottom. It is derived from the numbers beside it, so it cannot drift from them.
- **Carried over** — refactors deliberately not made, each stamped with the commit it was seen at.
- **Work log** — what was drained, deferred, or turned into an issue, and when.

Record as you go, not at the end:

```bash
npx ever-better log --kind drained  --rule max-depth "6 violations, 1 real bug (unreachable branch)"
npx ever-better log --kind deferred --rule max-lines "server/router.ts is 1400 lines; splitting 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 -> 10 before freezing; the ceiling is from the new rule set"
```

The commit stamp is the point. A note saying "router.ts needs splitting" is useless six months and
four hundred commits later unless a reader can see when it was true.

**Nothing writes these for you, and in this mode nobody else can.** The counts are recorded by
`freeze` and `prune`; every reason behind them exists only if you write it. One entry per commit as
you make it — a batch at the end stamps them all with the wrong commit — and one for each decision
as well as each fix, including the tier you left off and the clone you chose not to extract. This
table is the first thing the owner reads when they come back to a stack of pull requests, so it is
worth writing as if it were the only thing they read.

## Coming back to a repository you have not touched in a while

**Re-diagnose first.** `ever-better status` prints a `STALE` line, and `QUALITY.md` opens with a
warning, when the diagnosis is more than thirty days old, more than fifty commits behind, or was
taken on a commit no longer in this history (a rebase or force-push). All three mean the same
thing: file names and counts in the ledger may describe code that has moved.

```bash
npx ever-better diagnose --write
```

The ratchet itself never goes stale — `eslint-suppressions.json` is maintained by ESLint against
the current tree. It is the *diagnosis* that ages: gap list, file sizes, and every deferred note.

Re-read **Carried over** after re-diagnosing and drop the entries that no longer describe anything.
A stale checklist that nobody prunes is how the list stops being read at all.

## Commit cadence, while working in someone else's repository

**Small and often.** One rule per commit during a drain; a config change, its verification and the
fixes it prompts are three commits, not one. A twenty-file commit mixing a lint fix, a bug fix and a
refactor cannot be reviewed or reverted, and an unattended run produces exactly that unless the
cadence is deliberate.

The commit message says which rule, how many violations, and — separately — any behaviour that
changed. A reviewer has to be able to tell "renamed a variable" from "this was returning undefined".

An edit that re-indents a block is itself two commits — the change at the old indentation, then the
reflow — or the three lines you wrote disappear into a whole-block diff. See `ever-better-drain`,
step 8.

Before every push, run what CI runs: the whole suite, with CI's flags, and a read of the diff for the
platforms you cannot run here. A run opens many PRs, and each one that goes red costs a fix, a push
and another review. See `ever-better-drain`, step 8.

## Before anything

0. **Run `ever-better-prepare`** if this is a first run here, or if `diagnose` reports no
   `CLAUDE.md` / `AGENTS.md`. Everything below is done by an agent reading instructions.

1. **Confirm the working tree is clean.** `git status --porcelain`. If it is not, stop and say so:
   this process installs packages and rewrites files, and untangling that from someone's own work
   afterwards is not worth the risk.
2. **Confirm you may open pull requests**, and on which base branch. `gh repo view --json defaultBranchRef`.
3. **Say how long this will take and what will arrive.** A first run on an untouched repository
   produces: one formatting PR, one bootstrap PR, one freeze PR, then one PR per rule. That is not
   two or three pull requests, and the user should know before you start.

## The run

### Phase 0-2: get to a frozen baseline

```bash
npx ever-better diagnose
```

Read it, then follow **`ever-better-bootstrap`** and **`ever-better-freeze`**. Four separate pull
requests, in this order, each merged before the next:

1. **`chore: raise the toolchain`** — linter, formatter, type checker, test runner, build tool to
   current, majors included (bootstrap step 3). Skip it only if they already are: every number the
   next three PRs record is a number from this rule set, and upgrading afterwards invalidates it.
2. **`chore: format`** — mechanical, whole-repo, unreviewable if mixed with anything else.
3. **`chore: quality tooling`** — the bootstrap output: ESLint config, scripts, `.gitattributes`,
   workflows.
4. **`chore: freeze the baseline`** — `eslint-suppressions.json`, `.ever-better/state.json`,
   `QUALITY.md`.

After (4), CI rejects any new violation. Everything from here is optional cleanup that can stop at
any point without leaving the repo worse.

### Phase 3: drain, until it is empty

Loop with **`ever-better-drain`**. One rule per pull request, smallest backlog first:

```
npx ever-better status      -> smallest remaining rule
   fix it, extract the pure function, write the test
npx ever-better prune
npx ever-better check
   commit, PR, wait for CI, merge
repeat
```

Keep going while the backlog is non-empty and nothing on the stop list below has come up. Report
progress as you go — the ceiling before and after each PR is the number that matters.

### Phase 4: tighten

When the backlog is empty, add the next tier and freeze again. Type-aware rules first if the repo
is TypeScript and they were off, then `eslint-plugin-security` if it touches the filesystem, child
processes or user input. Each tier is a bootstrap + freeze pair, and then drain again.

This is also where the **runtime** dependency majors belong — the ones held back at phase 0 because
nothing could tell you they broke. P3 has since built the suite that can. One dependency per pull
request, and a package that turns out to be unmaintained gets replaced or reimplemented rather than
pinned; see "Dependencies" in the `ever-better` entry skill.

### Phase 5: duplication and dead code

**`ever-better-dry`**. These are report-only and never gate, so this phase is pure cleanup.

## The stop list

Open a GitHub issue, then **continue with the next item** — do not wait:

| Situation | Why it is not yours |
| --- | --- |
| The fix changes behaviour ambiguously | Should this throw, retry or log? That is a product decision. |
| The fix changes a public API | A published signature, a wire format, a config key in someone's file. |
| A refactor is a project in itself | Splitting a 2000-line file; a module that wants redesigning rather than editing. |
| A rule looks wrong for this repo | The answer may be to configure the rule, not change the code. |
| CI fails for a reason unrelated to your change | Flaky test, expired secret, broken runner. Report; do not "fix" it by disabling. |

Each issue: the rule, the file and line, the two or three options, and which one you would pick
with the reason. Then move on.

**Stop the whole run** — and ask — only for these:

- The working tree was dirty, or the repo has uncommitted work you did not create.
- `freeze` reports violations it could not suppress. That is a broken config, and every later PR
  would be red.
- Two consecutive drain PRs fail CI for reasons you cannot diagnose.
- The user's own CI was already failing before you started.

## Reporting back

When you stop — finished or blocked — say:

- the ceiling at the start and now, and how many rules reached zero
- every behaviour change you made, with the test that pins it
- every issue you opened and why it was not yours to decide
- what is left, and what running again would do

## What this never does

- Merges to the default branch without CI green.
- Runs `freeze` a second time to make a red build green. It refuses; `--force` is not the answer.
- Weakens a rule, adds an ignore comment, or widens an ignore glob to get past a failure. If a rule
  is genuinely wrong for the repo, that is an issue, not an edit.
- Rewrites an ESLint config the repo already had. The exceptions in it have reasons that are not in
  the file.

Versions

The database has no other skills named ever-better-run.

Database snapshot: 13.11.2026 · package version c6557ab818fd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 82ever-better-drain
    Work 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.…
  • 100make-it-better
    Improves an existing web project over repeated iterations, scores every version out of 100 with an independent judge, and opens a review page to compare them all. Use for 'make it better', 'improve this site', 'run a make it better loop'.
  • 84ever-better
    Entry point for making a repository's quality only go up. Diagnoses what tooling is missing, explains what each gap costs, and routes to the skill that closes it. Use when the user says "この repo の品質を上げたい", "lint を入れたい", "リファクタリングを始めたい", "technical debt", "where do I start with…
  • 90repo-propagating-rules
    Run the rules-propagation workflow whenever a repository rule is being created, updated, superseded, or deleted. TRIGGERS on "add rule", "new rule", "update the rule", "change the convention", "adjust the rule", "delete that rule", "make it a rule that…", "from now on we…
  • 100unattended-run
    Run long work with nobody watching, using Loop to wake, a decision log, and wip: commits with a resume note so the run can stop safely. Use when the user hands off a task and steps away; not for multi-feature orchestration (use Missions) or a scheduled job (use Automations).
  • 100repo-improve
    Improve an existing repository as a whole. Find out what "better" means for this particular repository from its goals and evidence, agree on the full list with the owner once, then apply every improvement in order. It runs the standard's check and move plan, audits structure,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.