onewave-ai/design-tokens-sync
Audit and sync design tokens between the source of truth (tokens.json, Figma variables export) and the code that should consume them (Tailwind config, CSS custom properties, theme files). Finds drift -- hardcoded values, orphan tokens, out-of-date copies -- and fixes it in the right direction.
npx skills add https://github.com/OneWave-AI/claude-skills --skill 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.
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.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 nowhereUNTOKENIZED -- raw values appearing 3+ times with no token; these are tokens waiting to be namednpm 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.#0B1121 vs #0b1220 may be drift or may be a decision.color.blue.500 -> color.accent -> button.bg, fix references at the right layer instead of flattening everything to primitives.theme.css is built from tokens.json, fix the source and rebuild; never hand-edit output.Take onewave-ai/design-tokens-sync from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.