design-tokens-sync

design-tokens-sync is a skill for Claude Code, Codex from OneWave-AI/claude-skills. It costs 66 tokens per session (789 once invoked), scanned A, original, MIT.

A guide for keeping design tokens—shared names for colors, spacing, type sizes, and other interface values—consistent between design files and code.

In plain words
What is it for?
Use it to compare token files, Figma variable exports, Tailwind settings, CSS variables, and theme files, then produce a drift report and reconcile the differences.
Why use it?
It finds stale copies, hardcoded values, unused tokens, and renamed values that no longer match. This reduces visual drift between a design system and the product.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Use it to compare token files, Figma variable exports, Tailwind settings, CSS variables, and theme files, then produce a drift report and reconcile the differences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onewave-ai/claude-skills/design-tokens-sync
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 OneWave-AI/claude-skills --skill design-tokens-sync
Clone the repo
git clone --depth 1 https://github.com/OneWave-AI/claude-skills

Made for: Claude Code, Codex.

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-tokens-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/onewave-ai/claude-skills/design-tokens-sync/github.svg)](https://agentmods.dev/skills/onewave-ai/claude-skills/design-tokens-sync)
Your own site
<a href="https://agentmods.dev/skills/onewave-ai/claude-skills/design-tokens-sync"><img src="https://agentmods.dev/badge/skills/onewave-ai/claude-skills/design-tokens-sync/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-tokens-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/onewave-ai/claude-skills/design-tokens-sync"><img src="https://agentmods.dev/badge/skills/onewave-ai/claude-skills/design-tokens-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 789 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.00789
Opus 5 $0.00033 $0.00394
Sonnet 5 $0.00013 $0.00158
Haiku 4.5 $0.00007 $0.00079

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

Security

Grade A, and why

design-tokens-sync 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.

design-tokens-sync/SKILL.md · 39 lines

How it starts

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

Design Tokens Sync

Keep one source of truth actually true. Every design system decays the same way: a hex gets hardcoded in a hurry, a token gets renamed in Figma but not in Tailwind, a second half-copy of the palette appears in a one-off CSS file. This skill finds the drift, decides direction with the user, and reconciles.

Workflow

  1. Locate the truths. Find every place tokens are defined: tokens.json/*.tokens.json (W3C format), Figma variables export, tailwind.config.* theme, CSS custom properties, TS theme objects, SCSS variable files. If more than one claims to be canonical, ask which wins before touching anything -- direction of sync is a human decision.
  2. Build the graph. For each token: canonical value, every downstream definition, and every consumption site. For each raw value in code (hex, px, rem, ms, cubic-bezier): whether a token exists for it.
  3. Drift report. Output token-drift-report.md in four buckets:
    • STALE COPIES -- downstream definitions that no longer match canonical (with both values)
    • HARDCODED -- raw values in components where a matching token exists (exact match, then near-match within perceptual distance for colors)
    • ORPHANS -- tokens defined but consumed nowhere
    • UNTOKENIZED -- raw values appearing 3+ times with no token; these are tokens waiting to be named
  4. Reconcile on approval. Stale copies: regenerate downstream from canonical. Hardcoded: replace with token references -- exact matches automatically, near-matches only with per-case confirmation (that slightly-off blue might be intentional). Untokenized: propose names following the existing convention and add to canonical. Orphans: list for deletion; never auto-delete.
  5. Guard. Offer to add the cheap tripwire: a script (npm run tokens:check) that re-runs the drift detection and fails CI on new stale copies or hardcoded near-matches, so the system stays synced after you leave.

Rules

  • Never sync both directions in one run. Canonical wins; anything flowing the other way (a designer wants the code's newer value) is an explicit canonical edit first.
  • Near-match replacement is per-case, never bulk. #0B1121 vs #0b1220 may be drift or may be a decision.
  • Preserve semantic layering: if the system has color.blue.500 -> color.accent -> button.bg, fix references at the right layer instead of flattening everything to primitives.
  • Renames propagate everywhere or nowhere -- a half-renamed token is worse than the old name.
  • Respect generated files: if theme.css is built from tokens.json, fix the source and rebuild; never hand-edit output.
  • The report quantifies health: token coverage percentage (tokenized vs. raw values in components) is the number to move release over release.

Read the full file on GitHub · 39 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 · 39 lines · 66 tokens per session scan A 16bbd82b674b

Subscribe to this mod's changes

design-tokens-sync is a skill published in the GitHub repository OneWave-AI/claude-skills (291 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 789 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-09-03.

Related

Other skills, from other repositories

interaction-skill

Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…

code-yeongyu/oh-my-openagent · 104 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens

vertical-site-conventions

Compose pages and sites that read as their vertical: ecommerce-catalog storefronts that look like storefronts, hospitality-food sites that look like restaurants, b2b-manufacturer sites that look industrial. Use this skill whenever the user wants to build a site that looks like the vertical it serves, fix a build that…

rampstackco/claude-skills · 190 tokens

suede-design

Suede Labs AI design skill for making an interface feel intentional instead of templated: design tokens, color strategy, OKLCH ramps, type scale, fluid type, visual hierarchy, dark mode, spacing, component laws, motion, and source-to-implementation visual QA. Use when asked to design, restyle, polish, or audit a…

JasonColapietro/suede-creator-skills · 169 tokens

frontend-design-review

Design, review, and visually QA web and app interfaces against explicit design laws so shipped screens look intentional instead of generic AI output.

JasonColapietro/suede-creator-skills · 30 tokens

design-loop

Autonomous multi-page site builder using a baton-passing loop. Each iteration reads a task from .design/next-prompt.md, generates a page in HTML/Tailwind, integrates it into the site, verifies visually, then writes the next task to keep the loop alive. Use whenever the user asks to build an entire site autonomously…

jezweb/claude-skills · 130 tokens