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.
Scanned 2/12/2026
Install via CLI
openskills install majiayu000/claude-skill-registry---
name: complexity
description: 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.
---
# Code 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
No comments yet. Be the first to comment!