Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

ever-better-run

/ever-better-run

Przeprowadza całe porządki w repozytorium bez nadzoru: diagnozę, instalację, zamrożenie i opróżnianie zaległości, zgłaszając sprawy wymagające decyzji.

Repozytorium
ever-better ↗
Licencja
MIT
Ostatnia zmiana repozytorium
24.10.2026

Ocena i bezpieczeństwo

84/ 100Klasa: dobry
Format9 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 24.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przeprowadza całe porządki w repozytorium bez nadzoru: diagnozę, instalację, zamrożenie i opróżnianie zaległości, zgłaszając sprawy wymagające decyzji.

Wyzwalacze z opisu

きれいにして全部やっておいて品質上げといてclean this repo uprun ever-better on this
Oryginalny opis (EN)

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.

Jak działa

  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
Sekcje z nagłówków SKILL.md, w oryginale · 182 linii, 1 564 słów
Podgląd SKILL.md
---
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.

Wersje

W bazie nie ma innych skilli o nazwie ever-better-run.

Migawka bazy z 13.11.2026 · wersja paczki c6557ab818fd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 82ever-better-drain
    Zmniejsza zamrożony backlog regułę po regule: naprawia naruszenia, wyodrębnia funkcje, pisze testy i obniża sufit.
  • 100make-it-better
    Poprawia istniejący projekt webowy w powtarzanych iteracjach, ocenia każdą wersję w skali 100 i otwiera stronę do porównania wersji.
  • 84ever-better
    Diagnozuje, jakich narzędzi brakuje w repozytorium, i kieruje do skilla, który zamyka lukę w jakości kodu.
  • 90repo-propagating-rules
    Przeprowadza propagację reguł repozytorium przy dodaniu, zmianie lub usunięciu, aktualizując pliki zasad, agentów i CI.
  • 100unattended-run
    Prowadzi długą pracę bez nadzoru: cyklicznie się budzi, trzyma dziennik decyzji i zapisuje punkty do wznowienia w git.
  • 100repo-improve
    Ustala z właścicielem, co w repozytorium warto poprawić, a potem wprowadza wszystkie zatwierdzone ulepszenia po kolei.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.