refit-codelisted
Install: claude install-skill crsmithdev/aleph
Takes in Matt Pocock's `improve-codebase-architecture` (github.com/mattpocock/skills @4ae2317), aleph's `tidy`
and `one-way`. Vocabulary: call the Skill tool with `aleph:codebase-design` and use its words (module,
interface, depth, seam, adapter, leverage, locality) exactly.
# Refit code
One skill for the quality of a codebase. Seven **lenses** each ask one question of the code; the modes below
decide where and how they run. Read `PRINCIPLES.md`, `GLOSSARY.md`, `GLOSSARY-MAP.md`, `CONTEXT.md`, `docs/naming.md` and `docs/adr/` first when
they exist: they name owners and settled decisions. Read `.refit.json` at the repo root when it exists: its
`accepted` list holds what the repo keeps on purpose, each `{"concept", "copies": ["file[:line]", ...],
"reason"}`, and an accepted candidate is reported as accepted, not as a finding.
## Lenses
| Lens | Asks | File |
|---|---|---|
| **one-way** | Is one concept done in more than one place? | [ONE-WAY.md](ONE-WAY.md) |
| **depth** | Does this module earn its interface? | [DEPTH.md](DEPTH.md) |
| **seams** | Does code reach past a module's interface? | [SEAMS.md](SEAMS.md) |
| **slop** | Is this code bigger than its job? | [SLOP.md](SLOP.md) |
| **dead** | Does this code run at all, and does anything read what it writes? | [DEAD.md](DEAD.md) |
| **waste** | Does this code do work it does not need? | [WASTE.md](WASTE.md) |
| **layout** | Are files and directories where a reader looks for them? | [LAYOUT.md](LAYOUT.md) |
Where they mee