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.
- Starts whenA designer mentions
@Merlinin#design-systemafter updating variables in the Figma library Merlin worksClaude Code or Codex reads the variables with the Figma MCP and compares each one with the token files in the repository
- 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
@Merlinin#design-systemonce the new variables are published in the Figma library.Claude Code or Codex reads the library's variables with the Figma MCP and compares each one with the token files in the repository.
The pull request updates the changed tokens and adds the new ones. The thread lists what was added, changed and removed. Any token the code still uses is kept.
Mention @Merlin in #design-system once the new variables are published in the Figma library.
Claude Code or Codex reads the library's variables with the Figma MCP and compares each one with the token files in the repository.
The pull request updates the changed tokens and adds the new ones. The thread lists what was added, changed and removed. Any token the code still uses is kept.
Acme
Channels
general
eng
product
support-eng
data
design-system
Direct messages
Merlin
Mia
design-system
24
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.
- 01Open the library's variables
- 02Copy each changed value
- 03Open the token files
- 04Compare them one by one
- 05Update the changed tokens
- 06Add the new ones
- 07Search for removed tokens
- 08Rebuild the tokens
- 09Open a pull request
- 10Post what changed
With Merlin
One mention after publishing gets the token changes into a pull request.
@Merlinin#design-systemAfter the library is publishedCompares variables with the token filesCodex with the Figma MCP
- 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.
- 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.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 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.
- 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.
- 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 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.
- 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.
- 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.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex compares variables with your tokens
- SteeringYour team steers the work in the thread
- ResultMerlin replies with the pull request
Related use cases
More design tasks you can hand to Merlin.
- Integrations
Design
Replace hard-coded colors with design tokens
Delegate a token cleanup to Merlin in Linear. It swaps raw hex values for the matching tokens, checks the screens look the same and opens a pull request.
Token cleanup issue delegated to MerlinA pull request linked on the issue - AutomationsIntegrationsYour agent's MCP
Design
Check the design system for drift every month
Once a month, Merlin compares your Figma library with the components in code. You get what differs, component by component, in #design-system.
Day 1 of every month at10:00What differs, posted in#design-system - IntegrationsYour agent's MCP
Design
Add new icons from Figma to the code
Share new icons from Figma with Merlin in Slack. It exports them, adds them to your icon set and opens a pull request.
@Merlinin#design-systemwith a Figma linkA pull request adding the icons
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.