Measures and reduces cyclomatic complexity by extracting branches, early-returning, and using table dispatch. Use when a function has many paths or deep nesting.
Cyclomatic complexity counts the independent paths through a function: one plus
each branch point (if, for, while, case, and every && or ||). Paths
multiply the tests a function needs and the states a reader must hold at once,
and past roughly ten paths a function stops fitting in one head.
radon cc -s file.py, the
ESLint complexity rule, gocyclo, or SonarQube. Rank functions by score
and start with the worst. A number ends the argument about whether a function
merely "feels" complex.if blocks. Every level removed cuts the states a reader tracks through the
rest of the function.handlers[event.type](event). A twelve-case switch scoring 12 becomes a
lookup scoring 1, and adding a case is a map entry rather than a new branch.if (a && b && !c)
hides several paths in one line. Extract isEligible(...) returning a
boolean: the branches move into a small, separately testable function whose
name states what it decides.The score is one signal: a low number with terrible names is still unreadable, and a slightly high number in a genuinely branchy state machine can be the clearest form available. Do not extract single-use helpers with vague names just to move a metric. Defer length questions to function-size and profiling to the performance skills.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job