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.

#design-system
Get started for free
  1. Starts whenA designer mentions @Merlin in #design-system with the component's name
  2. Merlin worksClaude Code or Codex reads the component's code and its page in the Figma library, then writes the usage guidance with examples
  3. 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 @Merlin in #design-system with the component's name.

Acme

Channels

general

eng

product

support-eng

data

design-system

Direct messages

Merlin

Mia

Leo

design-system

24

MessagesAdd canvasFiles

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.

  1. 01Read the component source
  2. 02List each prop and its type
  3. 03Open its library page
  4. 04Compare the variants
  5. 05Copy an existing docs page
  6. 06Write when to use it
  7. 07Write real examples
  8. 08Run the docs site
  9. 09Open a pull request

With Merlin

One mention gets a docs page in a pull request, with the mismatches called out.

  1. @Merlin in #design-systemWith the component's name
  2. Reads the code and the Figma pageClaude Code with the Figma MCP
  3. 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.

  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. 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.

  7. 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.

#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 reads the code and writes the docs
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin replies with the docs 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.