What problem does it solve? Codebases accumulate unclear names, dead code, duplication, and convoluted logic that slow down development. This Skill restructures code safely in small, verifiable steps without changing external behavior, so improvements never introduce regressions. ## Core Features & Use Cases - Behavior-Preserving Refactoring: Renames unclear symbols, extracts helper functions, removes dead code, and simplifies control flow while keeping functionality identical. - Test-First Safety: Checks existing test coverage and adds tests for risky behavior before making changes, then re-runs verification afterward. - Scoped Execution: Focuses on requested files or symbols, avoids speculative abstractions and broad rewrites, and reports out-of-scope improvements instead of making them. - Use Case: Ask it to clean up a tangled utility module, and it will inspect call sites, plan small steps, simplify the logic, run the test suite, and summarize exactly what changed and what stayed the same. ## Quick Start Refactor the payment processing module to remove duplication and simplify the conditionals without changing its public interface.