tokens
Skill2 starsChanged 3 months agoMITView on GitHub
Generates site/css/tokens.css from DESIGN-LOCK.md and brief/animation.md. Refuses to work until DESIGN-LOCK is frozen. Sole writer of tokens.css in the project.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Luclegay/claude-memory-kittheir own version, first seen Nov 16, 2026
- aibtcdev/skillstheir own version, first seen Nov 10, 2026
- sukirman1901/frontend-experttheir own version, first seen Sep 10, 2026
- educlopez/ui-crafttheir own version, first seen Aug 17, 2026
- apinizer/agentnizer-cookbooktheir own version, first seen Jul 21, 2026
- nitekeeper/ateliertheir own version, first seen Jun 26, 2026
Used with
Projects with it also use polish.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkillpolish
Performs a final quality pass fixing alignment, spacing, consistency, and micro-detail issues before shipping. Use when the user mentions polish, finishing touches, pre-launch review, something looks off, or wants to go from good to great.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- educlopez/ui-craft★ 441same name
- aibtcdev/skills★ 11same name
- sukirman1901/frontend-expert★ 9same name
- apinizer/agentnizer-cookbook★ 2same name
- PeterCang/claude-tokens-plugin★ 1same name
- 15yotsuka/claude-skills★ 0same name
- Luclegay/claude-memory-kit★ 0same name
- nitekeeper/atelier★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- animationSkill
- auditSkill
- blocksSkill
- briefSkill
- buildSkill
- copy-analyzeSkill
- deploySkill
- design-lockSkill
- iconsSkill
- inboxSkill
- mediaSkill
- mobileSkill
- refsSkill
- typographySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 13
After /animation (motion tokens are added).
- Distinctive: line 14
When DESIGN-LOCK is changed via override (regenerate tokens).
- Very specific: line 18
Refuse to work: if any DESIGN-LOCK field is TBD or any section is not LOCKED:
- Very specific: line 31
Ensure all 9 sections are STATUS: LOCKED and no value is TBD.
- Very specific: line 69
All variables named per convention (--<category>-<name>).
- Distinctive: line 71
If anything is violated — do not save, return an error.
- Very specific: line 75
If self-hosted fonts exist in brand/fonts/ (.woff2):
- Very specific: line 76
Add @font-face declarations at the top of tokens.css.
- Very specific: line 87
One writer: Only /tokens writes site/css/tokens.css.
- Distinctive: line 88
No hardcode: Every value comes from DESIGN-LOCK.
- Very specific: line 89
Do not invent variables: If DESIGN-LOCK didn't decide — go back to /design-lock (do not invent).
- Very specific: line 94
Do not edit tokens.css by hand after generation (next run overwrites).
- Distinctive: line 95
Do not create "intermediate" variables not in DESIGN-LOCK.
- Distinctive: line 96
Do not merge project-specific additions with the base set — everything via DESIGN-LOCK override.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/tokens
Turns the frozen DESIGN-LOCK.md constitution and the brief/animation.md motion spec into CSS variables in site/css/tokens.css.
When to use
- Immediately after
/design-lock(DESIGN-LOCK.md has LOCKED status on all sections). - After
/animation(motion tokens are added). - When DESIGN-LOCK is changed via override (regenerate tokens).
Requirements — HARD BLOCKING
Refuse to work if any DESIGN-LOCK field is TBD or any section is not LOCKED:
❌ Cannot generate tokens.
DESIGN-LOCK.md → §3 Color: STATUS = TBD.
Run /design-lock to complete.Also refuse if brief/animation.md is missing (needed for motion tokens).
Process
Step 1. Read DESIGN-LOCK.md
Ensure all 9 sections are STATUS: LOCKED and no value is TBD.
Step 2. Read brief/animation.md Load motion decisions (intensity multiplier, stagger, computed durations).
Step 3. Read site/css/tokens.css Existing template — do not rewrite everything, update values.
Step 4. Map DESIGN-LOCK → tokens.css
Explicit mapping:
| DESIGN-LOCK | tokens.css |
| §1 Spacing → base unit | --space-base |
| §1 Spacing → rhythm N× | --space-1, --space-2, ..., --space-13 |
| §1 Section padding top/bottom | --section-pad-top, --section-pad-bottom |
| §1 Content max-width | --content-max-w |
| §1 Page margin left/right | --page-padding-x |
| §2 Type → font families | --font-heading, --font-body, --font-mono |
| §2 Type → sizes | --fs-body, --fs-h1, --fs-h2, --fs-h3, --fs-caption |
| §2 Type → line-height | --lh-body, --lh-heading |
| §2 Type → weights | --fw-body, --fw-heading |
| §3 Color | --c-bg, --c-fg, --c-fg-muted, --c-accent, --c-border, --c-overlay |
| §3 Color → semantic | --c-success, --c-error, --c-warning |
| §4 Radius | --radius (ONE value!) |
| §5 Motion → ease | --ease, --ease-in, --ease-out |
| §5 Motion → duration | --dur-fast, --dur-base, --dur-slow |
| §5 Motion → scroll-behavior (from /animation) | --scroll-reveal |
| §5 Motion → stagger-base-ms (from /animation) | --stagger-base-ms |
| §5 Motion → motion-multiplier (from /animation) | --motion-multiplier |
Step 5. Post-generation checks
- Only 2 font weights used in tokens (DESIGN-LOCK rule).
- Only 1 radius used.
- Only 1 accent color.
- Only 1 ease-primary.
- All variables named per convention (
--<category>-<name>).
If anything is violated — do not save, return an error.
Step 6. @font-face
If self-hosted fonts exist in brand/fonts/ (.woff2):
- Add @font-face declarations at the top of tokens.css.
- Reference
/fonts/*.woff2. font-display: swap.- Log: user may need to add preload to
index.html.
Step 7. Update DESIGN.md
In the "Design tokens" section — brief summary of what was generated (for reference, no value duplication).
Rules
- One writer. Only
/tokenswritessite/css/tokens.css./buildonly reads. - No hardcode. Every value comes from DESIGN-LOCK.
- Do not invent variables. If DESIGN-LOCK didn't decide — go back to
/design-lock(do not invent). - Comments in CSS. Each variable block is annotated "§N of DESIGN-LOCK.md".
What NOT to do
- Do not edit tokens.css by hand after generation (next run overwrites).
- Do not create "intermediate" variables not in DESIGN-LOCK.
- Do not merge project-specific additions with the base set — everything via DESIGN-LOCK override.
Next
/media— media conversion./icons— icon set./build— section assembly with tokens ready.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

