What problem does it solve?
This Skill tackles the daunting task of refactoring and modernizing old, messy, or legacy codebases without introducing regressions or breaking existing functionality.
Core Features & Use Cases
- Multi-session Workflow: Manages complex refactoring over multiple interactions, including assessment, safety net creation, incremental changes, and progress tracking.
- Automated Diagnostics: Uses
autopsy to assess codebase health and identify modules needing refactoring.
- Safety First: Implements characterization tests and rollback points via
safeguard before any code changes.
- Incremental Surgery: Refactors one module at a time using
surgeon with predefined patterns like Strangler Fig or Branch by Abstraction.
- Progress Tracking: Maintains state across sessions using
journal and session-bridge.
Quick Start
Initiate a legacy code refactoring process by running the rescue skill on your project.