init-brand-tokens

init-brand-tokens is a command for Claude Code from marcusgoll/Spec-Flow. It costs 0 tokens per session (5,270 once invoked), scanned A, original, MIT.

A command that creates a shared set of design values for colors, text sizes, spacing, and related interface styles. It can generate OKLCH color tokens, which are structured color values, and check them against WCAG accessibility guidance.

In plain words
What is it for?
Use it to create tokens for a new project, scan an existing interface for repeated styles, extract colors from a prototype, or create settings compatible with shadcn/ui and Tailwind CSS version 4.
Why use it?
It turns scattered or inconsistent visual choices into reusable project settings. It can also formalize an existing interface or a prototype's colors before further design work.

Command for Claude Code

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.

agentmods
npx agentmods add commands/marcusgoll/spec-flow/init-tokens
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

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 init-brand-tokens

README.md
[![agentmods](https://agentmods.dev/badge/commands/marcusgoll/spec-flow/init-tokens.svg)](https://agentmods.dev/commands/marcusgoll/spec-flow/init-tokens)
Your own site
<a href="https://agentmods.dev/commands/marcusgoll/spec-flow/init-tokens"><img src="https://agentmods.dev/badge/commands/marcusgoll/spec-flow/init-tokens.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.05270
Opus 5 $0.00000 $0.02635
Sonnet 5 $0.00000 $0.01054
Haiku 4.5 $0.00000 $0.00527

Measured 5d ago against content hash 5988580e2813, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init-brand-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 5d 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.

.claude/commands/project/init-tokens.md · 585 lines

How it starts

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

/init-brand-tokens — Design System Token Generation

Existing Tokens: !test -f design/systems/tokens.json && echo "exists" || echo "missing"

Tailwind Config: !test -f tailwind.config.js && echo "found (js)" || test -f tailwind.config.ts && echo "found (ts)" || echo "missing"

Node Version: !node --version 2>/dev/null || echo "not installed"

Project Mode: !test -d app -o -d src -o -d components && echo "brownfield (UI exists)" || echo "greenfield (new project)"

Reference Documentation: @.claude/skills/design-tokens/SKILL.md

Modes:

  • Brownfield: Scan existing code (UI, emails, PDFs, CLI, charts, docs) for color/type/spacing patterns, consolidate duplicates
  • Greenfield: Ask 8 customization questions, generate new OKLCH palette with semantic tokens + shadcn integration
  • From Prototype (--from-prototype): Extract and formalize colors from discovery prototype's theme.yaml
  • shadcn Integration (--shadcn): Generate shadcn/ui-compatible configuration alongside OKLCH tokens

When to use:

  • During /init-project, before first /design
  • After /prototype discover to formalize quick-picked palette
  • When migrating ad-hoc styles to systematic tokens
  • When setting up shadcn/ui components with custom theming

Surfaces covered: UI components, MJML/HTML emails, PDF styling, CLI colors, data viz, docs, discovery prototypes, shadcn/ui components

Anti-Hallucination Rules

  1. Never run script without checking dependencies
    • Verify Node.js installed with node --version
    • Check colorjs.io, picocolors, fs-extra in package.json
    • If missing, install with: pnpm add -D colorjs.io picocolors fs-extra

Read the full file on GitHub · 585 lines

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. 5d ago First seen · 585 lines · 0 tokens per session scan A 5988580e2813

Subscribe to this mod's changes

init-brand-tokens is a command published in the GitHub repository marcusgoll/Spec-Flow (92 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,270 tokens. 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-30.