ワンクリックで
figma-token-extraction
Design token extraction pipeline — frequency counting, semantic naming, token replacement, and varRef stripping.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Design token extraction pipeline — frequency counting, semantic naming, token replacement, and varRef stripping.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Complete Figma REST API reference — all endpoints, tier levels, auth, geometry parameters, and rate limits.
How to register new MCP tools — tool object pattern, Zod schemas, handler conventions, and conditional registration.
Release workflow — release-please, npm publish, server.json version sync, and MCP registry publishing.
SVG vector generation from Figma VECTOR nodes — caching, path merging, bounds calculation, and disk writing.
| name | figma-token-extraction |
| description | Design token extraction pipeline — frequency counting, semantic naming, token replacement, and varRef stripping. |
I know the full design token extraction pipeline in src/figma/tokenizer/.
extractTokens() at src/figma/tokenizer/index.ts)collectFigmaVarRefs() walks root + componentSets gathering _varRefs sidecars from Style and Layout objects. First-encountered name wins.
countFrequencies() (in frequencies.ts) tallies colors, spacings, radii, shadows, typographies, padding combos, heights. Var-bound values are skipped.
buildSemanticTokenRegistry() (in registry.ts) assigns semantic names from frequency-ordered data. Categories:
COLOR_SEMANTIC_NAMES (primary, secondary, background, text, border, ...)SHADOW_SEMANTIC_NAMES (card, dropdown, modal, ...)PADDING_COMBO_SEMANTIC_NAMESMerges invented tokens with Figma variable entries. Multiple Figma variables → same raw value → kept distinct.
replaceNodeTokens() and replaceComponentSetTokens() (in replace/) swap raw rgba/dimensions for { token: "category.name" } references.
_varRefsstripVarRefsFromResponse() removes all _varRefs sidecars — must not appear in final output.
Use this when: