What problem does it solve?
This Skill helps teams safely transform complex, poorly structured code into clean, maintainable systems without altering behavior, reducing risk during refactoring.
Core Features & Use Cases
- Code smell detection: identify long methods, large classes, feature envy, and other classic smells.
- Refactoring patterns: extract method, inline method, rename variable, extract variable, encapsulate variable, introduce parameter object, and more.
- Safety priorities: maintain test coverage, ensure behavior remains stable, continuous integration readiness, rollback procedures, and thorough documentation updates.
- Automated workflow: identify smells, write targeted tests, apply changes incrementally, commit with documentation updates, and track metrics.
- Use case: during a tech debt cleanup sprint, refactor a module to improve readability and reduce cyclomatic complexity while preserving output.
Quick Start
Invoke the refactoring-specialist to analyze a codebase and propose a safe, incremental refactoring plan. For example: assess the Foo module for long methods and high coupling, then outline a sequence of extract-method steps with tests to preserve behavior.