You will turn one Figma component into structured metadata that an AI agent can read, then use it to build the component with Claude Code and Storybook. It suits designers and front-end developers who already have a small component library. You need a Figma account, Claude Code and a Storybook project.
YouTube video: Design Systems for Beginners (Claude Code + Figma)
Caption availability is unknown. Check the CC control in the YouTube player.
Choose a chapter (4)
- Video length
- 21 min 38 s
- Time to do it
- 2 hours
- Difficulty
- Medium
- Steps
- 10
What you need
Steps
Pick one component from your Figma library, such as a button, and list every variant, size and state it has. An agent can only use what you describe in words.
Create a metadata file for that component in your repo, one file per component, in plain markdown or JSON that Claude Code can read.
Write the props section. List each property, the values it accepts and a one-line description of what it does.
Add the relationships. Say which components sit inside this one, what it pairs with and where it must not be used.
Map the design tokens. Name the spacing, colour and type tokens the component uses instead of raw pixel values or hex codes.
Replace technical names with semantic ones, so a prop reads as intent rather than style, for example primary rather than blue-fill.
Add an anti-patterns section that states what the agent must never do, such as inventing variants or hardcoding colours.
Connect Figma MCP to Claude Code, point it at the component frame and ask it to build the component from the metadata file.
Render the result in Storybook and check each variant and state against the Figma frame side by side.
Fix what the agent missed by editing the metadata, then save the whole workflow as a reusable skill file you can run again.
Tips and common mistakes
Start with the component the agent gets wrong most often, not the whole library. One well described button beats twenty thin files.
Keep descriptions short and literal. Words like modern or clean give the agent nothing to check its output against.
Store each metadata file next to the component code so it moves with the component when files are renamed.
Repeat your most important anti-patterns in more than one place, since the agent weighs rules it sees often.
Questions
Do I need Figma MCP to do this?
No. The metadata files do most of the work and you can write them by hand. Figma MCP just lets Claude Code read your frames directly, which saves copying values across.
Which components should I convert first?
Start with the ones agents misuse most, usually buttons, text inputs and cards. Convert one fully before you touch the rest of the library.
How do I check the agent followed the rules?
Ask it to list which metadata file and which rule it used for each decision, then compare that answer with the Storybook output.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


