Agent skill · juliusbrussee

safe-refactor

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

What it needs

About 1k tokens when loaded.

What this skill does

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.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills juliusbrussee/safe-refactor

View the source on GitHub

Browse the @skills marketplace