Refactoring Patterns
Applies disciplined, behavior-preserving transformations to eliminate code smells and improve long-term software maintainability.
The Refactoring Patterns skill provides a systematic framework for improving the internal structure of existing code without altering its external behavior. By identifying objective 'code smells'—such as long methods, feature envy, and primitive obsession—this skill guides Claude through a library of proven transformations backed by testing guards. It is specifically designed to help developers reduce technical debt, prepare modules for new features, and move away from risky 'big-bang' rewrites toward a series of small, verified steps that keep codebases readable and extensible.
Características Principales
01404 GitHub stars
02Transformation of complex nested conditionals into polymorphism or guard clauses
03Encapsulation of primitive data types into robust domain-specific objects
04Standardized refactoring recipes including Extract Method and Move Method
05A structural quality scoring system (0-10) to track maintainability progress
06Identification and remediation of objective code smells like Bloaters and Couplers
Casos de Uso
01Restructuring existing logic to make it more extensible before adding new features
02Improving code readability and intent-revealing names during code reviews
03Reducing technical debt in legacy codebases through safe, incremental transformations