tidyfactor-design: Command for Claude Code

.agents/skills/tidyfactor-design/references/commands/tokens.md

tokens is a command for Claude Code from alwkala/tidyfactor-design. It costs 0 tokens per session (522 once invoked), scanned A, original, MIT.

A design-token command that defines shared choices for colors, fonts, spacing, corners, shadows, and animation. It also records the brand settings in files that the rest of the project can use.

In plain words
What is it for?
Use it when starting a design system or changing an existing brand. It helps set consistent styling rules for pages and interface components.
Why use it?
It prevents each page or component from inventing its own visual values. Changing a brand color or type scale in one place can update the whole project.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: installed under .agents/ (shared by several agents).

This is alwkala/tidyfactor-design's own configuration. It tells Claude Code how to work on tidyfactor-design itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tidyfactor-design configures →

Reuse

Borrowing it

Nothing to install: this file belongs to alwkala/tidyfactor-design. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alwkala/tidyfactor-design/main/.agents/skills/tidyfactor-design/references/commands/tokens.md
Clone the repo
git clone --depth 1 https://github.com/alwkala/tidyfactor-design

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 tokens

README.md
[![agentmods](https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/tokens.svg)](https://agentmods.dev/commands/alwkala/tidyfactor-design/tokens)
Your own site
<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/tokens"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/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 522 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.00000 $0.00522
Opus 5 $0.00000 $0.00261
Sonnet 5 $0.00000 $0.00104
Haiku 4.5 $0.00000 $0.00052

Measured 8d ago against content hash 359b5ccfe7b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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 8d 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.

.agents/skills/tidyfactor-design/references/commands/tokens.md · 46 lines

How it starts

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

Command: tokens — Design Tokens & brand.json

Purpose

Establish the single source of truth every other command reads from. This is the one command every later command depends on — re-running it (a rebrand, a palette fix) is how a change propagates to every page at once.

When to run it

  • Start of init — always first, right after school.
  • The user says "update the brand colors", "adjust the type scale", "we rebranded", tokens.

What it does

  1. Derive token categories from the school decision and brief:
    • colors — primary/secondary/accent + light/dark surface scales
    • typography — display/body/mono families, a type scale (not arbitrary per-heading sizes), weights
    • spacing — a consistent scale (e.g. 4px base), not ad hoc values
    • radius, shadow — a small fixed set, not one-off values per component
    • motion — duration/easing tokens (feeds motion command)
  2. Write design-system/tokens.css as :root custom properties (Native/ Hybrid), or the equivalent theme-config object (Tailwind), or the [data-theme] block (daisyUI) — per references/foundations/<choice>.md.
  3. Write/update design-system/brand.json: meta.*, colors.*, typography.*, spacing.*, voice.* (copy tone/register), cssFoundation, localization.* (default locale, RTL locales — see i18n).
  4. If tokens.css already exists and pages already reference it: this is a propagating change — flag every existing page for re-verification after the update, don't silently assume they still look correct.

Output convention

design-system/
  tokens.css     ← :root custom properties (or foundation-equivalent)
  brand.json     ← structured source; tokens.css is generated to match it

Checklist

  • Every token category present: colors, typography, spacing, radius, shadow, motion
  • cssFoundation recorded in brand.json and matches the project's actual <head> includes
  • If tokens changed on an existing project, affected pages flagged for re-verification

Read the full file on GitHub · 46 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. 8d ago First seen · 46 lines · 0 tokens per session scan A 359b5ccfe7b8

Subscribe to this mod's changes

tokens is a command published in the GitHub repository alwkala/tidyfactor-design (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 522 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-31.