Skill Wiki v0.1.0
anti-pattern @community/anti-pattern-magic-numbers

Magic Numbers

Numeric values that have no traceable origin: `padding: 13px`, `top: 47px`, `width: calc(100% - 73px)`, `transform: translateY(-2.5rem)`.…

Skill
@community
Domain
design-system
Version
1.0.0
Quality
4.0
Edges
3 out · 9 in
Tokens
121/496/871
$ prime install @community/anti-pattern-magic-numbers

Projection

Always in _index.xml · the agent never has to ask for this.

MagicNumbers [anti-pattern] v1.0.0

Numeric values that have no traceable origin: padding: 13px, top: 47px, width: calc(100% - 73px), transform: translateY(-2.5rem). Unlike hardcoded-pixel-values (which are at least canonical step sizes like 16/24/32), magic numbers are off-grid values invented to make a particular layout look right at one viewport. They are unmaintainable because nobody — including the original author — remembers why they exist.

Source

prime-system/examples/frontend-design/primes/compiled/@community/anti-pattern-magic-numbers/atom.yaml

Compiled at 2026-05-07