tokens

tokens is a skill for Claude Code from byjunyoung/claude-product-skills. It costs 122 tokens per session (5,383 once invoked), scanned A, original, MIT.

A checker for whether colors in a Figma design are connected to named design-system tokens, which are reusable style values.

In plain words
What is it for?
Use it to inspect a Figma frame or page, check token usage, and propose or apply supported color bindings.
Why use it?
It finds hardcoded colors, explains which token mappings have evidence, and separates safe suggestions from uncertain ones.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the fig plugin — 14 skills, 1 hook shipped together

Good fit Use it to inspect a Figma frame or page, check token usage, and propose or apply supported color bindings.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add byjunyoung/claude-product-skills
Claude Code
/plugin install fig

Made for: Claude Code.

Or install fig, the plugin that ships this one along with the rest of its 14 skills, 1 hook.

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/byjunyoung/claude-product-skills/tokens"><img src="https://agentmods.dev/badge/skills/byjunyoung/claude-product-skills/tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,383 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.00122 $0.05383
Opus 5.5 $0.00049 $0.02153
Sonnet 5.5 $0.00024 $0.01077
Haiku 4.5 $0.00012 $0.00538

Measured 1mo ago against content hash d3ee3f83d631, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

plugins/fig/skills/tokens/SKILL.md · 145 lines

How it starts

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

fig:tokens — bind hand-typed colours to design system tokens

Connects colours typed in by hand to the design system's variables, through a mapping that has evidence behind it. Theming, rebranding, and consistency only hold if every color goes through a token. Finding those colours is /fig:lint's job — its [unbound] check, which holds a section back from handoff where a colour matches a token exactly. This skill binds them, after the person has seen what each colour maps to and what binding it changes.

Prerequisites: always load the figma:figma-use skill before calling use_figma.

Seat check before the first write — call whoami once. Where every plan it lists carries seat: View, stop before any use_figma write and say so: the reading half of this skill runs on a View seat, the writing half needs an Edit seat on the file's plan, and no retry changes that. Where the seats are mixed, go ahead — and if the first write comes back as a permission error, report the seat table and stop rather than retrying.

When to invoke

  • /fig:lint reported [unbound] colours and they should go onto tokens
  • "convert the hardcoded hex values to tokens", "bind these colours to tokens"
  • A section held back from handoff by an exact-token colour

A request that only asks to check — "find unbound colors", "check the token bindings" — runs the scan (step 1), reports it, and stops before binding.

When NOT to invoke

  • Only finding the unbound colours → /fig:lint (its colour-token check reads and never writes)
  • Frame naming and section tidying → /fig:prep
  • Structure and flow rule violations → /fig:lint
  • Flow arrows → /fig:arrows
  • Creating the tokens (variables) themselves → figma:figma-generate-library
  • Designing screens → /fig:draw

Inputs

  • figma_url (required): the page to bind
  • section (optional): a section link or a section name, read the way /fig:lint reads it — that section and the sections nested in it. Omitted, the whole page. The scripts scope by page or section, so a link to a frame narrows to the section that holds it, and the preview says so. A frame that sits in no section narrows nothing: the preview says that too, and that the run covers the whole page

Read the full file on GitHub · 145 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. 1mo ago Changed d3ee3f83d631
  2. 1mo ago Changed · -87 lines · -34 tokens per session 17cec2444953
  3. 2mo ago Changed d816fe84c548
  4. 3mo ago First seen · 232 lines · 156 tokens per session scan A 05f08e76d9d6

Subscribe to this mod's changes

tokens is a skill published in the GitHub repository byjunyoung/claude-product-skills (5 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 5,383 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-31.

Related

tokens compared with skills from other repositories

tokens next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tokensbyjunyoung/claude-product-skillsSkill5todayMITA122Claude Code
accessibility-per-componentmurphytrueman/design-system-opsSkill2292mo agoMITA68Claude Code
figma-variable-auditmurphytrueman/design-system-opsSkill2292mo agoMITA63Claude Code
metadata-schema-generatormurphytrueman/design-system-opsSkill2292mo agoMITA62Claude Code
theme-auditmurphytrueman/design-system-opsSkill2292mo agoMITA57Claude Code
token-auditmurphytrueman/design-system-opsSkill2292mo agoMITA72Claude Code
token-compliancemurphytrueman/design-system-opsSkill2292mo agoMITA62Claude Code