What problem does it solve?
Pull request diffs often accumulate bloat: copy-pasted tests, duplicated helpers, unnecessary planning files, bloated comments, and reinvented logic that should have reused existing code. This Skill provides a structured process to detect that bloat and compact the diff without losing behavioral coverage.
Core Features & Use Cases
- Mode-based routing: Measures the diff (LOC, comment ratio, new helper count) and routes to Garbage Hunt (deletion-only), Test Compaction (parametrization and setup hoisting), or Logic Compaction (reuse-driven rewriting).
- Cross-model adversarial review: Dispatches 3-5 parallel reviewers across different models and angles, then runs adversarial attack rounds and real prototype branches before picking a winning proposal.
- Reuse-first compaction: A dedicated reuse-hunt subagent finds existing helpers, visitors, and smart constructors the patch should have used instead of adding new code.
- Use Case: Before opening a PR whose diff added 150+ lines for one bugfix, run this Skill to identify duplicated logic, delete scaffolding files, and shrink the diff while keeping all tests green.
Quick Start
Review my current branch diff against main for bloat and compact it using the code-compaction process.