Refactor Patterns

Apply systematic refactoring patterns — strangler fig for legacy migration, seam detection, extract method/class, introduce parameter object, replace conditional with polymorphism, and safe refactoring sequencing. Use when asked to "refactor this", "clean up legacy code", "this is unmaintainable", "too many if statements", "extract this logic", or "how do I migrate without breaking everything". Do NOT use for: full rewrites — that is an architecture decision, not a refactoring task.

yanacuti1121 2c5b777 5.9 KB Updated 2 repo stars

File contents

yanacuti1121/Yana-AI/tree/main/core/skills/refactor-patterns commit 2c5b77754e

Frequently asked questions

npx skillmds add yanacuti1121/refactor-patterns