Refactor Assist
Goals
- •Improve structure without changing behavior.
- •Keep steps small and reversible.
- •Preserve compatibility and test coverage.
Workflow
- •Identify intent: what should stay the same and what can change.
- •Map dependencies: callers, data contracts, and side effects.
- •Propose a stepwise plan with checkpoints.
- •List safety nets: tests to add or run before/after.
- •Highlight high-risk areas and rollback strategy.
Output Format
- •Intent: short statement of non-goals and constraints.
- •Plan: numbered steps with expected outcome.
- •Risks: bullets with mitigations.
- •Tests: minimal set to confirm no behavior change.