← ClaudeAtlas

refit-codelisted

Refit a codebase: find where it does one thing more than one way, where a module is shallow or leaks, where code is bigger than its job, dead or does work it does not need, where files and directories are not where a reader looks, and sweep junk files. Use when asked to improve, review, clean up, simplify, deslop or tidy code, find duplication, drift, dead code or architecture problems, reorganize or restructure files and directories, before you add a function, module, parser, constant, route or doc section (check), or when the refit-code Stop hook blocks.
crsmithdev/aleph · ★ 0 · Data & Documents · score 62
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