This is a structured prompt for turning messy code into cleaner code without changing what it does. It forces you to pick one refactor mode (local cleanup, freeze-first for fragile legacy code, repeated migration, or diff reshaping) and make your behavior guardrail explicit before you start editing. The process is built around small, reviewable slices and honest routing to other skills when the real job is debugging, code review, testing strategy, or performance work. It's opinionated about separating structural cleanup from semantic changes and not shipping giant rewrites. If you've ever had a cleanup PR explode in review or touched legacy code that broke in weird ways, this gives you a repeatable checklist to avoid that.
npx skills add https://github.com/akillness/oh-my-skills --skill code-refactoring