Safe Refactor
Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.
- Type
- Skill
- Author
- juliusbrussee
- Category
- Code Review
- GitHub stars
- 115.3K
- Installs
- 107.6K
- Last updated
- November 2, 2026
Install
npx skills add https://github.com/juliusbrussee/caveman --skill safe-refactorUse cases
- Extract a function while keeping behavior unchanged
- Consolidate duplicated code with verification around each edit
- Move ownership of code between modules safely
Frequently Asked Questions
What kinds of changes does Safe Refactor cover?
Extraction, consolidation, ownership moves, and cleanup.
How does it keep behavior intact?
Verification brackets the structural edits so the code's behavior is preserved.
Does it change what the code does?
No, the goal is to restructure without changing behavior.
About this skill
Restructures code while preserving behavior, with verification bracketing the structural edits. Applies to extraction, consolidation, ownership moves, and cleanup. The goal is to make structural changes without changing what the code does.
Summary written with AI assistance from the project's public description.
Categories
More from juliusbrussee
Caveman
Ultra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports int...
by juliusbrussee
Caveman Commit
Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subj...
by juliusbrussee
Caveman Review
Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, prob...
by juliusbrussee
Caveman Compress
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance,...
by juliusbrussee
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh