What problem does it solve?
This Skill helps reduce over-engineered, duplicated, or bloated code without changing product behavior. It is designed for safe refactoring work where the goal is to simplify structure, remove unnecessary abstractions, and improve maintainability while proving that existing behavior still holds through unchanged tests.
Core Features & Use Cases
- Behavior-preserving simplification: Inline single-use helpers, remove pass-through wrappers, delete dead flags, and tighten structural guarantees instead of piling on defensive runtime checks.
- Duplication reduction: Detect repeated logic across files and centralize it once it appears in 3 or more places, with stricter treatment for sensitive areas like auth, billing, credits, URL validation, redirects, SSRF, cookies, logging, retries, and external APIs.
- Safe refactor workflow: Enforces a green-test baseline, uses deletion-test and Chesterton's Fence reasoning before removing abstractions, and stops when a change would alter assertions or behavior.
- Use cases: Apply it when a reviewer flags over-engineering, when a large file has grown messy over time, when a wrapper has only one caller, or when a cleanup is needed before implementing a harder feature change.
Quick Start
Ask the AI to simplify a specific tested file or module by removing single-use abstractions and duplication while keeping the same tests green before and after.