What problem does it solve?
Legacy code bases accumulate debt over time, making maintenance costly and risky. This Skill provides an AI-powered review and refactoring plan that identifies deprecated patterns, suggests modern replacements (Python 3.12+), assesses test coverage, and outlines incremental steps to improve reliability and maintainability without breaking behavior.
Core Features & Use Cases
- Automated Discovery: Detect deprecated APIs, anti-patterns, duplicated logic, and high McCabe complexity to surface modernization targets.
- Refactoring Guidance: Propose a phased modernization plan (formatting, typing, modularization) with concrete before/after code examples.
- Test & Coverage Awareness: Recommend characterization tests when coverage is low and outline test strategies to preserve behavior.
- Use Case: A monolithic Python project with legacy constructs can be transformed incrementally, reducing risk and technical debt while enabling safer upgrades.
Quick Start
Invoke the Legacy Code Reviewer on a target codebase, for example analyze src/legacy to receive a modernization plan with concrete steps and example refactors.