Refactoring

Use when improving code structure, readability, or testability without changing behavior. Apply when functions are too long, code is duplicated across files, names don't match intent, dependencies are tangled, tests are hard to write, or preparing for a large rewrite using the strangler fig pattern. Triggers: code smells (long method, feature envy, data clumps, primitive obsession), "hard to understand", "hard to change", "hard to test", "clean this up".

thejordanleopold Updated

File contents

thejordanleopold/claude-code-skills-distilled/tree/main/refactoring commit 3d80cdc848

Frequently asked questions

npx skillmds@latest add thejordanleopold/refactoring