What problem does it solve?
This Skill helps developers systematically improve code quality by identifying refactoring targets, assessing risks, and creating an incremental execution plan, thereby reducing technical debt and enhancing maintainability.
Core Features & Use Cases
- Code Smell Detection: Identifies common issues like duplication, long functions, and tight coupling.
- Risk Assessment: Evaluates the risk associated with each refactoring target based on file changes, test coverage, and dependencies.
- Prioritization: Ranks refactoring targets based on impact (frequency of change, bug history, developer pain, business impact).
- Incremental Planning: Designs a step-by-step approach with before/after examples and regression test plans.
- Use Case: A team identifies a complex, poorly tested module that is slowing down feature development. This Skill can analyze the module, identify specific areas for improvement (e.g., extract a large function, break down a god class), and provide a phased plan to refactor it safely with minimal disruption.
Quick Start
Use the refactor planner skill to analyze the 'user-authentication' module for code smells and generate a refactoring roadmap.