Skill library

Agent skill Frontend

Figma Generate Library

Connect design references and design tools to frontend implementation.

  • Design to code
  • Design systems

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add figma/mcp-server-guide --skill figma-generate-library --agent claude-code --yes

Check this file in your project.claude/skills/figma-generate-library/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add figma/mcp-server-guide --skill figma-generate-library

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An editable Design library file and component area, access to the approved foundations, and the code or specification for the requested field states.

View operation manual

What this skill helps with

  • Connect design references and design tools to frontend implementation.

Good for

  • Design handoff
Task
Add one reusable field component family
Requirements
An editable Design library file and component area, access to the approved foundations, and the code or specification for the requested field states.
Deliverable
One field component set with its approved state variants, linked foundations, and a compact review frame of live instances.
Skill name
figma-generate-library

Make the scope and outcome verifiable

An underspecified brief

Build the input and quietly add missing patterns for all forms.

The approved state matrix and foundations define the component task. Library-wide patterns need their own scope and source of truth.

A result you can check

  1. Audit the current component area and find the exact styles and variables.
  2. Create the agreed variants with their variable bindings and a review frame.
  3. Check state properties on the review instances and inspect the result.

Figma Generate Library operation manual

One field component set with its approved state variants, linked foundations, and a compact review frame of live instances.

An editable Design library file and component area, access to the approved foundations, and the code or specification for the requested field states.

  1. Confirm the state matrix and reuse existing foundations

    Audit the current component area and find the exact styles and variables.

    Prompt · Step 1
    Use the official Figma figma-generate-library Skill and read its installed SKILL.md.
    
    Inspect [editable Design library and component area], [field source code], and [approved state matrix]. Load figma-use for canvas inspection. Inventory the closest matching assets and file naming pattern, then enumerate available libraries before searching for missing assets. Show which text styles and semantic border, surface, spacing, and focus variables apply to each state. Flag missing foundations that this field actually needs.
  2. Build the approved family and its examples

    Create the agreed variants with their variable bindings and a review frame.

    Prompt · Step 2
    Use the official Figma figma-generate-library Skill and read its installed SKILL.md.
    
    In [approved component area], build one field component set for [confirmed states, for example Default, Focus, Error and Disabled]. Use only confirmed variant and text properties. Reuse approved styles and bind the semantic variables to the matching layers. Add a compact review frame containing one instance of each state, with master assets outside the review frame. Return IDs for the component set and review frame.
  3. Validate the instances and library bindings

    Check state properties on the review instances and inspect the result.

    • The component set covers the approved states and each review instance resolves to its intended state.
    • Semantic variable bindings, text styles, and the review frame match the approved source.
    Prompt · Step 3
    Use the official Figma figma-generate-library Skill and read its installed SKILL.md.
    
    Read back [field component set and review frame]. Compare variant count and names with the approved matrix, inspect componentProperties on each review instance, and verify the relevant variable bindings and text style IDs. Check that [error example] shows the right helper text and [disabled example] matches its approved colors in a single screenshot. Return the component link and any unresolved checks. Leave library publication for a separate request.

Look up this workflow decision

Read the matching section in the installed Figma Skill.

An existing semantic variable already covers the field borderSKILL.md
Command or reference
Single component or family
Examples
Reuse the actual variable ID and verify the binding in the field state that uses it.

Troubleshooting

Does building a component publish the library?

This workflow creates and validates the component set in the editable file. Publishing is a separate action that depends on library permissions and the project’s release process.

How can I tell whether a check ran in Figma?

Installing a Skill adds instructions. Live checks need a connected Figma MCP client with the required tool, feature and file permissions. Ask for the actual tool response, resolved node ID, preview or applied change that proves the check.