---
name: juliusbrussee-safe-refactor
description: "Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits."
license: "NOASSERTION"
metadata:
  decimalai-skill-id: "580f75c1-b1f0-498f-a81a-e4334e74da5d"
  decimalai-version-id: "d808f74e-6155-43fc-8a5f-373456ba393a"
  decimalai-version: "1"
  decimalai-body-sha256: "170c065c74a18d873b3bbda5eb97b073d42c2314d493858b488bfbbca10ece93"
  decimalai-name: "juliusbrussee/safe-refactor"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "coding"
  decimalai-source: "https://app.decimal.ai/s/juliusbrussee-safe-refactor@1/SKILL.md"
---
# 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.
