refactoring-catalog
CommunityMaster code transformation, improve maintainability.
Software Engineering#code quality#refactoring#design patterns#clean code#maintainability#code transformation#fowler
Authoraitchwhy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a structured approach to improving code design and readability without altering external behavior. It helps developers systematically tackle technical debt, making large codebases easier to understand, maintain, and extend.
Core Features & Use Cases
- Composing Methods: Patterns like "Extract Function" and "Replace Temp with Query" to simplify complex logic and give semantic names to code fragments.
- Moving Features: Guidance on "Move Function" and "Replace Loop with Pipeline" to improve module cohesion and reduce coupling between components.
- Simplifying Conditionals: Techniques like "Decompose Conditional" and "Replace Nested Conditional with Guard Clauses" to reduce complexity and improve the clarity of decision-making logic.
- Use Case: A developer encounters a monolithic function with deeply nested conditionals. They can use this skill to apply "Extract Function" to break it down and "Replace Nested Conditional with Guard Clauses" to flatten the logic, making the function much more readable and testable.
Quick Start
Refactor the 'calculateOrderTotal' function in 'src/services/order.ts' using the "Extract Function" pattern to improve readability.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: refactoring-catalog Download link: https://github.com/aitchwhy/dotfiles/archive/main.zip#refactoring-catalog Please download this .zip file, extract it, and install it in the .claude/skills/ directory.