Design Token Guard — Design skill for Claude Code
Enforce the token layer — find raw hex values and magic numbers in component files, replace with token references.
How to install Design Token Guard
Installs to ~/.claude/commands/andrem-sec-psc-comet-design-token-guard.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/andrem-sec/psc-comet/HEAD/.claude/commands/design-token-guard.md -o ~/.claude/commands/andrem-sec-psc-comet-design-token-guard.md Restart Claude Code, or start a new session, for it to be picked up.
What Design Token Guard does
name: design-token-guard description: Enforce the token layer — find raw hex values and magic numbers in component files, replace with token references
Invoke the design-token-guard skill now. Locate the token definition file(s) first. Scan component files for raw hex values, arbitrary Tailwind color values, and raw font-size/spacing numbers. Classify each finding as TOKEN_VIOLATION (token exists, use it), TOKEN_GAP (token missing, create it), or TOKEN_CONFLICT (token exists but differs
Alternatives in Design
- Studio — Launch the local design Studio — a live token editor over the latest extraction 3.6k ★
- Clipify — Claude Code skill: turn long videos into social-ready clips 549 ★
- Design Handoff — Generate a developer handoff document from a Figma file — spacing specs, token maps, component APIs, and produ 309 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Ads Token Layer Builder
Bir design system'de eksik/kurulmamış bir token katmanı tespit edildiğinde (örn. component katmanı hiç yok, hi
Ds Lint
Find hardcoded design values that should be design tokens
Skynet Site System
60-site master website-design playbook distilled from shipped client work - 17 niche design-token sets with re
UI Pro Magic
Claude Code skill combining ui-ux-pro-max (design strategy: 50+ styles, 97 palettes, 57 fonts, 99 UX rules) wi
UI Forager Skill
Claude/Codex Skill that pulls and adapts real UI components from shadcn/ui, Aceternity, Magic UI, and 25+ othe
Utility
CSS utility class creation and updates. Use when adding, modifying, or checking Dialtone CSS utilities (d- cla
Related Agents
Codemod Runner
Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css
Token Modeller
Modelling agent that turns raw measured or inferred values into the semantic token set and emits tokens.ts, th
i18n Auditor
Use this agent to find untranslated i18n keys, missing locale entries, and raw enum values leaking to the UI.