Skill library

Agent skill Frontend

Sync Figma Token

Connect design references and design tools to frontend implementation.

  • Design to code
  • Design systems
  • Color

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add firebenders/sync-figma-token-skill --skill sync-figma-token --agent claude-code --yes

Check this file in your project.claude/skills/sync-figma-token/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add firebenders/sync-figma-token-skill --skill sync-figma-token

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Local token JSON, an authorized Figma target and readable variables, an explicit mode and naming map, and edit access only if applying a delta.

View operation manual

What this skill helps with

  • Connect design references and design tools to frontend implementation.

Good for

  • Design handoff
Task
Preview token drift and apply only an approved delta
Requirements
Local token JSON, an authorized Figma target and readable variables, an explicit mode and naming map, and edit access only if applying a delta.
Deliverable
A persisted dry-run report, followed after approval by a final comparison that identifies remaining drift or exceptions.
Skill name
sync-figma-token

Make the design workflow verifiable

An underspecified brief

Sync both directions immediately and delete anything stale.

The direction, mode, naming and conflict policies must be decided before writes. A dry-run separates normalization from approval.

A result you can check

  1. Normalize keys, modes and types while preserving alias relationships.
  2. Show proposed operations and before/after values, with actual comparisons.
  3. Retain the approved policy and persist fresh evidence.

Sync Figma Token operation manual

A persisted dry-run report, followed after approval by a final comparison that identifies remaining drift or exceptions.

Local token JSON, an authorized Figma target and readable variables, an explicit mode and naming map, and edit access only if applying a delta.

  1. Agree on direction and read both inventories

    Normalize keys, modes and types while preserving alias relationships.

    Prompt · Step 1
    Use Firebenders’s installed sync-figma-token Skill and read its SKILL.md first.
    
    Use [local token JSON] and [approved Figma file]. Load figma-use before any use_figma call. Read the Figma inventory only in this step. For this run select code_to_figma, archive_only and manual_review, then record the explicit naming and light/dark mode mapping. Normalize values, alias targets, scopes and WEB syntax.
  2. Report the dry run and stop for approval

    Show proposed operations and before/after values, with actual comparisons.

    Prompt · Step 2
    Use Firebenders’s installed sync-figma-token Skill and read its SKILL.md first.
    
    Compare [normalized token inventories], checking each mode, RGBA values with the Skill’s tolerance and the canonical target of aliases. Output the operation counts and precise drift details, persist the documented dry-run JSON, and stop after asking whether to apply this exact plan. Surface manual-review conflicts before attempting any write.
  3. Apply the approved delta and recompare

    Retain the approved policy and persist fresh evidence.

    • The dry-run report identifies actual value, mode or alias differences and records the applicable policies.
    • Writes follow explicit approval and the final report comes from a fresh comparison.
    Prompt · Step 3
    Use Firebenders’s installed sync-figma-token Skill and read its SKILL.md first.
    
    Only after explicit approval of [dry-run report], apply the approved changes in documented dependency order with sequential writes. Re-read both sides afterward, persist the final comparison and identify any unresolved drift or approved exception. Use archive-only handling for stale variables.

Look up this workflow decision

Read the relevant section in the installed Skill.

The color looks the same but the alias target changedSKILL.md
Command or reference
Dry-run output format
Examples
Compare the normalized alias target independently of resolved values and record an alias mismatch.

Troubleshooting

Does the dry run alter Figma variables?

The Skill requires a read-only dry run and a separate affirmative approval before applying writes.