Refactoring Patterns

by wondelaic172996495beMIT2.3K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 4 weeks ago

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.

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
references/composing-methods.md11.6 KBtext/markdown
references/moving-features.md12 KBtext/markdown
references/organizing-data.md12.7 KBtext/markdown
references/refactoring-workflow.md14 KBtext/markdown
references/simplifying-conditionals.md12.8 KBtext/markdown
references/smell-catalog.md13.2 KBtext/markdown
SKILL.md15.6 KBtext/markdown

Source and attribution

Source:wondelai/skillsinrefactoring-patternsat commitc172996

License: MIT

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal