Refactor Roadmap
Purpose
Create a staged refactor plan for a module.
Inputs to request
- •Current pain points and target state.
- •Test coverage and risk tolerance.
- •Dependencies and release constraints.
Workflow
- •Define current pain points and desired end state.
- •Break into small, testable steps.
- •Add guardrails: tests, feature flags, or metrics.
Output
- •Refactor sequence with checkpoints.
Quality bar
- •Ensure each step is reversible.
- •Tie steps to tests or metrics.