Analyzes codebases for complexity and SOLID violations while executing safe, test-verified structural improvements.
This skill provides a comprehensive framework for improving code health by identifying technical debt and refactoring it safely through a standardized pipeline. It operates in two modes: a diagnostic 'analyze' mode that generates prioritized reports on complexity, coupling, and design pattern violations, and an 'execute' mode that performs incremental refactoring with mandatory safety gates. By integrating with tools like Vitest, ESLint, and dependency analyzers, it ensures that every structural change is backed by characterization tests and automated verification, making it an essential tool for maintaining large-scale TypeScript and JavaScript applications.
주요 기능
01Prioritized refactoring reports based on bug risk, coverage gaps, and implementation effort
020 GitHub stars
03Multi-tool static analysis for cyclomatic complexity, coupling, and circular dependencies
04Automated 'test-first' execution pipeline with mandatory rollback triggers and verification gates
05Support for core refactoring patterns including Extract Class, Move Method, and Polymorphism
06Git-aware analysis that correlates change frequency with code smells to identify high-risk areas
사용 사례
01Decomposing monolithic classes into modular, testable components using SOLID principles
02Auditing legacy codebases to identify high-risk modules and prioritize technical debt reduction
03Executing safe, incremental structural improvements during large-scale architectural migrations