brand-to-tokens

brand-to-tokens is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 38 tokens per session (1,370 once invoked), scanned A, original, MIT.

A tool that converts an approved brand identity into design tokens, named values for colours, typography, spacing, and related design choices.

In plain words
What is it for?
Use it to produce a DTCG token file, CSS variables, and Tailwind styling from confirmed brand rules, or to seed image-asset and website-generation workflows.
Why use it?
It creates one maintained source of truth that other tools can use instead of copying brand values into separate styles and templates.

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 ADR-061 §8 deferral. Takes a confirmed [`brand-identity`](../brand-identity/SKILL.md).

Good fit Use it to produce a DTCG token file, CSS variables, and Tailwind styling from confirmed brand rules, or to seed image-asset and website-generation workflows.

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/brand-to-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 brand-to-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/brand-to-tokens/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/brand-to-tokens)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/brand-to-tokens"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/brand-to-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 brand-to-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/brand-to-tokens"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/brand-to-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,370 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.00038 $0.01370
Opus 5.5 $0.00015 $0.00548
Sonnet 5.5 $0.00008 $0.00274
Haiku 4.5 $0.00004 $0.00137

Measured 1mo ago against content hash 6c14798cd833, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

brand-to-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 1mo 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.

src/skills/brand-to-tokens/SKILL.md · 107 lines

How it starts

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

brand-to-tokens

The brand→token derivation — the first consumer demand that closes the ADR-061 §8 deferral. Takes a confirmed brand-identity constraint set and produces a DTCG tokens.json source of truth, then hands it to the design-tokens toolchain to emit CSS vars + Tailwind. The same tokens.json is the export that pack-ai-image brand-asset generation and the greenfield scaffold seed consume (B → A; contract: brand-token-consumption).

When to use

  • A confirmed brand identity (colour story, type story, spacing) needs to become a maintained token system.
  • A consumer asks to "turn the brand into tokens / CSS variables / a theme."
  • Before pack-ai-image brand-asset generation or a greenfield scaffold needs the tokens.json export.

Procedure

  1. Take the confirmed brand-identity constraint set — colour story (roles + values), type story (heading/body classes), spacing/radius intent. If a consumer brand profile already registers values, those win (brand-source-of-truth).

  2. Author tokens.json on the design-tokens 3-layer DTCG model ($value / $type): brand palette → primitive.color.*; brand roles (primary, accent, surface, destructive) → semantic.color.* referencing the primitives; per-widget needs → component.*. Add dark.semantic.* overrides. Type tokens come from typography-system stage-2 (archetype → pairing-filter), added under the typography section.

  3. Generate CSS vars + Tailwind through the toolchain:

    node <skills-root>/design-tokens/scripts/tokens.mjs generate \
      --config tokens.json -o assets/design-tokens.css
    node <skills-root>/design-tokens/scripts/tokens.mjs generate \
      --config tokens.json --format tailwind
    
  4. Validate — node <skills-root>/design-tokens/scripts/tokens.mjs validate --dir src/ until clean (exit 0 is the evidence); convert hardcoded values to var(--token).

  5. Export the deck templates — emit the locked-variable brand deck templates from templates/ — marp-brand-deck.md.example (copy to .md to use) and reveal-brand-deck.yaml — substituting the brand variables from tokens.json. No render engine is owned (decision 7); the templates feed the user's own deck tool.

  6. Publish tokens.json as the source of truth other surfaces read (pack-ai-image generation, greenfield scaffold) per the consumption contract.

Read the full file on GitHub · 107 lines

Files

What ships with it

3 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. 1mo ago Changed · -21 lines · -1 tokens per session scan C → A 6c14798cd833
  2. 1mo ago Changed 7d730ce73341
  3. 2mo ago Changed · +21 lines scan A → C 659f00115125
  4. 3mo ago First seen · 107 lines · 39 tokens per session scan A 538fa18adfb0

Subscribe to this mod's changes

brand-to-tokens is a skill published in the GitHub repository event4u-app/agent-config (20 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,370 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-08-31.

Related

brand-to-tokens compared with skills from other repositories

brand-to-tokens next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
brand-to-tokensevent4u-app/agent-configSkill20todayMITA38Claude Code, Codex
create-chatgpt-mockupgooseworks-ai/goose-skillsSkill1.4k6d agoMITA90Claude Code, Codex
vercel-composition-patternscalesthio/OpenMontageSkill84k18d agoAGPL-3.0A58Claude Code, Codex
layout-skillcode-yeongyu/oh-my-openagentSkill71ktodaynoneA88Claude Code, Codex
email-designfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A57Claude Code
logo-generatorkostja94/marketing-skillsSkill1.2k28d agoMITA30Claude Code, Codex
popup-generatorkostja94/marketing-skillsSkill1.2k28d agoMITA30Claude Code, Codex