safe-refactor
作成者: juliusbrussee
コードを再構築しつつ動作を維持する。抽出、統合、所有権の移動、または検証で構造的変更を挟む必要があるクリーンアップに使用する。
npx skills add https://github.com/juliusbrussee/caveman --skill safe-refactorSafe 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.