ui-tokens

ui-tokens is a skill for Claude Code, Codex from glebis/claude-skills. It costs 141 tokens per session (743 once invoked), scanned A, original, MIT.

A workflow for extracting a product's design values from its code and screens into reusable files. These values include colours, fonts, spacing, corner shapes, shadows and animation timings.

In plain words
What is it for?
Use it to build token files and a visual token sheet from CSS, HTML, font links, theme settings and screenshots.
Why use it?
It prevents recreated interfaces from using guessed colours or typography that do not match the real product. The extracted values can be shared by animated components.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to build token files and a visual token sheet from CSS, HTML, font links, theme settings and screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glebis/claude-skills/ui-tokens
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.

Any agent
npx skills add glebis/claude-skills --skill ui-tokens
Clone the repo
git clone --depth 1 https://github.com/glebis/claude-skills

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 ui-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/glebis/claude-skills/ui-tokens/github.svg)](https://agentmods.dev/skills/glebis/claude-skills/ui-tokens)
Your own site
<a href="https://agentmods.dev/skills/glebis/claude-skills/ui-tokens"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/ui-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 ui-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/glebis/claude-skills/ui-tokens"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/ui-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 743 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.00141 $0.00743
Opus 5.5 $0.00056 $0.00297
Sonnet 5.5 $0.00028 $0.00149
Haiku 4.5 $0.00014 $0.00074

Measured 3d ago against content hash 86cdbd104ba5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-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 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract.py, scripts/sheet.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

ui-tokens/SKILL.md · 36 lines

How it starts

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

ui-tokens

A product video looks like the product only if it is built from the product's own values, not from a screenshot's guessed colours. This skill reads them out of the code and checks them against the screens.

Steps

  1. Find the sources. Grep the repo for :root, -- custom properties, @font-face, fonts.googleapis, transition, @keyframes, animation. Usually one shared CSS file plus inline <style> in the page templates. Tailwind or CSS-in-JS: read the theme config instead and write tokens.json by hand in the same shape.
  2. Extract. python3 ~/.claude/skills/ui-tokens/scripts/extract.py OUT_DIR FILE.css FILE.html ... writes OUT_DIR/tokens.json (light/dark grouped by kind: color, font, size, radius, height, shadow, other; fontFamilies; spacingPx by use; radiusUse; motion.transitions, motion.keyframes, motion.durationsMs) and OUT_DIR/tokens.ts (T, DARK, MOTION_MS — names with dashes become underscores: --pencil-soft → T.pencil_soft).
  3. Fonts. If the families aren't installed, ask before downloading (OFL fonts from raw.githubusercontent.com/google/fonts/main/ofl/<name>/) into the video project's assets/fonts/.
  4. Sheet. python3 ~/.claude/skills/ui-tokens/scripts/sheet.py OUT_DIR/tokens.json OUT_DIR/token-sheet.png --fonts assets/fonts --title "NAME · design tokens" (1920×1080: base colours with their dark twin in the corner, paired category colours as chips, the type families at their roles, the rem scale in px, radii, spacing bars, the product's own transitions).
  5. Check against the screens. Open one real screenshot next to the sheet. Anything on screen that isn't in the sheet (a hard-coded hex, a one-off radius) goes into tokens.json by hand with a "note".
  6. Read the motion. The product's own durations (e.g. 150–400 ms opacity/background) set the floor for the video's UI motion: the video may slow and exaggerate them for reading at 30 fps, but keeps what moves and in what order. Say this in one line in the hand-off.

Read the full file on GitHub · 36 lines

Files

What ships with it

2 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. 3d ago First seen · 36 lines · 141 tokens per session scan A 86cdbd104ba5

Subscribe to this mod's changes

ui-tokens is a skill published in the GitHub repository glebis/claude-skills (417 stars, last pushed today), licensed MIT. It adds 141 tokens to every session and 743 once invoked, about $0.0006 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-11-27.

Related

ui-tokens compared with skills from other repositories

ui-tokens next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-tokensglebis/claude-skillsSkill417todayMITA141Claude Code, Codex
frontend-patternsJartan-LLC/grimoireSkill46d agoMITA21Claude Code
draw-uioil-oil/draw-uiSkill5735d agononeA93Claude Code, Codex
gpt-tastewedabro/bro-skillsSkill31mo agoMITA59Claude Code, Codex
speckit.uiuxwedabro/bro-skillsSkill31mo agoMITA30Claude Code, Codex
design-taste-frontendwedabro/bro-skillsSkill31mo agoMITA80Claude Code, Codex
frontend-designdisplay-design-studio/skillsSkill34d agononeA40Claude Code, Codex