What problem does it solve? Codebases accumulate duplication, dead code, and deeply nested logic over time, making them harder to read and maintain. This Skill performs wrap-up refactoring that cleans up code while guaranteeing existing behavior stays intact. ## Core Features & Use Cases - Test-Pinned Refactoring: Runs the test suite before and after changes to establish a baseline and confirm nothing breaks. - Targeted Cleanup Rules: Removes dead code, extracts logic duplicated 3+ times, and flattens nesting deeper than 3 levels. - Risk Review Agent: Dispatches a secondary refactoring-risk review to verify behavior preservation, dependency impact, test coverage, and rollback risk. - Use Case: After shipping a feature, run this Skill on the touched modules to consolidate repeated blocks and simplify nested conditionals before merging. ## Quick Start Ask the agent to simplify the code in a specific file or directory, for example: simplify the code in src/services/order.ts.