debloatlisted
Install: claude install-skill kadowcreates/kadow-mode
# Debloat
Lines of code are the proxy. The goal is a system that is simpler and still correct. Every
deletion is a claim: the system is better or equal, and still works. Adapted from goal-sloc
(MIT, see NOTICE); the principles it leans on are already skills and are linked, not copied:
**principle-subtract-before-you-add**, **principle-model-the-domain**,
**principle-laziness-protocol**, **principle-prove-it-works**.
## 0. Preflight: nothing is cut before every line here is answered
- **Where:** a worktree on a branch named for the session, never the canonical tree. One
commit per verified milestone, with a pathspec. Push through the pre-push gates; a deploy
stays the owner's.
- **Metric:** one counter, written down and used for both ends: non-blank lines that are not
comment-only, per area (server, scripts, web, tests). Measuring the end with a different
filter than the start is a fake delta.
- **Feedback loop:** full suite green at baseline (name the known failures), typecheck, and a
way to run the real thing. No loop on an area means no cuts in it.
- **Target:** the owner's number, or "until the structural well is dry". Do the floor
arithmetic before promising a number.
- **Tools** go in a throwaway venv or `npx`, never the project: vulture, pylint
(duplicate-code), radon (complexity) for Python; knip for TS/JS.
## 1. Order of work, safest first
1. **Dead code.** A tool hit is a candidate; `git grep -w` across the repo (code, tests, web,
docs excluded)