Zurück zu Skills
juliusbrussee/cavemanPrüfung bestanden

SKILL DETAIL

safe-refactor

juliusbrussee/caveman/safe-refactor

The safe-refactor skill is designed to restructure code while preserving its behavior. It is intended for scenarios such as extraction, consolidation, ownership moves, or cleanup, where verification must bracket structural edits. The skill emphasizes defining a behavior-preservation boundary and establishing verification before making structural changes. When using this skill, keep feature changes outside the refactor, move one ownership boundary at a time, preserve public interfaces, failure behavior, ordering, and compatibility unless explicitly scoped, and keep intermediate states buildable and testable. Avoid dependency or configuration growth without a correctness need. Run the same proof after the change and stop when behavior matches and the requested structure is achieved.

Installationen · 987Quelle ansehen

Installation

npx skills add https://github.com/juliusbrussee/caveman --skill safe-refactor

Skill-Dateien

SKILL.md

Zuletzt synchronisiert · 29.08.2026

agents/openai.yaml
interface:
  display_name: "Safe Refactor"
  short_description: "Preserve behavior through structural change"
  default_prompt: "Use $safe-refactor to restructure this code while preserving behavior."
SKILL.md
---
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.
safe-refactor · Trendende Agent Skills | Mengbi