What problem does it solve?
This Skill helps you improve messy, hard-to-maintain code while keeping behavior unchanged, so you can clean up technical debt without accidentally rewriting the system.
Core Features & Use Cases
- Smell-driven refactoring: Identify issues like long methods, duplicate code, feature envy, and deep conditionals, then apply the right restructuring technique.
- Behavior-preserving transformations: Use small, safe steps such as extract method, move method, replace conditional with polymorphism, and extract class.
- Practical workflow guidance: Follow a disciplined refactoring process with tests, commits, and incremental verification.
- Use Case: A large service method has grown unreadable and fragile; this Skill helps split it into focused methods, introduce clearer objects, and simplify the design without changing outputs.
Quick Start
Ask the skill to refactor the selected code by naming the smell and preserving current behavior.