Agent skill Frontend
Figma Code Connect
Connect design references and design tools to frontend implementation.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add figma/mcp-server-guide --skill figma-code-connect --agent claude-code --yesCheck this file in your project.claude/skills/figma-code-connect/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add figma/mcp-server-guide --skill figma-code-connectSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A URL with the published library Button’s node-id, read access to it, the local UI repository, and an authenticated Figma MCP connection that exposes the mapping workflow.
View operation manualWhat this skill helps with
- Connect design references and design tools to frontend implementation.
Good for
- Design handoff
- Task
- Map one published Button to its real code component
- Requirements
- A URL with the published library Button’s node-id, read access to it, the local UI repository, and an authenticated Figma MCP connection that exposes the mapping workflow.
- Deliverable
- One local Button.figma.ts template, checked against the published component’s properties and the actual code props.
- Skill name
figma-code-connect- Repository
figma/mcp-server-guide
Make the scope and outcome verifiable
An underspecified brief
Connect the Button by name and mark it available in Dev Mode.
Matching names can conceal different props. A local template review and an active connection in Figma have different acceptance checks.
A result you can check
- Read the canonical design properties and get agreement on the component pair.
- Use typed property helpers and the repository’s actual import path.
- Check the template artifact and distinguish local checks from Figma publication.
Figma Code Connect operation manual
One local Button.figma.ts template, checked against the published component’s properties and the actual code props.
A URL with the published library Button’s node-id, read access to it, the local UI repository, and an authenticated Figma MCP connection that exposes the mapping workflow.
Identify the published component and its code match
Read the canonical design properties and get agreement on the component pair.
Prompt · Step 1Use the official Figma figma-code-connect Skill and read its installed SKILL.md. Read [published Button URL with node-id] and [UI repo]. Verify the current Figma seat and mapping tools. Use the installed Skill’s mapping discovery to resolve the main component and its properties, then find the code Button and check its props. Show me a table with the design property, type, code prop, and expected values. Stop here for my confirmation of the component pair.Write the parserless template
Use typed property helpers and the repository’s actual import path.
Prompt · Step 2Use the official Figma figma-code-connect Skill and read its installed SKILL.md. For [confirmed design and code Button pair], create Button.figma.ts using the Skill’s figma.code format. Map the actual size options and the label if they have code equivalents. If an icon toggle is a real boolean, map both true and false explicitly or document the actual default. Preserve any existing parser-based files. Flag unmatched properties and keep the work local.Read back a property matrix
Check the template artifact and distinguish local checks from Figma publication.
- The local .figma.ts uses figma.code and each mapped value is a valid code prop.
- The validation notes list uncovered properties and distinguish local checks from Dev Mode availability.
Prompt · Step 3Use the official Figma figma-code-connect Skill and read its installed SKILL.md. Read back Button.figma.ts and verify the default export, import path, and every mapping against the real Props type. For the confirmed size, label, and enabled or disabled icon states, show the expected snippet and identify any intentionally omitted property. Run the repo’s applicable local type check if the template is in scope. Label expected snippets as expectations and keep publication out of this task.
Look up this workflow decision
Read the matching section in the installed Figma Skill.
A property has no equivalent in the code ButtonSKILL.md
- Command or reference
Step 6: Validate- Examples
- Use the actual Props interface, record the omission, and confirm whether it is intentional.
Troubleshooting
Can a Professional plan use this workflow?
The installed Skill lists Organization and Enterprise. Figma’s current Code Connect CLI documentation also lists Professional with a Dev or Full seat and a limit of one active library and framework. Check whether the authenticated MCP connection offers this Skill’s mapping tools for your file and seat before starting.
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.