agentleFS
weg-9000weg-9000/Lime-design/skills/ds-tokens/SKILL.md

ds-tokens

Skill0 starsChanged 5 months agoMITView on GitHub

Design or extend the token palette and semantic layer (methodology P1) — propose accessible colors, map semantic roles, and validate every change through the gate before it lands in the SSoT.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read DESIGN/design-tokens.json and print the contrast-audit table so decisions start from the engine's numbers, not intuition:

    line 27
  2. Distinctive:

    Write the agreed tokens, then:

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Purpose

The one high-judgment skill: palette design, semantic-role mapping, and theme work. Everything it produces is still subject to the deterministic gate — the model proposes, the engine verdicts.

Windows note: always python -X utf8 ….

Workflow

1 — Load current state

Read DESIGN/design-tokens.json and print the contrast-audit table so decisions start from the engine's numbers, not intuition:

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --tokens DESIGN/design-tokens.json --profile design.profile.yml --audit-table

2 — Propose as a diff, never write directly

For the user's request (new brand color, new status color, dark-theme tuning, new component-level tokens…):

  • Work primitive-first: a new color enters primitive with $description stating its role and known contrast; semantic entries only reference primitives by {name} (the engine BLOCKs direct hex in semantic — D-T05).
  • Accessibility is a design input, not an afterthought: when the user asks for a color that cannot meet its role's threshold (e.g. a pale brand yellow as text), say so with the numbers and propose the nearest accessible shade, keeping the original as a surface/chip-only primitive marked "background only" in its $description.
  • Show the change as a before/after diff of the JSON fragments and wait for the user's pick if you offered variants.

3 — Apply, gate, rebuild

Write the agreed tokens, then:

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --tokens DESIGN/design-tokens.json --profile design.profile.yml --out reports --format both
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/gen_tokens.py --src DESIGN/design-tokens.json --out DESIGN/tokens.css --profile design.profile.yml

BLOCK → revert or fix before ending the turn; never leave the SSoT in a BLOCKed state. Bump $meta.version per semver (new tokens = minor, changed values = patch unless breaking renames = major) and note the change for CHANGELOG.md if the Hub keeps one.

4 — Report

Summarize: tokens added/changed, contrast results for every new pair, version bump, and whether /ds-push should re-publish.

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.