← ClaudeAtlas

addlightnesslisted

Simplify, then add lightness. Analyzes one or more source files for AI-generated 'code fat', removes it while preserving behavior, verifies the change passes the equivalence gate (a structural signal, not a behavioral proof), then benchmarks the speedup. Multi-pass: measure -> trim -> verify -> benchmark. Use when the user says "add lightness", "trim this code", "remove the fat", "slim down", "make this leaner/faster", "simplify and benchmark", or invokes /addlightness. Also auto-triggers when the user wants sloppy first-pass AI code made trim and fast. Applies edits; for a read-only weight report with no changes use /addlightness-review.
88plug/addlightness · ★ 0 · AI & Automation · score 60
Install: claude install-skill 88plug/addlightness
# addlightness "Simplify, then add lightness." — Colin Chapman, Lotus. This skill owns the full trim-and-benchmark loop: it measures code weight, removes fat without changing behavior, verifies the change passes the equivalence gate (a change-magnitude/structural signal, not a behavioral proof), and benchmarks the result. Lower weight and a statistically significant speedup are the only success conditions. The user's invocation carries the target file path(s) as trailing text (e.g. `/addlightness src/parser.js` or "add lightness to lib/foo.py and lib/bar.py"). Read those paths from the request and treat them as the targets. If no path is given, ask which file(s) to trim — do not guess. ## Scope - **This skill (`/addlightness`)** owns the WHOLE pipeline: measure -> trim -> verify -> benchmark. It both reports and edits. - **`/addlightness-review`** is READ-ONLY. If the user only wants a weight report or a list of fat candidates with no edits, route there instead and stop. - **`/addlightness-bench`** is BENCHMARK-ONLY. If the user already has a before/after pair and only wants the timing comparison, route there instead and stop. When in doubt about whether the user wants edits, ask once. Default to the full pipeline only when the request clearly asks to trim, slim, lighten, or speed up the code. ## Pipeline Run these steps in order, per target file. Paths below use `${CLAUDE_PLUGIN_ROOT}`, which Claude Code expands to this plugin's install directory. 1. **Measure