safe-refactor
Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.
Install
npx skills add JuliusBrussee/caveman@safe-refactorRuns in your terminal. Adds the skill globally for Claude Code, Cursor, Codex and others; add -g -y to skip prompts.
What it does
Safe refactor Define behavior-preservation boundary and establish verification before structural edits. - Keep feature changes outside refactor. - Move one ownership boundary at a time. - Preserve public interfaces, failure behavior, ordering, and compatibility unless explicitly scoped. - Keep intermediate states buildable and testable. - Avoid dependency or configuration growth without correctness need. Run same proof after change. Stop when behavior matches and requested structure is achieved.
Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.
View source on GitHubBefore you install
Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.
Categories
Related skills
- caveman
JuliusBrussee/caveman
>
476K installs 103K - caveman-commit
JuliusBrussee/caveman
>
334K installs 103KTestingDeploy & DevOpsDocumentation - caveman-review
JuliusBrussee/caveman
>
331K installs 103KCode review - caveman-compress
JuliusBrussee/caveman
>
329K installs 103KDataAI & agents - caveman-help
JuliusBrussee/caveman
>
322K installs 103K - cavecrew
JuliusBrussee/caveman
>
280K installs 103KAI & agentsCode reviewGit & GitHub