What problem does it solve?
Legacy systems accumulate code smells and structural debt, but teams lack a systematic way to decide where refactoring effort pays off. This Skill analyzes existing code, catalogs improvement opportunities, and ranks them by real return on investment instead of aesthetics.
Core Features & Use Cases
- Opportunity Inventory: Scans legacy code and classifies each finding by specialist verb (restructure, modularize, decouple, optimize, simplify, standardize, prune) with traceability to existing specifications.
- ROI-Based Prioritization: Ranks opportunities by impact, cost, and risk using hotpath heuristics (coupling, execution frequency, git change rate) plus confidence levels based on test coverage.
- Specialist Routing: Presents a prioritized menu and routes each chosen opportunity to the appropriate transformation specialist without ever applying changes itself.
- Use Case: Point it at a legacy module like a freight calculation or auth component, and receive a prioritized list of refactoring opportunities with expected returns and the exact specialist command to execute each one.
Quick Start
Ask the agent to analyze the legacy codebase and show which refactoring opportunities in a specific module offer the highest return.