What problem does it solve?
This Skill detects structural issues like overly long functions, deep nesting, and mixed concerns in codebases, helping developers improve code readability and maintainability.
Core Features & Use Cases
- Detect Long Functions: Finds functions exceeding 50 lines across multiple languages such as Dart, Python, Go, Rust, and web frameworks, then suggests refactoring strategies.
- Analyze Widget Build Methods: Identifies overly lengthy build methods in Flutter or similar frameworks and recommends extracting smaller components.
- Identify Deep Nesting and Coupling: Finds excessive nesting levels and tight dependencies, proposing early returns, modularization, and dependency injection.
- Detect God Classes and Excessive Coupling: Flags classes with too many responsibilities or tightly coupled modules for splitting or decoupling.
- Flag Complex Match Chains and Large Impl Blocks: Suggests extraction of functions or splitting large classes for clarity.
- Cross-language Support: Applies analysis rules to Dart, Python, Go, Rust, and JavaScript/TypeScript, highlighting language-specific refactoring tips.
Quick Start
Detect issues in your codebase using this skill to automatically identify long functions, deep nesting, and large classes requiring refactoring, improving maintainability and clarity.