What problem does it solve?
This Skill analyzes code for common "bad smells" like long functions, duplicated code, and deep nesting, providing specific refactoring solutions and the refactored code to improve structure and maintainability without altering external behavior.
Core Features & Use Cases
- Bad Smell Detection: Identifies issues such as overly long functions, code duplication, excessive parameters, deep nesting, magic numbers, and more.
- Refactoring Recommendations: Suggests specific refactoring techniques (e.g., Extract Function, Introduce Parameter Object).
- Code Generation: Provides the complete, refactored code that maintains original functionality.
- Use Case: You have a complex function that's hard to understand and test. This Skill can break it down into smaller, more manageable functions, making your codebase cleaner and easier to work with.
Quick Start
Analyze the code in the file src/utils/helpers.js for bad smells and suggest refactoring solutions.