What problem does it solve?
This Skill systematically analyzes your codebase, identifies areas of technical debt, and safely refactors code to improve quality and maintainability, all while preserving existing behavior. Say goodbye to messy code and hello to clarity.
Core Features & Use Cases
- Deep Code Analysis: Identify structural issues (e.g., God Classes, long functions), design pattern violations (e.g., SOLID), and code quality issues (e.g., duplication, poor naming).
- Safe, Incremental Refactoring: Apply refactoring patterns (e.g., Extract Function, Introduce Parameter Object) one at a time, ensuring tests pass after each change.
- Behavior Preservation: Guarantees that refactoring efforts never alter the observable behavior of your application.
- Use Case: Automatically clean up a legacy module with high complexity, simplify a function with too many parameters, or extract a new class from a bloated one, reducing future maintenance costs and improving developer velocity.
Quick Start
When asked to refactor code, the Skill will:
- Perform an initial assessment of the code's scope, language, and test coverage.
- Conduct a deep analysis based on your focus areas (e.g., structural issues, design patterns).
- Execute refactoring incrementally, ensuring tests exist and pass before and after each change.