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.
git clone --depth 1 https://github.com/event4u-app/agent-confignpx agentmods add skills/event4u-app/agent-config/brand-to-tokensWrote 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.
[](https://agentmods.dev/skills/event4u-app/agent-config/brand-to-tokens)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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-identityconstraint set and produces a DTCGtokens.jsonsource of truth, then hands it to thedesign-tokenstoolchain to emit CSS vars + Tailwind. The sametokens.jsonis 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.jsonexport.
Procedure
-
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). -
Author
tokens.jsonon thedesign-tokens3-layer DTCG model ($value/$type): brand palette →primitive.color.*; brand roles (primary, accent, surface, destructive) →semantic.color.*referencing the primitives; per-widget needs →component.*. Adddark.semantic.*overrides. Type tokens come fromtypography-systemstage-2 (archetype → pairing-filter), added under thetypographysection. -
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 -
Validate —
node <skills-root>/design-tokens/scripts/tokens.mjs validate --dir src/until clean (exit 0 is the evidence); convert hardcoded values tovar(--token). -
Export the deck templates — emit the locked-variable brand deck templates from
templates/—marp-brand-deck.md.example(copy to.mdto use) andreveal-brand-deck.yaml— substituting the brand variables fromtokens.json. No render engine is owned (decision 7); the templates feed the user's own deck tool. -
Publish
tokens.jsonas the source of truth other surfaces read (pack-ai-image generation, greenfield scaffold) per the consumption contract.
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.
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.
- 1mo ago Changed · -21 lines · -1 tokens per session scan C → A 6c14798cd833
- 1mo ago Changed 7d730ce73341
- 2mo ago Changed · +21 lines scan A → C 659f00115125
- 3mo ago First seen · 107 lines · 39 tokens per session scan A 538fa18adfb0
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.
brand-to-tokens compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| brand-to-tokensevent4u-app/agent-config | Skill | 20 | today | MIT | A | 38 | Claude Code, Codex |
| create-chatgpt-mockupgooseworks-ai/goose-skills | Skill | 1.4k | 6d ago | MIT | A | 90 | Claude Code, Codex |
| vercel-composition-patternscalesthio/OpenMontage | Skill | 84k | 18d ago | AGPL-3.0 | A | 58 | Claude Code, Codex |
| layout-skillcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 88 | Claude Code, Codex |
| email-designfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 57 | Claude Code |
| logo-generatorkostja94/marketing-skills | Skill | 1.2k | 28d ago | MIT | A | 30 | Claude Code, Codex |
| popup-generatorkostja94/marketing-skills | Skill | 1.2k | 28d ago | MIT | A | 30 | Claude Code, Codex |