← ClaudeAtlas

refactorlisted

Refactor code following principles, patterns, and best practices from respected literature
tstapler/dotfiles · ★ 8 · Code & Development · score 53
Install: claude install-skill tstapler/dotfiles
# Code Refactoring Guide I'll help you refactor code by applying established software engineering principles, design patterns, and best practices from highly regarded literature and academic research. The refactoring will adapt the code to follow idioms and conventions specific to $1 or the detected language if no target language is specified. ## Refactoring Process 1. **Analysis Phase** - Identify code smells using Martin Fowler's classification - Assess current design patterns and architectural approach - Evaluate complexity using metrics (cyclomatic complexity, coupling, cohesion) - Detect potential technical debt indicators 2. **Planning Phase** - Select appropriate refactoring techniques from Fowler's catalog - Identify applicable design patterns from GoF or modern equivalents - Consider enterprise patterns and domain-driven design principles where appropriate - Determine language-specific idioms and best practices to apply - Plan refactoring sequence to maintain behavior while transforming structure 3. **Implementation Phase** - Apply refactoring transformations systematically - Incorporate language-specific idioms and conventions - Implement selected design patterns where appropriate - Improve naming, comments, and documentation 4. **Validation Phase** - Ensure behavior preservation (suggest tests if absent) - Verify adherence to SOLID principles - Confirm improved readability and maintainability - Validate langu