ui-convert-token-miner
Installation
SKILL.md
Token Miner
Extracts design tokens (colors, fonts, spacing, shadows, radii) from project style sources.
Produces tokens.json with normalized, deduplicated token values using short-key IDs.
Non-negotiable Rules
- Deduplicate — same hex color appearing in 3 files = 1 color token.
- Normalize — all colors to lowercase hex6 (
#1a1a2e), all spacing to px numbers. - Short IDs — colors:
c1,c2..., fonts:f1,f2..., spacing:s1,s2... - Trace source — every token records where it was found (file + property).
- Token table is additive — re-running adds new tokens, never removes existing ones.
Extraction Sources
CSS / SCSS / LESS
Related skills