This gives Claude structured patterns for refactoring code safely without changing behavior. It covers identifying common smells like long methods and deeply nested conditionals, then walks through techniques like extract method, replace conditional with polymorphism, and introduce parameter objects. The workflow is sensible: ensure test coverage first, make small changes, run tests after each step. I like that it's opinionated about when not to refactor, especially the "without tests" and "code that will be replaced soon" rules. Useful if you're working with legacy code or want Claude to clean things up during feature work without breaking stuff.
npx skills add https://github.com/skillcreatorai/ai-agent-skills --skill code-refactoring