Design
Write the usage docs for a component
Ask Merlin in Slack to document a component. It writes when to use it, its props and variants with examples, then opens a docs pull request.
@Merlin from now on, when someone in #design-system asks for a component's docs, read the component's code and its page in our Figma library. Write when to use it and when not to, each prop and variant and a few examples with real props, in the same format as our other component docs. Open a pull request, reply in the thread with the link and list any place where the code and Figma disagree instead of picking one.
- Starts whenA designer mentions
@Merlinin#design-systemwith the component's name Merlin worksClaude Code or Codex reads the component's code and its page in the Figma library, then writes the usage guidance with examples
- You getA docs pull request with the new page, linked in the thread with any place the code and Figma disagree
Tools
- Slack
- Figma
- GitHub
Capabilities
- Integrations
- Your agent's MCP
How it works
From a component name in Slack to a docs pull request.
Mention
@Merlinin#design-systemwith the component's name.Claude Code or Codex reads the component's code and its page in the Figma library, then writes when to use it, its props and variants and a few examples with real props.
The thread links the pull request and lists any place where the code and Figma disagree, without picking a side.
Mention @Merlin in #design-system with the component's name.
Claude Code or Codex reads the component's code and its page in the Figma library, then writes when to use it, its props and variants and a few examples with real props.
The thread links the pull request and lists any place where the code and Figma disagree, without picking a side.
Acme
Channels
general
eng
product
support-eng
data
design-system
Direct messages
Merlin
Mia
Leo
design-system
24
Today
Mia10:15
@Merlin Combobox still has no docs page. Can you write one?
Message #design-system
Before and after
Components get docs while the details are still fresh.
Without Merlin
Someone reads the source, the Figma page and an old docs page to write a new one from scratch.
- 01Read the component source
- 02List each prop and its type
- 03Open its library page
- 04Compare the variants
- 05Copy an existing docs page
- 06Write when to use it
- 07Write real examples
- 08Run the docs site
- 09Open a pull request
With Merlin
One mention gets a docs page in a pull request, with the mismatches called out.
@Merlinin#design-systemWith the component's nameReads the code and the Figma pageClaude Code with the Figma MCP
- Docs pull requestCode and Figma differences listed in the thread
Setup
Add Merlin to #design-system, then give the agent Figma and your code.
Set these up once and anyone in the channel can ask for a component's docs.
- 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.
- 06Share a machine that has the codeRuntime
The docs live next to the code, which most designers don't keep checked out. An engineer can share a machine that has the repository and a Figma MCP signed in with a Dev or Full seat. Merlin picks the asker's own machine first and a shared one after that.
- 07Paste 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 write component docs.
@Merlin from now on, when someone in #design-system asks for a component's docs, read the component's code and its page in our Figma library. Write when to use it and when not to, each prop and variant and a few examples with real props, in the same format as our other component docs. Open a pull request, reply in the thread with the link and list any place where the code and Figma disagree instead of picking one.
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 reads the code and writes the docs
- SteeringYour team steers the work in the thread
- ResultMerlin replies with the docs pull request
Related use cases
More design tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Design
Build a component from a Figma frame
Delegate a Linear issue with a Figma frame to Merlin. You get a pull request with the component built from your existing tokens, states included.
Component issue delegated to MerlinA pull request linked on the issue - IntegrationsMemory
Design
Component blast radius
Ask Merlin in Slack what uses a shared component before you change it. You get the routes and variants that depend on it, with local copies flagged.
@Merlinin#design-systemUsage by route and variant, copies flagged - 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
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.