Refactor Guru

Use when the user asks to refactor code, clean up messy code, or diagnose code that feels hard to test, follow, or change. Trigger on named or informal smells: god class, long method, feature envy, shotgun surgery, spaghetti code, tight coupling, "this is a mess," "this class does too much," "I keep changing 10 files," or "I can't write tests for this." Also use for structural goals such as making code pluggable, adding many variants or export formats, supporting undo, splitting modules for independent deployment, or improving code that works but is hard to explain, remember, or onboard new developers into.

guillevc d080dff 4 files · 90.3 KB Updated

File contents

guillevc/skills/tree/main/skills/misc/refactor-guru commit d080dffd7c

Frequently asked questions

npx skillmds@latest add guillevc/refactor-guru