Improve difficult code through small steps while keeping its behavior the same.
- A file or module has become too large.
- Changes are risky because responsibilities are mixed together.
- You want a cleanup plan before editing code.
- The code or area that is hard to maintain
- Behavior that must not change
- Available tests and time constraints
Plan a small, safe refactor for this module. Keep behavior unchanged and show the checks needed after each step.
- The main maintenance problems
- A sequence of small changes
- Tests, checkpoints, and rollback options
Refactoring should not quietly add features or change behavior. Any such choice should be handled separately.
pi install npm:@firstpick/pi-skill-refactoring-advisorRestart Pi if the skill does not appear in your current session.
See TECHNICAL.md for advanced usage, configuration, compatibility, and limitations.