design-token-audit

design-token-audit is a skill for Claude Code from RBraga01/builder-design. It costs 53 tokens per session (1,590 once invoked), scanned A, original, MIT.

A checklist for making AI interface styles use named design-system values, called tokens, for colours, spacing, fonts, shadows, and borders.

In plain words
What is it for?
Use it before merging AI interface changes, adding visual styles, launching an AI feature, or checking the health of a design system.
Why use it?
It finds hardcoded visual values that can drift from the rest of the product and make future redesigns harder.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the builder-design plugin — 8 skills, 5 agents shipped together

Good fit Use it before merging AI interface changes, adding visual styles, launching an AI feature, or checking the health of a design system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rbraga01/builder-design/design-token-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RBraga01/builder-design --skill design-token-audit
Clone the repo
git clone --depth 1 https://github.com/RBraga01/builder-design

Made for: Claude Code.

Or install builder-design, the plugin that ships this one along with the rest of its 8 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-token-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/rbraga01/builder-design/design-token-audit/github.svg)](https://agentmods.dev/skills/rbraga01/builder-design/design-token-audit)
Your own site
<a href="https://agentmods.dev/skills/rbraga01/builder-design/design-token-audit"><img src="https://agentmods.dev/badge/skills/rbraga01/builder-design/design-token-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-token-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/rbraga01/builder-design/design-token-audit"><img src="https://agentmods.dev/badge/skills/rbraga01/builder-design/design-token-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01590
Opus 5 $0.00026 $0.00795
Sonnet 5 $0.00011 $0.00318
Haiku 4.5 $0.00005 $0.00159

Measured 9d ago against content hash 3a0daaa897d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

design-token-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-token-audit/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design Token Audit

The Law

HARDCODED VALUES IN AI COMPONENTS ARE DESIGN SYSTEM DEBT.
"#3b82f6 is fine for now" is a value that diverges on the next rebrand and becomes the pattern every developer copies until there are 40 hardcoded blues in the codebase.
Every colour, spacing, typography, shadow, and border radius referencing a token IS a token-compliant component.

When to Use

Trigger before:

  • Merging any PR that introduces new AI feature UI components
  • Adding new visual styles (colours, spacing, shadows) to existing components
  • Launching a new AI feature into a product with an existing design system
  • Conducting a design system health check

When NOT to Use

  • New products with no design system yet (define tokens first, then this skill applies)
  • Prototypes explicitly scoped as throwaway

The Token Categories

Every AI component must reference tokens for all five categories:

1 — Colour Tokens

/* ✗ Hardcoded — fails audit */
color: #3b82f6;
background: rgba(239, 68, 68, 0.1);
border: 1px solid #e5e7eb;

/* ✓ Token-compliant — passes audit */
color: var(--color-primary);
background: var(--color-error-subtle);
border: 1px solid var(--color-border);

AI-specific colour tokens that must exist:

--color-ai-response-bg       /* Background for AI response containers */
--color-ai-streaming         /* Streaming cursor colour */
--color-ai-uncertain         /* Uncertainty indicator (amber family) */
--color-ai-citation          /* Citation highlight colour */
--color-ai-error             /* AI-specific error (may differ from system error) */

2 — Spacing Tokens

/* ✗ Fails */
padding: 12px 16px;
gap: 8px;

/* ✓ Passes */
padding: var(--space-3) var(--space-4);
gap: var(--space-2);

All spacing must follow a scale (4px base, or 8px base). Arbitrary values (13px, 22px, 37px) are automatic failures.

3 — Typography Tokens

/* ✗ Fails */
font-size: 14px;
font-weight: 500;
line-height: 1.6;

/* ✓ Passes */
font-size: var(--text-sm);
font-weight: var(--font-medium);
line-height: var(--leading-relaxed);

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 185 lines · 53 tokens per session scan A 3a0daaa897d2

Subscribe to this mod's changes

design-token-audit is a skill published in the GitHub repository RBraga01/builder-design (2 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 1,590 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

uxi

UX research and UI design guidance for any product in any domain. Use this whenever the work touches interface design, usability, design critique, accessibility, design systems, user research, information architecture, onboarding, forms, dashboards, landing pages, empty and error states, or interface copy. Trigger it…

ahammadnafiz/uxi · 166 tokens

ui-designer

!cat skills/shared/game-visual-foundations.md 2>/dev/null || echo "=== Visual Foundations not loaded ===" !cat skills/shared/protocols/visual-grounding.md 2>/dev/null || echo "=== Visual Grounding not loaded ===" !cat skills/shared/protocols/visual-evidence-library.md 2>/dev/null || echo "=== Visual Evidence Library…

buiphucminhtam/forgewright · 65 tokens

ux-principles-skill

Apply established UX, interaction-design, and visual-design principles when designing, building, or reviewing any user-facing interface or flow. Use when creating or editing UI components, screens, forms, navigation, or layouts; when making product/interaction decisions (goals, personas, postures, states); when…

dereyurtali/ux-principles-skill · 151 tokens

ui-styles

An offline library of 79 UI style families, with prompts in Chinese and English. It covers styles such as glassmorphism, vaporwave, bento grids, and minimalism.

chrzamz/ui-styles-skill · 114 tokens

stitch-design

Automate high-fidelity UI prototyping with Google Stitch MCP. Use when the user needs to generate, iterate, or refine UI screens via Stitch prompts.

blockbloomer/claude-skill-stitch-design · 35 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens