Skip to content
Marketplace

safe-refactor

by juliusbrussee

Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.

Overview

SKILL.mdRead at 99aafe1

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.

Files 2 files

Install it by hand

Deska runs this for you, for every agent you pick. To run it yourself in a terminal:

npx skills add juliusbrussee/caveman --skill safe-refactor

More from juliusbrussee

  • cavemanjuliusbrusseeTerse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".559.5K installs on skills.sh6
  • caveman-commitjuliusbrusseeWrite a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.394K installs on skills.sh0
  • caveman-reviewjuliusbrusseeCompressed code review - one line per finding with location, problem and fix. Use for /caveman-review, "review this PR", or "review the diff".389.9K installs on skills.sh0
  • caveman-compressjuliusbrusseeCompress a memory file such as CLAUDE.md or a todo list into caveman format to save input tokens, keeping a readable backup. Trigger: /caveman-compress.388.3K installs on skills.sh0
  • caveman-helpjuliusbrusseeQuick-reference card for the three caveman skills and their commands. Trigger: /caveman-help or "caveman help".380.9K installs on skills.sh0
All skills by juliusbrussee

In these bundles

  • Codebase architectureimprove-codebase-architecture, codebase-design, domain-modeling and 2 more5 skills