What problem does it solve? Legacy codebases accumulate technical debt, but teams struggle to decide where refactoring effort pays off. This Skill analyzes working legacy code, inventories improvement opportunities, and ranks them by real return on investment (hotpath impact, coupling, change frequency) instead of aesthetics, without ever modifying the code itself. ## Core Features & Use Cases - Opportunity Inventory: Scans target code and classifies each finding by specialist verb (restructure, modularize, decouple, optimize, simplify, standardize, prune), recording each as a structured YAML+Markdown artifact. - ROI-Based Prioritization: Ranks opportunities by impact, cost, and risk, with confidence levels (green/yellow/red) based on test coverage and behavioral proof. - Specialist Routing: Presents a prioritized menu and routes the chosen opportunity to the appropriate transformation specialist, suggesting chaining order when multiple verbs apply. - Use Case: A developer says "the freight calculation module is a monster." The Skill resolves the context, reads the code and specs, registers opportunities like long methods and concrete dependencies in _reversa_refactor/<context>/opportunities/, and routes the top pick to the right specialist. ## Quick Start Ask the agent to analyze the legacy code in a specific module and list which refactorings are worth doing first, ordered by return on investment.