Safe Refactor
- •Add/confirm tests (golden tests if needed).
- •Make one mechanical change at a time.
- •Run typecheck + tests after each step.
- •Avoid large cross-cutting rewrites.
安全的重构工作流程(小步推进、充分测试、精准诊断)。
--- frontmattername: refactor-safe description: Safe refactoring workflow (small steps, tests, diagnostics)