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/millionco/skillsnpx agentmods add skills/millionco/skills/tailwind-token-consolidationWrote 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/millionco/skills/tailwind-token-consolidation)<a href="https://agentmods.dev/skills/millionco/skills/tailwind-token-consolidation"><img src="https://agentmods.dev/badge/skills/millionco/skills/tailwind-token-consolidation/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/millionco/skills/tailwind-token-consolidation"><img src="https://agentmods.dev/badge/skills/millionco/skills/tailwind-token-consolidation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00135 | $0.02580 |
| Opus 5.5 | $0.00054 | $0.01032 |
| Sonnet 5.5 | $0.00027 | $0.00516 |
| Haiku 4.5 | $0.00014 | $0.00258 |
Grade A, and why
tailwind-token-consolidation 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 2mo 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 — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailwind Token Consolidation
You are reducing the count of design tokens in a Tailwind v4 globals.css while preserving visual fidelity.
REQUIRED, in order, for every consolidation task:
- Audit first, edit never-first. Parse
globals.cssinto structured blocks (@theme inline,:root,.dark, every other scoped block). Count tokens. Build a usage map by scanning ALL.ts/.tsx/.css/.mdxfiles (excludingglobals.css) for class names ANDvar(--...)refs. - Compute the LIVE set transitively. A token is live if (a) its suffix appears as a Tailwind class anywhere, OR (b) it is referenced as
var(--name)anywhere, OR (c) it is referenced inside another live token's value. Iterate to a fixed point. - Scan
globals.css's own utility classes too. Anyvar(--...)inside.X { ... }blocks (outside:root/.dark/@theme inline) is a hard dependency. Tokens demanded by those classes MUST stay. - Build a deterministic rename map as data (
old_suffix -> new_suffixorDELETE). Apply it to globals.css AND code in a single script. Never hand-edit class names across the codebase. - Verify after every pass: run
pnpm typecheck,pnpm lint,pnpm format,pnpm build. All must pass before declaring done.
Do not skip any step. A skipped step is a failed task.
The Two Reduction Levers (apply in this order)
| Lever | What it removes | Risk |
|---|---|---|
| 1. Dead deletion | Tokens with zero usage in code + zero intra-globals demand | None — safe |
| 2. Value-similar collapse | Rename --button → --card when values are within ~5% in both light + dark |
Small — pick truly-similar values only |
DO NOT inline tokens into Tailwind arbitrary values (px-[17px], text-[16px]/[1.6875rem], shadow-[#000_0px_1px]). Inlining trades named-token clutter for arbitrary-value clutter — same noise, different file. Named tokens carry intent; arbitrary values destroy it. Realistic reduction with these two levers alone is 50–60%, not 70%. If the user asks for a higher number, push back: the right answer is fewer tokens, not the same noise in className strings.
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.
- 2mo ago First seen · 108 lines · 135 tokens per session scan A 7c0f4321474c
tailwind-token-consolidation is a skill published in the GitHub repository millionco/skills (34 stars, last pushed 4mo ago), licensed MIT. It adds 135 tokens to every session and 2,580 once invoked, about $0.0005 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-30.
tailwind-token-consolidation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tailwind-token-consolidationmillionco/skills | Skill | 34 | 4mo ago | MIT | A | 135 | Claude Code, Codex |
| anti-slop-designsickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 34 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | yesterday | MIT | A | 214 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | 3d ago | MIT | A | 52 | Codex |
| open-design-setupcompozy/compozy | Skill | 2.8k | yesterday | MIT | A | 67 | Claude Code, Codex |
| edit-sitemicrosoft/power-platform-skills | Skill | 1.1k | yesterday | MIT | A | 104 | Claude Code |
| frontend-visual-qadaymade/claude-code-skills | Skill | 1.5k | yesterday | MIT | A | 125 | Claude Code, Codex |