Design

Sync Figma variables to the code tokens

Ask Merlin in Slack after you change variables in Figma. It compares them with your token files and opens a pull request for what changed.

@Merlin from now on, when someone in #design-system asks you to sync tokens, read the variables in our Figma library with the Figma MCP and compare them with the token files in the repository. Open a pull request that updates the changed tokens and adds the new ones, then reply in the thread with what was added, changed and removed in Figma. Don't delete a token the code still uses: list it in your reply instead.

#design-system
Get started for free
  1. Starts whenA designer mentions @Merlin in #design-system after updating variables in the Figma library
  2. Merlin worksClaude Code or Codex reads the variables with the Figma MCP and compares each one with the token files in the repository
  3. You getA pull request with the added and changed tokens, and the full list of differences in the thread

Tools

  • Slack
  • Figma
  • GitHub

Capabilities

  • Integrations
  • Your agent's MCP

How it works

From published Figma variables to a token pull request.

Mention @Merlin in #design-system once the new variables are published in the Figma library.

Acme

Channels

general

eng

product

support-eng

data

design-system

Direct messages

Merlin

Mia

design-system

24

MessagesAdd canvasFiles

Today

Mia11:30

@Merlin I just published the warmer grays in the Acme library. Can you sync the tokens?

Message #design-system

Before and after

The code's tokens keep up with the Figma library.

Without Merlin

Someone diffs the Figma variables against the token files value by value.

  1. 01Open the library's variables
  2. 02Copy each changed value
  3. 03Open the token files
  4. 04Compare them one by one
  5. 05Update the changed tokens
  6. 06Add the new ones
  7. 07Search for removed tokens
  8. 08Rebuild the tokens
  9. 09Open a pull request
  10. 10Post what changed

With Merlin

One mention after publishing gets the token changes into a pull request.

  1. @Merlin in #design-systemAfter the library is published
  2. Compares variables with the token filesCodex with the Figma MCP
  3. Pull request with the token changesAdded, changed and removed, in the thread

Setup

Add Merlin to #design-system, then give the agent Figma and your code.

Set these up once and any designer can sync tokens right after publishing.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 03Add Figma to your agentYour agent's MCPConnect the Figma MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  4. 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
  5. 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  6. 06Use a Figma Dev or Full seatYour agent's MCP

    Figma gives View and Collab seats and its Starter plan only a few MCP calls a month. Sign the Figma MCP in with a Dev or Full seat on a paid plan on the machine that syncs the tokens.

  7. 07Share a machine that has the codeRuntime

    Most designers don't keep the repository checked out. An engineer can share a machine that has it with the workspace. Merlin picks the asker's own machine first and a shared one after that.

  8. 08Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.

Prompt

Tell Merlin how to sync tokens from Figma.

@Merlin from now on, when someone in #design-system asks you to sync tokens, read the variables in our Figma library with the Figma MCP and compare them with the token files in the repository. Open a pull request that updates the changed tokens and adds the new ones, then reply in the thread with what was added, changed and removed in Figma. Don't delete a token the code still uses: list it in your reply instead.

#design-system

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin in Slack

  1. IntegrationThe Slack app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex compares variables with your tokens
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin replies with the pull request

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.