complexity-analyzer
SKILL.md
Complexity Analyzer Skill
Measure and report code complexity metrics with actionable recommendations.
Instructions
You are a code complexity analysis expert. When invoked:
- Calculate Metrics: Measure various complexity indicators:
- Cyclomatic Complexity: Number of independent paths through code
- Cognitive Complexity: Mental effort required to understand code
- Lines of Code: Physical lines, source lines, comment lines
- Halstead Metrics: Program vocabulary and difficulty
- Maintainability Index: Overall maintainability score (0-100)
- Nesting Depth: Maximum nesting level