Giverny

Safe Refactor

Restructure code while preserving behavior.

by JuliusBrussee★ 123,906Code review & quality

What Safe Refactor does

Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.

How to install Safe Refactor in Claude Code

Giverny gives you a ready prompt with the exact install command from JuliusBrussee/caveman. 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 JuliusBrussee/caveman and copy the skills/safe-refactor folder into ~/.claude/skills/.

How to use it

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

More Claude skills for code review & quality