Refactoring Skill

When refactoring code, follow this disciplined process:

1. Establish Safety Net

Before changing anything:

2. Plan the Refactoring

Choose the smallest transformation that makes progress:

Common Refactorings

Decision Criteria

3. Execute Incrementally

4. Verify

After all changes:

5. Report

Summarize: