Agent skill

sb-figma Skill: Figma Tokens and Components Into Storybook

The sb-figma skill lets an AI coding agent check Figma variables against code tokens, deliver approved Figma components into Storybook, and build Code Connect mappings.

Install
npx skills add strongeron/storybook-workbench -s sb-figma
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the sb-figma skill?

The sb-figma skill bridges Figma and Storybook in both directions through the native Figma MCP. An AI coding agent maps Figma variables to code tokens with drift reports, delivers approved components with story authoring, and builds Code Connect mappings for Figma Dev Mode.

sb-figma is a skill in the storybook-workbench bundle. It bridges Figma and Storybook in both directions through the native Figma MCP, moving an approved Figma design into production Storybook and pushing the code's tokens back to Figma.

Undecided designs go to sb-explore instead. The requests it answers include syncing Figma tokens, mapping Figma variables to a design system, checking design and code token parity, and delivering an approved Figma component into Storybook.

The three jobs it runs

  • Job 1 maps foundation tokens for color, spacing and type from Figma variables, with design and code parity and drift per mode.
  • Job 2 delivers an approved Figma component in three steps: extract, build and embed, authoring stories with the sb-stories rules.
  • Job 3 builds Code Connect mappings from components, stories, token parity and usage so Figma Dev Mode shows the real code.

How it keeps its work repeatable

Every Figma MCP call is persisted to a store under .storybook/figma/ before it is used. Downstream steps read the store instead of calling the MCP again. Re-capturing a node overwrites it, so a git diff shows what moved in Figma.

Who the sb-figma skill is for

Best for

  • Teams with a Storybook on React and Vite whose Figma design is already approved.
  • Design system owners who want Figma variables compared against the code's token CSS in every mode.
  • Teams on an Organization or Enterprise Figma plan who want Code Connect mappings shown in Dev Mode.

Not for

  • Reading your selected layer through a companion Figma plugin and returning React, Tailwind or styled-components code, which the Sunnyside Figma MCP server covers.
  • Reading a Figma file or a live website into a compact design graph, which the Plumb MCP server covers.
  • Briefing an AI coding agent on Figma auto-layout, variants, type scales and detached instances, which the figma-expert skill covers.