Practical Refactoring¶
Workflow¶
- Identify the behavior to preserve and the next change the refactor should make easier.
- Add a focused regression check if the behavior is not already protected.
- Separate structural edits from intentional behavior changes and make small reversible steps.
- Run appropriate checks after each risky step; stop when the concrete maintenance goal is met.
Completion¶
Return the concrete result, verification evidence and any material unresolved limitation. Keep documentation proportional to the change and preserve human feedback.
Focused references¶
- Detailed examples: load only the section relevant to the task.
Canonical source: skills/software-engineering/practical-refactoring.md.