Replaces unexplained literal values with named constants that carry their meaning, without over-formalizing the obvious. Use when a bare number or string encodes a rule.
A magic number is a literal whose meaning lives only in the author's head:
if (age >= 18), sleep(86400), status === 3. The reader cannot tell a
deliberate threshold from a typo, and a value that recurs must be found and
changed in every spot at once. The fix is a name, applied with judgment about
which literals actually need one.
MINIMUM_AGE = 18,
SECONDS_PER_DAY = 86400, Status.SHIPPED = 3. The name turns a mystery
value into a statement the reader can check against the domain.for (i = 0; ...), x * 2 to double,
arr[0] for the first element: naming these adds ceremony without meaning.
The test is whether a name would tell the reader anything the literal does
not already say.0.08 tax rate
in five files is five edits and one guaranteed miss the day it changes. One
TAX_RATE constant makes the change atomic and greppable, whatever the
value's apparent simplicity.constants.js dumping ground that forces a reader to jump away to learn one
number. Group by meaning, not by "it is a constant".status === 7 and keeps the names traveling together. Scattered STATUS_A
and STATUS_B lose that check.TIMEOUT_MS = 30000, not TIMEOUT = 30000; MAX_UPLOAD_BYTES, not
MAX_UPLOAD. Where the value comes from a spec or vendor limit, cite it so
no one quietly rounds it off later.Do not manufacture constants for genuinely obvious literals or one-off values
used once in clear context; over-naming buries the few numbers that matter under
noise like ONE = 1. Per-environment values belong in configuration, not source
constants. For repeated non-numeric literals and shared rules, this overlaps
code-duplication.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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