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.
npx skills add southleft/figma-console-mcp-skills --skill figma-export-tokensgit clone --depth 1 https://github.com/southleft/figma-console-mcp-skillsWrote 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/southleft/figma-console-mcp-skills/figma-export-tokens)<a href="https://agentmods.dev/skills/southleft/figma-console-mcp-skills/figma-export-tokens"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp-skills/figma-export-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.
<a href="https://agentmods.dev/skills/southleft/figma-console-mcp-skills/figma-export-tokens"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp-skills/figma-export-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00144 | $0.01237 |
| Opus 5.5 | $0.00058 | $0.00495 |
| Sonnet 5.5 | $0.00029 | $0.00247 |
| Haiku 4.5 | $0.00014 | $0.00124 |
Grade A, and why
figma-export-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 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- export-tokens-figma — 89% identical, 10 lines differ
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
figma-export-tokens — Figma variables → design tokens
Read every local variable in a Figma file and emit design-token files. The canonical output is DTCG (W3C Design Tokens Community Group JSON); CSS, Tailwind, SCSS, TS, and JSON derive from it.
Why this beats a raw REST export: Figma's Variables REST API is Enterprise-only (403 on
Starter/Pro/Org). This skill reads through the Plugin API via use_figma, so it works on every
plan and resolves aliases + multi-mode values that get_variable_defs (default mode only) drops.
Skill boundaries
use_figmarules — load the officialfigma-useskill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-levelawait+return(no IIFE, nofigma.closePlugin();console.logis not returned), inputs inlined asconstat the top of each script, colors in 0–1 range, load fonts before any text op,await figma.getNodeByIdAsync(...), and atomic errors (a failed script applies nothing — read the error, fix, retry).- Reverse direction (code → Figma variables) → use the
figma-import-tokensskill.
Workflow
- Confirm scope & format. Ask (or infer) the target format (
dtcgis the safe default), whether to split by mode/collection, and the output path. Get the file key from the active Figma file or a URL the user provides. - Read the variables. Run
scripts/read-variables.jsviause_figma(skillNames: "figma-export-tokens"). It returns the normalized collections/modes/variables tree with hex colors, resolved alias references, scopes, and code syntax. - Save the read output to a file, e.g.
variables.json. - Convert — deterministically. Run the bundled converter (Node 18+, zero dependencies). Do not
hand-write the conversion — this script is the source of truth and produces identical output every
run:
This matches the Consolenode scripts/convert-tokens.mjs variables.json --format dtcg --out tokens/ # --format: dtcg (default) | css-vars | tailwind-v4 | tailwind-v3 | scss | ts-module # | json-flat | json-nested | style-dictionary-v3 | tokens-studio # (aliases: css, tailwind, ts) # --out <dir> write file(s) — tokens-studio writes several; omit to print to stdout # --prefix <p> prefix CSS/SCSS var names # --modes Light,Dark include only these modes (default: all) # --collection <substr> include only collections whose name contains <substr>figma_export_tokensformatters. It handles exactly what freehand conversion gets wrong: per-type units (opacity/line-height unitless, spacing/radiuspx); multi-mode output (CSS & Tailwind v4 emit:root+.dark/[data-theme]; TS/JSON emit{mode: value}; SCSS suffixes modes; DTCG keeps them in$extensions); aliases →var()/{ref}; font-weight names → numbers; DTCG round-trip metadata; and it warns on slug collisions and non-numeric weights. (style-dictionary-v3andtailwind-v3use the primary mode, matching the Console — those formats have no native multi-mode encoding.) - Report. Surface the written path(s) and any warnings the converter printed (collisions / weight issues are real findings about the Figma file, worth flagging to the user).
What ships with it
3 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.
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 · 62 lines · 144 tokens per session scan A 66691caa5d46
figma-export-tokens is a skill published in the GitHub repository southleft/figma-console-mcp-skills (95 stars, last pushed 2mo ago), licensed MIT. It adds 144 tokens to every session and 1,237 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-08-30.
figma-export-tokens compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| figma-export-tokenssouthleft/figma-console-mcp-skills | Skill | 95 | 2mo ago | MIT | A | 144 | Claude Code |
| role-ui-ux-designeroyi77/1ai-skills | Skill | 17 | yesterday | MIT | A | 44 | Claude Code |
| design-to-codeJPeetz/agent-skills | Skill | 15 | 9d ago | none | A | 85 | Claude Code, Codex |
| design-mdmateaix/mateclaw | Skill | 1.2k | yesterday | Apache-2.0 | A | 14 | Claude Code, Codex |
| better-designmarvkr/better-design | Skill | 556 | 12d ago | MIT | A | 77 | Codex |
| token-auditmurphytrueman/design-system-ops | Skill | 215 | 1mo ago | MIT | A | 72 | Claude Code |
| accessibility-per-componentmurphytrueman/design-system-ops | Skill | 215 | 1mo ago | MIT | A | 68 | Claude Code |