Giverny

Refactoring Patterns

Apply named refactoring transformations to improve code structure without changing behavior.

by wondelai★ 2,827Code review & quality

What Refactoring Patterns does

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

How to install Refactoring Patterns in Claude Code

Giverny gives you a ready prompt with the exact install command from wondelai/skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone wondelai/skills and copy the refactoring-patterns folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Refactoring Patterns on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the refactoring-patterns skill on my current project.”

More Claude skills for code review & quality