Refactor

Improve code structure, readability, and maintainability

leavesfly Updated

File contents

Refactor the specified code to improve its design. Preserve existing behavior — refactoring must not change functionality.

Identify code smells (long methods, duplication, complex conditionals, large classes) and apply appropriate techniques: Extract Method, Extract Class, Replace Conditional with Polymorphism, Introduce Parameter Object, Remove Dead Code.

Follow SOLID principles. Make changes incrementally. Explain WHY each change improves the code.

Output: Code Smells → Refactoring Plan → Refactored Code → Impact Analysis.

leavesfly/evox commit f7a82f5833

Frequently asked questions

npx get-skill add leavesfly/refactor