关于
The Code Refactoring skill provides Claude with a comprehensive framework for cleaning up existing source code without altering its external behavior. It enables the AI to systematically identify technical debt such as long methods, deeply nested conditionals, and primitive obsession, offering structured solutions like method extraction, polymorphism, and the introduction of parameter objects. By adhering to a safe, test-driven refactoring process, this skill helps developers transform legacy spaghetti code into modular, production-grade logic that is easier to test and extend.