What problem does it solve?
This Skill addresses code smells, suggests design pattern improvements, and restructures code to enhance readability, maintainability, and reduce complexity, all while ensuring existing behavior is preserved.
Core Features & Use Cases
- Code Smell Detection: Identifies and suggests fixes for common issues like long functions, duplicated code, and deep nesting.
- Refactoring Techniques: Applies proven patterns such as Extract Function, Extract Class, and Replace Conditional with Polymorphism.
- Stack-Specific Guidance: Provides tailored refactoring advice for various programming languages and frameworks (TypeScript, Python, Go, React, etc.).
- Use Case: You have a complex, hard-to-understand function. Use this Skill to break it down into smaller, more manageable pieces and apply best practices for cleaner code.
Quick Start
Use the refactor skill to analyze the current file for code smells and suggest improvements.