refactoring-patterns
Apply named refactoring transformations to improve code structure without changing behavior. Use when the user mentions "refactor this", "code smells", "extract method", "replace conditional", "technical debt", "move method", "inline variable", "decompose conditional", or "clean up this messy code". Also trigger when cleaning up legacy code, preparing code for new features by restructuring, or identifying which transformation fits a specific code smell. Covers smell-driven refactoring, safe transformation sequences, and testing guards. For code-quality foundations, see clean-code. For managing complexity, see software-design-philosophy.
- Version
- 1.4.1
- License
- MIT
Pinned to revision 6bac1534f9f2, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/refactoring-patterns/SKILL.md
- skills/refactoring-patterns/references/composing-methods.md
- skills/refactoring-patterns/references/moving-features.md
- skills/refactoring-patterns/references/organizing-data.md
- skills/refactoring-patterns/references/refactoring-workflow.md
- skills/refactoring-patterns/references/simplifying-conditionals.md
- skills/refactoring-patterns/references/smell-catalog.md
Every link opens the file at its source, pinned to the revision this page describes.