figma-design-to-code
Skill by figma
Guides AI assistants to implement Figma designs as code through the Figma MCP get_design_context tool. Useful for developers who need a screen or component built from a Figma design.
Install figma-design-to-code
Built from the published package, never by AI.
git clone --depth 1 https://github.com/figma/mcp-server-guide /tmp/mcp-server-guide && mkdir -p ~/.claude/skills && cp -r /tmp/mcp-server-guide/skills/figma-design-to-code ~/.claude/skills/figma-design-to-codeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/figma/mcp-server-guide /tmp/mcp-server-guide && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mcp-server-guide/skills/figma-design-to-code ~/.gemini/antigravity-cli/skills/figma-design-to-codeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install figma-design-to-code in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The figma-design-to-code skill gives an AI assistant a set of required steps for implementing a Figma design in code. It tells the assistant to load the skill before calling the get_design_context tool from the Figma MCP server. It also covers requesting a screenshot as a visual target, and implementing only from the high-fidelity responses returned by the tool.
Under the implementation rules, the assistant must adapt returned code to the project's stack and reuse matching components, Code Connect mappings and design library assets where they fit. Static images and SVGs must appear in their exact design positions, and no temporary Figma asset URLs may remain in code. Verification checks the requested screen only, including asset files, placement and rendered geometry. The skill is for implementing Figma designs as code, such as building a screen from a design.
Written from the project's SKILL.md and checked against it.
What it can do
- Mandatory pre-stepMust be loaded before the get_design_context Figma MCP tool is called.
- get_design_contextFetches design context for a Figma node, requesting a screenshot as the visual target.
- get_screenshotFetches a screenshot directly when get_design_context returns none.
- Sparse response handlingBatches get_design_context calls for visible child nodes when a response is sparse.
- Project adaptationAdapts returned code to the project's stack and conventions before editing.
- Component reuseReuses existing components, design library items and Code Connect mappings where they match.
- Asset handlingPlaces images and SVGs in their exact design positions and downloads them locally.
- VerificationChecks asset files, placement and rendered geometry against the design.
What you need
- Figma MCP server with access to the get_design_context tool
Try asking
- Implement this Figma design in my project using existing components
- Build this screen from Figma as code, matching the design screenshot
- Turn this Figma frame into code with the project's stack and conventions
Good to know
- Sparse get_design_context responses cannot be used directly for implementation.
- The design screenshot is a visual target and is not used as an asset in code.
- Other tools are not used to download assets unless explicitly asked.
- Verification covers only the requested screen or component.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/figma-design-to-code/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to figma-design-to-code
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
figma-design-to-code: common questions
Does this skill need to run before get_design_context?
Yes. The skill says it must be invoked before calling the get_design_context Figma MCP tool.
Can the Figma screenshot be used as an image in the code?
No. The screenshot is only the visual target, and implementation must come from the high-fidelity get_design_context responses.
What happens if get_design_context returns no screenshot?
The skill says to call get_screenshot directly before editing.
How do I install figma-design-to-code?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is figma-design-to-code free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is figma-design-to-code safe to use?
It scores 82 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to figma-design-to-code?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
