design-tokens

design-tokens is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 49 tokens per session (2,367 once invoked), scanned A, original, MIT.

A system for defining reusable design values, such as colors, spacing, and sizes, across three levels: basic values, meaning-based values, and component values. It supports light and dark themes and can generate CSS variables and Tailwind colors.

In plain words
What is it for?
It is for creating or updating a design system, adding dark mode, checking CSS values, and keeping visual styles consistent.
Why use it?
It reduces inconsistent hardcoded values across components and makes themes and design changes easier to maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [`design-intelligence`](../design-intelligence/SKILL.md) (WCAG-adjusted.

Good fit It is for creating or updating a design system, adding dark mode, checking CSS values, and keeping visual styles consistent.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config
agentmods
npx agentmods add skills/event4u-app/agent-config/design-tokens

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/design-tokens/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/design-tokens)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/design-tokens"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/design-tokens/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/design-tokens"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/design-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.02367
Opus 5.5 $0.00020 $0.00947
Sonnet 5.5 $0.00010 $0.00473
Haiku 4.5 $0.00005 $0.00237

Measured 2d ago against content hash 002648238eb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-tokens scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/tokens.mjs, scripts/tokens.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/design-tokens/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

design-tokens

Token authoring skill: the 3-layer DTCG model (primitive → semantic → component) with light/dark theming, a TypeScript toolchain (scripts/tokens.ts — generate / validate / embed, run via node), and a starter template. Selection of which token values fit the product comes grounded from design-intelligence (WCAG-adjusted color sets, typography pairings); this skill turns the selection into a maintained token system.

Toolchain provenance: port of the upstream .cjs trio (generate-tokens, validate-tokens, embed-tokens) from nextlevelbuilder/ui-ux-pro-max-skill design-system sub-skill @ b7e3af80f6e331f6fb456667b82b12cade7c9d35 (MIT, last checked 2026-06-07); the HTML surface of upstream's html-token-validator.py is folded into validate so there is exactly one token-discipline linter. Obligations: design-intelligence/ATTRIBUTION.md.

When to use

  • A project needs a token system (new design system, theme overhaul, dark-mode introduction).
  • Hardcoded hex/px/rem values keep leaking into components — wire the validate linter into review/polish.
  • The design brief landed WCAG-checked values that must become maintainable CSS variables / Tailwind theme entries.

The 3-layer model

Layer Names References Example
Primitive raw scales literal values only primitive.color.blue.600 = #2563EB
Semantic meaning primitives via {primitive.…} semantic.color.primary = {primitive.color.blue.600}
Component per-widget semantics via {semantic.…} component.button.bg = {semantic.color.primary}

Rules: components never reference primitives directly; dark mode lives under dark.semantic.* overriding the same semantic names (emitted as a .dark { … } block); every value is a {"$value": …, "$type": …} pair (DTCG; 2025.10 colour/dimension/duration objects, shadow objects and arrays, cubicBezier and fontFamily arrays read — a border, transition, gradient, strokeStyle or typography composite, any other array, an unresolvable {…} reference, $extends and a $ref without $value fail generate by design, naming the token; $root takes its group's name). A file with no primitive/semantic/component/dark layer is flattened as semantic; top-level groups beside the layers are named on stderr, and a file whose tokens yield no variable exits 1. Every fontSize step has a letterSpacing sibling, per typography-system's tracking ladder, written in rem as the step's font size × its em value, since DTCG dimension objects allow only px and rem. Start from the bundled starter template.

Read the full file on GitHub · 185 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +6 lines 002648238eb8
  2. 10d ago Changed · +3 lines c1afa0653bdc
  3. 14d ago Changed b3880c7908c4
  4. 20d ago Changed 1f72748cf66e
  5. 23d ago Changed 63d894ac42d7
  6. 1mo ago Changed · +15 lines 260d83dd7b80
  7. 2mo ago First seen · 161 lines · 49 tokens per session scan A 663b8a21efca

Subscribe to this mod's changes

design-tokens is a skill published in the GitHub repository event4u-app/agent-config (19 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 2,367 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

design-tokens compared with skills from other repositories

design-tokens next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-tokensevent4u-app/agent-configSkill19yesterdayMITA49Claude Code, Codex
huashu-designalchaincyf/huashu-designSkill29k2d agoMITA123Claude Code, Codex
gridkostja94/marketing-skillsSkill1.1k2d agoMITA29Claude Code, Codex
masonrykostja94/marketing-skillsSkill1.1k2d agoMITA32Claude Code, Codex
interaction-skillcode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA104Claude Code, Codex
layout-skillcode-yeongyu/oh-my-openagentSkill71kyesterdaynoneA88Claude Code, Codex
ui-designer/html-prototypeechoVic/boss-skillSkill5475d agoMITA30Claude Code