Agent skill

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.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/complexity

SKILL.md

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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results