gztcode/figma-to-code-parity-agent/design-token-audit
Claude Code and agent skill by gztcode/figma-to-code-parity-agent
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Map Figma variables and styles to project design tokens before code generation. Use during Figma-to-code work whenever typography, color, spacing, radius, shadow, or component style values must be preserved without uncontrolled hardcoding.
Install
npx vskill@latest install gztcode/figma-to-code-parity-agent/design-token-auditSKILL.md
The same SKILL.md was published earlier as gztcode/figma-to-code-parity-agent/design-token-audit.
Design Token Audit
对 iOS SwiftUI 目标,结合 ../../references/ios-swiftui-parity.md 中的 token 和 typography 规则执行。
Input
- Figma design analysis
- Project path
- Project profile
- Target platform
- Existing token files、theme files 或 style definitions
Output
- Token mapping table
- Missing token list
- Token coverage percentage
- Mapping confidence:
exact、semantic、approximate、missing - Approved raw-value exceptions
- local-only vs shared token changes 的建议
Must
- 在项目中搜索 existing typography、color、spacing、radius、border 和 shadow tokens。
- 优先使用 project profile 中记录的 token inventory,只有 profile 缺失或低置信度时重新扫描。
- 当 semantics 和 values 匹配时,把 Figma variables/styles 映射到 project tokens。
- 当 token 不存在时,记录 exact values。
- 除非明确缺少 shared token,否则优先使用 local screen-level values,而不是 global token changes。
- 识别 font availability 和 fallback risk。
- 保留平台单位:iOS 用 points,Android 用 dp/sp,其他平台使用项目定义单位。
- 对 colors、typography、spacing、radius、shadow 分别输出 mapping,不要只给总表。
- 将 colors、typography、spacing、radius 标记为 P0 mapping;将 shadow、blur、gradient 标记为 P1 mapping。
- 对无法映射的核心 token 输出
Token gap,交给implementation-gate判定。 - 按
../../references/evidence-schema.md输出 figma token、platform token、match type 和 confidence。 - 计算 critical token coverage;colors、typography、spacing、radius 默认要求 100%。
Must Not
- 当 matching token 存在时,不允许 hardcode raw values。
- 不允许把 core token gap 留给 platform builder 自行选择近似值。
- 不允许为了更快完成一个 screen 而创建 global tokens。
- 没有批准,不允许 rename 或 repurpose existing tokens。
- 没有检查 values 和 semantics,不允许把视觉相似颜色当作相同颜色。
- 不允许因为当前颜色一致,就把不同 semantic roles 合并成一个 token。
- 不允许忽略 opacity、elevation、blur 或 blend mode values。
Evidence
- 已搜索的 token file paths
- Mapping table:Figma value/style -> project token
- Coverage percentage
- Mapping confidence
- Missing token list
- 带原因的 raw-value exception list
Failure Mode
出现以下情况时,报告 blocker 或 limitation:
- Token files 无法识别。
- Design values 依赖 unavailable fonts 或 platform-specific effects。
- Matching tokens 有歧义,且选择其中一个会影响 shared UI semantics。
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-token-audit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gztcode/figma-to-code-parity-agent/design-token-audit)