agentleFS
dkadtsdkadts/landing-kit-building/.claude/skills/tokens/SKILL.md

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

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-hubSkill

    polish

    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

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
  1. Very specific:

    After /animation (motion tokens are added).

    line 13
  2. Distinctive:

    When DESIGN-LOCK is changed via override (regenerate tokens).

    line 14
  3. Very specific:

    Refuse to work: if any DESIGN-LOCK field is TBD or any section is not LOCKED:

    line 18
  4. Very specific:

    Ensure all 9 sections are STATUS: LOCKED and no value is TBD.

    line 31
  5. Very specific:

    All variables named per convention (--<category>-<name>).

    line 69
  6. Distinctive:

    If anything is violated — do not save, return an error.

    line 71
  7. Very specific:

    If self-hosted fonts exist in brand/fonts/ (.woff2):

    line 75
  8. Very specific:

    Add @font-face declarations at the top of tokens.css.

    line 76
  9. Very specific:

    One writer: Only /tokens writes site/css/tokens.css.

    line 87
  10. Distinctive:

    No hardcode: Every value comes from DESIGN-LOCK.

    line 88
  11. Very specific:

    Do not invent variables: If DESIGN-LOCK didn't decide — go back to /design-lock (do not invent).

    line 89
  12. Very specific:

    Do not edit tokens.css by hand after generation (next run overwrites).

    line 94
  13. Distinctive:

    Do not create "intermediate" variables not in DESIGN-LOCK.

    line 95
  14. Distinctive:

    Do not merge project-specific additions with the base set — everything via DESIGN-LOCK override.

    line 96

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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-LOCKtokens.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 /tokens writes site/css/tokens.css. /build only 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.