refactoring-analysis
Installation
SKILL.md
Refactoring Analysis
Perform a systematic analysis of a codebase to identify refactoring opportunities based on Martin Fowler's "Refactoring: Improving the Design of Existing Code" (2nd Edition). Produce a prioritized report with actionable findings.
Procedures
Step 1: Scope the Analysis
- Determine the analysis target — a specific directory, module, feature area, or the entire project. If the user did not specify, ask which area to focus on.
- Identify the project's language and paradigm (OOP, functional, mixed) to calibrate which smells and techniques are applicable.
- If the project follows domain-driven design (DDD) or hexagonal architecture, read
references/solid-ddd-context.mdfor additional SOLID-specific analysis criteria.
Step 2: Explore the Codebase