Safe Refactor
Safe Refactor is an agent skill (a SKILL.md file) from JuliusBrussee/caveman. Restructure code while preserving behavior. It works with Claude Code, Codex, Gemini CLI, GitHub Copilot and OpenCode and has 115,113 GitHub stars across a repository of 4 listed skills.
github.com/JuliusBrussee/caveman/skills/safe-refactor (opens in a new tab)
Data as of from the GitHub API and skills.sh; description from the skill's SKILL.md. Report an error
Add this skill
Claude
This repository is a Claude Code plugin marketplace. In Claude Code:
/plugin marketplace add JuliusBrussee/caveman
/plugin install caveman@cavemanIn the Claude apps, zip the safe-refactor folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).
ChatGPT / Codex
Codex reads skills from .agents/skills/ in a repo or ~/.agents/skills/ for every project:
git clone --depth 1 https://github.com/JuliusBrussee/caveman.git
cp -r caveman/skills/safe-refactor .agents/skills/safe-refactor # repo; ~/.agents/skills for all projectsStandalone skills also load in the ChatGPT desktop app.
Cursor
Cursor loads skills from .cursor/skills/ (or ~/.cursor/skills/) and also reads .claude/skills/:
git clone --depth 1 https://github.com/JuliusBrussee/caveman.git
cp -r caveman/skills/safe-refactor .cursor/skills/safe-refactor # project; ~/.cursor/skills for all projectsSource (checked Oct 7, 2026): code.claude.com/docs/en/skills (opens in a new tab), code.claude.com/docs/en/plugin-marketplaces (opens in a new tab), support.claude.com/en/articles/12512180-using-skills-in-claude (opens in a new tab), learn.chatgpt.com/docs/build-skills (opens in a new tab), cursor.com/docs/context/skills (opens in a new tab)
What this skill does
Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits. Define behavior-preservation boundary and establish verification before structural edits.
When it triggers
- Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.
More skills in JuliusBrussee/caveman
4 skills are listed from this repository.
Similar skills
More coding skills
X402
browser-use/browser-use
Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key.
Active · last commit Oct 22, 2026
OfficialCodingPythonCode Review And Quality
addyosmani/agent-skills
Conducts multi-axis code review. Use before merging any change.
Active · last commit Oct 13, 2026
CodingJavaScriptPonytail Review
DietrichGebert/ponytail
Quality review of a change: is the logic right, is it safe, does it hold under real load, is risky code tested, is it fast enough, and is every line needed.
Active · last commit Oct 18, 2026
CodingJavaScriptReceiving Code Review
obra/superpowers
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not…
Active · last commit Oct 21, 2026
CodingShellMCP Builder
anthropics/skills
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
Maintained · last commit Oct 9, 2026
OfficialCodingPythonSetup Matt Pocock Skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout.
Active · last commit Oct 19, 2026
CodingShell
How do I install the Safe Refactor skill?
In Claude Code, run /plugin marketplace add JuliusBrussee/caveman and then /plugin install caveman@caveman. For Codex or Cursor, copy the safe-refactor folder into .agents/skills/ or .cursor/skills/.
Is the Safe Refactor skill free?
Yes. The repository is open source under the Apache-2.0 license.
Is Safe Refactor maintained?
The repository's most recent commit was on Oct 25, 2026. Its latest release is v4.0.1. appsgit only lists skills from repositories with a commit in the last six months.