# refactor-safe > Safe refactoring workflow (small steps, tests, diagnostics) - Author: Saikus08 - Repository: Saikus08/opencode-workbench - Version: 20260126014739 - Stars: 8 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/Saikus08/opencode-workbench - Web: https://mule.run/skillshub/@@Saikus08/opencode-workbench~refactor-safe:20260126014739 --- --- name: refactor-safe description: Safe refactoring workflow (small steps, tests, diagnostics) --- # 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.