code-analysis
Installation
SKILL.md
Overview
This skill provides comprehensive knowledge for code analysis including complexity metrics, anti-pattern detection, refactoring strategies, and code quality assessment across multiple programming languages.
Complexity Metrics
Cyclomatic Complexity
- Low: 1-10 (simple, easy to test)
- Medium: 11-20 (moderate complexity, acceptable)
- High: 21-50 (complex, needs refactoring)
- Very High: 51+ (critical, must refactor)
Cognitive Complexity
Measures how difficult code is to understand based on nesting, control flow breaks, and recursion.