Informazioni sullo Skill
Restructure code while preserving the defined behavior boundary.
SKILL.md
Autore: Julius Brussee · JuliusBrussee/caveman · Apache-2.0 · SKILL.md @ 9b24366
---
name: safe-refactor
description: Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.
---
# 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.
Perché lo abbiamo scelto
A task workflow from Caveman. The author documents its host-specific integrations; this listing is source-based and does not measure token savings or execute the workflow.
Install
Claude Code
From the project directory, install this skill.
npx skills add JuliusBrussee/caveman --skill safe-refactor -a claude-code --copyCodex
From the project directory, install this skill.
npx skills add JuliusBrussee/caveman --skill safe-refactor -a codex --copyCursor
From the project directory, install this skill.
npx skills add JuliusBrussee/caveman --skill safe-refactor -a cursor --copyManual copy
Copy the complete skills/safe-refactor folder from the original repository into the project skills directory: .claude/skills/ for Claude Code or .agents/skills/ for Codex and Cursor.
Install the full pack
Install the Caveman Claude Code plugin with its skills, hooks and subagent presets.
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@cavemanInstall the full pack
Run the author’s installer to configure the Caveman components for detected agents.
npx @caveman-ai/cli@latestInstall the full pack
On macOS or Linux, run the documented script to configure Caveman across agent apps.
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.sh | bashInstall the full pack
On Windows, run the documented PowerShell script to configure Caveman across agent apps.
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.ps1 | iex
Prima di usarlo
- The author’s CLI requires Node.js 22.13 or newer. It installs several components and sends usage telemetry by default; the README documents how to turn telemetry off.
Agenti supportati
Fonti e riferimenti
Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.

