Caveman Safe Refactor

JuliusBrussee/caveman

Restructure code while preserving the defined behavior boundary.

Contenuto aggiornato: SKILL.md
Parte diCaveman ↗
Punteggio di qualità 88/100
npx skills add JuliusBrussee/caveman --skill safe-refactor --copy
119.701Stelle6974ForkUltimo push del repository

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

  1. Claude Code

    From the project directory, install this skill.

    npx skills add JuliusBrussee/caveman --skill safe-refactor -a claude-code --copy
  2. Codex

    From the project directory, install this skill.

    npx skills add JuliusBrussee/caveman --skill safe-refactor -a codex --copy
  3. Cursor

    From the project directory, install this skill.

    npx skills add JuliusBrussee/caveman --skill safe-refactor -a cursor --copy
  4. Manual 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.

  5. 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@caveman
  6. Install the full pack

    Run the author’s installer to configure the Caveman components for detected agents.

    npx @caveman-ai/cli@latest
  7. Install 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 | bash
  8. Install 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

Claude CodeCodex CLIGemini CLIOpenCode

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.