nuke-sweep
Installation
SKILL.md
Nuke Sweep
A small helper: 0 agents, in-session, no artifacts. nuke-lean's self-sweep unbundled — runnable over any diff at any moment, not just after a lean-chartered task. Scope is the changed lines and what they touch, never the whole repo: repo-wide hunting is nuke-audit's job; the sweep judges only what this session (or a cheaper model before it) just added.
The sweep list — delete what fails, line by line
Walk the diff (git diff, re-read from disk — never from memory) hunting:
- Narrating comments — restating the code below them, or talking to the reviewer ("added X to fix Y"). A comment survives only by stating a constraint the code cannot.
- Defensive noise — null checks on values just produced, try/catch with no recovery action, re-validation of already-validated data (nuke-lean rules 2–4 applied to the diff).
- Speculative additions — options with one value, helpers with one caller, exports nothing imports (grep to confirm before deleting).
- Debug leftovers — print/console/log lines added for this task, probes, temp files, commented-out attempts.
- AI-voice naming — enhanced/robust/improved/comprehensive/graceful identifiers renamed to what the thing does.
- Type escapes introduced by the diff — the language's vocabulary per references/stack-adapters.md table B; fix the type or justify the escape in one comment, never leave it bare.
Deletion discipline: grep before deleting anything referenced elsewhere; behavior is never changed — a sweep edit that would alter behavior is out of scope and reported instead.