# Refactor Safe

> Safe refactoring workflow (small steps, tests, diagnostics) Use when this capability is needed.

- Skill: `tomevault-io/refactor-safe` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/refactor-safe`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/refactor-safe/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/refactor-safe

---


# Safe Refactor

1. Add/confirm tests (golden tests if needed).
2. Make one mechanical change at a time.
3. Run typecheck + tests after each step.
4. Avoid large cross-cutting rewrites.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/saikus08) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

