Claude-skill-registry 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.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/complexity" ~/.claude/skills/majiayu000-claude-skill-registry-complexity && rm -rf "$T"
manifest: skills/data/complexity/SKILL.md
source content

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