What problem does it solve?
Codebases inevitably accumulate dead code, duplicated functionality, architectural anti-patterns, and type issues, leading to increased technical debt and reduced maintainability. This skill performs a deep architectural audit to systematically identify and quantify these problems.
Core Features & Use Cases
- Dead Code Detection: Identifies unused exports, functions, and files for removal, reducing codebase bloat.
- Duplication Analysis: Flags exact, similar, and conceptual code duplication, highlighting areas for consolidation.
- Anti-Pattern & Type Issue Identification: Detects God objects, circular dependencies, tight coupling,
any usage, and unsafe type assertions.
- Use Case: Conduct a quarterly health check on a large application to identify and quantify technical debt, providing a clear roadmap for refactoring initiatives and improving long-term maintainability.
Quick Start
Get directory structure
find . -type d -not -path "/node_modules/" -not -path "/.git/"
Find large files (potential God objects)
find . -name "*.ts" -exec wc -l {} + | sort -rn | head -20