Refactor

Guided refactoring with behavior preservation verification. Identifies candidates (long functions, deep nesting, duplicated logic, god classes), proposes a refactoring plan, executes incrementally with tests between steps, and verifies no behavior change. Use when user says "refactor", "clean up this code", "simplify", "extract", "restructure", "reduce complexity", "split this file", or wants to improve code structure without changing behavior. For new features, use /plan; for bug fixes, use /investigate; for code review, use /review.

gufranco Updated

File contents

gufranco/claude-engineering-rules/tree/main/skills/refactor commit 7becbb4e91

Frequently asked questions

npx get-skill add gufranco/refactor