Agent skill · Figma
Figma Code Connect skill for Claude Code, Codex and Cursor
Officialname: figma-code-connect★ 2.1k (repo)pushed 2026-10-20SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Creates and maintains Figma Code Connect template files that map Figma components to code snippets. Use when the user mentions Code Connect, Figma component mapping, design-to-code translation, or asks to create/update .figma.ts or .figma.js files.
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install Figma Code Connect
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect
Copy the skill folder into ~/.claude/skills (all projects) or .claude/skills (this repo). Claude Code picks it up without a restart. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect -a claude-code # or by hand: git clone --depth 1 https://github.com/figma/mcp-server-guide.git /tmp/figma-code-connect-src cp -r /tmp/figma-code-connect-src/skills/figma-code-connect ~/.claude/skills/figma-code-connect
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/figma/mcp-server-guide.git /tmp/figma-code-connect-src cp -r /tmp/figma-code-connect-src/skills/figma-code-connect ./figma-code-connect zip -r figma-code-connect.zip figma-code-connect
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install figma/mcp-server-guide figma-code-connect
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/figma/mcp-server-guide.git --path skills/figma-code-connect
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add figma/mcp-server-guide --skill figma-code-connect -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
- Uses disable-model-invocation in its frontmatter: Claude Code extensions to the Agent Skills format. Other agents load the skill but may not honor that field.
What's in the SKILL.md
- Overview
- Prerequisites
- Step 1: Parse the Figma URL
- Step 2: Discover Unmapped Components
- Step 3: Fetch Component Properties
- Step 4: Identify the Code Component
- Step 5: Create the Template File (.figma.ts)
- File location
- Template structure
- Property mapping
- Exhaustive variant handling
- Interpolation in tagged templates
- Finding descendant layers
- Nested configurable instances
- Nested component example
- Conditional props
- Step 6: Validate
- Inline Quick Reference
- instance.* Methods
- InstanceHandle Methods
- TextHandle Properties
- SelectorOptions
- Export Structure
- Rules and Pitfalls
- + 2 more
Bundled files
- references/advanced-patterns.md
- references/api.md
Loaded only when the instructions point to them.
Facts
- Skill name
- figma-code-connect
- Publisher
- Figma (official)
- Repo
- figma/mcp-server-guide
- SKILL.md size
- 2,740 words, 523 lines
- Bundled files
- 2, 2 docs
- Repo stars
- 2.1k (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
Pairs with the Figma MCP server: the server gives the agent the tools, the skill teaches it how to use them.
More skills from figma/mcp-server-guide
- Figma Design to Code: Turns a Figma frame into code using the Figma MCP server's design context.
- Figma Generate Design: Recreates an app page or layout from code as a design inside Figma.
- Figma Use: Required primer for the Figma MCP write tool so edits to Figma files work reliably.
Related frontend & design skills
- Frontend Design · Anthropic
- Web Artifacts Builder · Anthropic
- shadcn/ui · shadcn
- React Composition Patterns · Vercel
- React Best Practices · Vercel
- React View Transitions · Vercel
- Web Design Guidelines · Vercel
- Web Performance Audit · Cloudflare
FAQ
What does the figma-code-connect skill do?+
Creates Code Connect files that map Figma components to their real code snippets. In its own SKILL.md, Figma describes it as: "Creates and maintains Figma Code Connect template files that map Figma components to code snippets. Use when the user mentions Code Connect, Figma component mapping, design-to-code translation, or asks to create/update .figma.ts or .figma.js files."
How do I install the figma-code-connect skill?+
Run npx skills add figma/mcp-server-guide --skill figma-code-connect and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/figma-code-connect/SKILL.md; in Codex and Cursor in .agents/skills/figma-code-connect/.
Does Figma Code Connect work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more. It also sets disable-model-invocation, which are Claude Code extensions; other agents may ignore it.
Who maintains Figma Code Connect?+
Figma, the company or project behind it, in the figma/mcp-server-guide repo on GitHub, last pushed 2026-10-20.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers