Code Refactoring Expert
Improves code quality and maintainability by identifying code smells and applying proven structural transformation patterns.
This skill equips Claude with a comprehensive framework for transforming legacy code into clean, readable, and maintainable systems without altering external behavior. It provides specific guidance on detecting common architectural flaws like 'Arrow Code,' primitive obsession, and feature envy, while offering step-by-step techniques for safe resolution. By emphasizing a test-driven approach and incremental changes, the skill ensures that developers can reduce technical debt and complexity with minimal risk, making it an essential companion for feature preparation and code reviews.
主要功能
01101 GitHub stars
02Conversion of magic numbers into descriptive, maintainable constants
03Identification and elimination of 'Code Smells' like long methods and deep nesting
04Safety-first refactoring workflows prioritizing test coverage and small commits
05Logic simplification through guard clauses and polymorphic replacements
06Automated patterns for extracting methods and introducing parameter objects
使用场景
01Cleaning up complex legacy modules before implementing new functional requirements
02Refactoring deeply nested conditional logic to improve readability and testability
03Modernizing codebase architecture by replacing primitive types with domain-specific value objects