Skip to content
v1.0.0

Refactor Safely

Skill 1.0.0 · primaryrefactor-safely

Implement an authorized structural refactor in reversible, behavior-preserving, independently verified increments.

Use when: Implement an authorized behavior-preserving refactor in small verified increments. Use for a bounded file, module, or structural target, including the refactor portion of a mixed request; not for a pure feature, bug fix, open-ended cleanup, or read-only review.

Terminal window
arcantry skills link refactor-safely --scope user

This links only refactor-safely to the standard user location, ~/.agents/skills. Use --scope repo for one repository, or add --compat claude when that optional alias is needed.

  • Protect behavior with a verified baseline before changing internal structure.
  • Keep refactoring separate from features, bug fixes, formatting, and adjacent cleanup.
  • 2026-09-14 - Add focused code-quality workflows: Arcantry separates evidence-backed code assessment, maintainable structural design and authorized behavior-preserving refactoring into three focused public skills.

Prompt

Use the refactor-safely skill to move this parsing responsibility without changing the command’s behavior.

Expected outcome

The change lands in small tested increments and preserves every protected contract.

Prompt

Use the refactor-safely skill when a characterization test exposes an existing product bug during the refactor.

Expected outcome

The defect is separated from the structural work instead of silently choosing new behavior.