code-compaction
Compacting Bloated Code
This skill is the process for detecting diff bloat and orchestrating
cross-model adversarial reviewers. The substantive style rules it enforces
— what counts as a bloated comment, test bloat, an oversized file, an
unjustified helper, "Not paid by LOC", phase tags, commit/PR splitting —
live in .github/instructions/NoBloat.instructions.md; do not restate them
here.
Mode Selector
Route on the diff, not the user's words. The trigger vocabulary ("slop",
"embarrassing", "WTF", "bullshit", "not paid by LOC") only tells you the skill
applies — never which mode. So: run Pre-flight Measure (below) first;
if no diff/PR/branch was supplied, get one (git diff the branch vs
git merge-base main HEAD) or ask. Then run every row whose signal the
diff actually shows, in table order. Chain-out rows fire on their own.