What problem does it solve?
This Skill performs a focused cleanup pass on recently changed code to remove dead code, redundant abstractions, duplication, and low-value indirection without altering public behavior or test expectations. It is designed to keep diffs small, reduce complexity, and improve clarity immediately after implementing a feature or fix.
Core Features & Use Cases
- Targeted blast radius: Operates only on staged changes, the last commit, or files explicitly passed by the caller to avoid wandering through unrelated code.
- Diff-first review: Reads diffs before surrounding context to stay focused on only what changed.
- Eight simplification lenses: Checks for dead code, redundant wrappers, duplication, over-parameterization, speculative generality, deep nesting, comment-as-apology, and boolean chains.
- Safe application: Proposes a diff-based plan, applies edits, then runs type checks, linters, and tests scoped to the changes to ensure behavior is unchanged.
Quick Start
Run the simplify skill on your staged changes to remove dead code and simplify recent edits.