token-architecture

token-architecture is a skill for Claude Code, Codex from memi-design/design-skills. It costs 39 tokens per session (736 once invoked), scanned A, original, MIT.

A system for naming and organizing design values such as colors, spacing, and corner shapes. These shared values can connect Figma variables, CSS custom properties, Tailwind, and native app code.

In plain words
What is it for?
Use it to define global, semantic, and component-level tokens, support multiple themes, and map the same design decisions across platforms.
Why use it?
It prevents each component from inventing its own visual values and makes theme or brand changes easier to manage consistently.

Skill for Claude CodeCodex

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

Good fit Use it to define global, semantic, and component-level tokens, support multiple themes, and map the same design decisions across platforms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/memi-design/design-skills/token-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add memi-design/design-skills --skill token-architecture
Clone the repo
git clone --depth 1 https://github.com/memi-design/design-skills

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 token-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/memi-design/design-skills/token-architecture/github.svg)](https://agentmods.dev/skills/memi-design/design-skills/token-architecture)
Your own site
<a href="https://agentmods.dev/skills/memi-design/design-skills/token-architecture"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/token-architecture/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 token-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/memi-design/design-skills/token-architecture"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/token-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 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.
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.00039 $0.00736
Opus 5.5 $0.00016 $0.00294
Sonnet 5.5 $0.00008 $0.00147
Haiku 4.5 $0.00004 $0.00074

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

Security

Grade A, and why

token-architecture 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 29d ago.

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.

skills/token-architecture/SKILL.md · 41 lines

How it starts

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

Token architecture

When to use

Use when a design value affects more than one component, theme, or platform, or when Figma/Paper values disagree with code tokens. For a single screen implementation, begin with design-to-code-handoff; this skill handles the token decision within that workflow. Do not introduce a new tier system merely because the current naming differs from an example.

Establish the source of truth

  1. Read the repository's design-system docs, token files, generated outputs, theme code, and any Figma variable mapping. Identify the actual source of truth and its owner; do not assume Figma or code always wins. Distinguish authored files from generated files and do not edit generated output directly.
  2. Inventory consumers: CSS custom properties, Tailwind configuration, component styles, Storybook stories, native outputs, and design variables where present. Record which are in scope and which cannot be inspected.
  3. Capture the exact design source and revision or timestamp, relevant mode, token name, value, and usage. A screenshot color sample is an approximation, not a verified token reference.

Decide the smallest change

Design use and source Existing semantic token Consumers and modes Decision Owner and unresolved difference
  • Reuse an existing semantic token when the intent and supported modes match, even if a raw value differs slightly in one screenshot. Explain material visual differences.
  • Extend an existing token or add a semantic alias when multiple consumers share a new intent. Keep primitives and component-specific values in the layers the repository already uses.
  • Add a component token only when that component needs a distinct stable contract. Avoid one token per screenshot value and avoid bypassing the system with hardcoded values.
  • Defer when ownership, modes, or the intended semantic meaning is unknown. Record the decision needed rather than inventing a color or propagating an unreviewed design change.

Read the full file on GitHub · 41 lines

Files

What ships with it

1 file 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. 29d ago Changed · -280 lines · +7 tokens per session 9318f5f05155
  2. 1mo ago First seen · 321 lines · 32 tokens per session scan A 640f471421d0

Subscribe to this mod's changes

token-architecture is a skill published in the GitHub repository memi-design/design-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 736 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

Other skills, from other repositories

design-to-code-check

Compares a component or screen's design spec with its code and logs each gap as a build error or spec gap. Use it for design QA, handover review or sign-off: whenever someone asks if a build matches its design or spec, even one component with the spec pasted in. System-wide drift: drift-detection.

murphytrueman/design-system-ops · 71 tokens

design-engineering

Premium design engineering skill for agentic workflows — produces high-end, distinctive UI designs using DESIGN.md as the portable contract across Pencil MCP (in-IDE canvas), Figma MCP (team handoff + design tokens), and Google Stitch (vibe exploration + AI generation). Enforces anti-generic principles, WCAG 2.2 AA…

broomva/skills · 231 tokens

building-components

The workflow for building, rebuilding, or restyling any design-system component (Button, Dialog, Select, Table, Tabs, Tooltip, and so on). Trigger whenever the user says "let's do the dialog", "restyle X", "bring in / pull in a component", "build the select", "rebuild this atom", or starts work on an item from the…

Kemdirimakujuobi/skills · 177 tokens

gsp-color

Design color systems — palettes, contrast, semantic mapping, dark mode — use when: pick colors, build a palette, semantic tokens, dark mode pairings, brand color, accent color.

jubscodes/get-shit-pretty · 41 tokens

gsp-typography

Design type systems — scale, pairing, fluid type, vertical rhythm — use when: pick fonts, font pairing, type scale, vertical rhythm, fluid typography, body and heading sizes.

jubscodes/get-shit-pretty · 42 tokens

analyze-component-set-figma

Analyze a Figma COMPONENTSET as a state machine for code generation — extract variant axes (state/size/etc.), map state variants to CSS pseudo-classes (hover→:hover, focus→:focus-visible, disabled→:disabled, error→[aria-invalid]), and compute per-variant visual diffs (only what changes per state). Use when generating…

southleft/skills-for-figma · 180 tokens