complexity
Code complexity guidelines to keep cyclomatic complexity below 6 using strategy patterns or dispatch tables. Use when writing or refactoring functions with complex branching logic.
SKILL.md.claude/skills/complexity/SKILL.md
GitHubCode Complexity Guidelines
Apply these guidelines to keep code complexity manageable.
Cyclomatic Complexity
Keep the cyclomatic complexity of each function below 6.
- If you have a large switch case, consider using the strategy pattern or dispatch table instead