Agent skill

Figma Build

by awdr74100 in awdr74100/figwright

Build a Figma design from code or a description — the reverse of figma-codegen.

MITAuto-check passedFrontend & Design

Install Figma Build

skills CLI
$ npx skills add awdr74100/figwright --skill figma-build -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install awdr74100/figwright figma-build --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/awdr74100/figwright.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/figma-build .claude/skills/figma-build && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figma-build
GitHub stars
1k
Token cost
~2k tokens
SKILL.md length
943 words
Files
5 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Build a Figma design from code or a description — the reverse of figma-codegen.

  • Works in 3 steps: get_variable_defs → the file's variables… → scan_components / get_local_components →… → get_styles → shared paint / text /…
  • Ever the user wants something created
  • SKILL.md covers When to use, More than one Figma file open, First, understand the… and Two jobs — both follow the…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Figma Build is an agent skill from awdr74100/figwright. Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g. 'build this in Figma', 'create a Figma design for this', 'push this component/screen to Figma', 'turn this React/Vue into a Figma design', 'recreate this UI in Figma', 'make a Figma version of …', 'design…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/assemble-screens.md`, `references/author-design-system.md` and `references/motion.md`).

It sits in Frontend & Design, covering Project scaffolding, Design systems and Landing pages. It works with Figma, React, Vue.js and Model Context Protocol. The repository describes itself as: Free, two-way Figma MCP server. Turn designs into framework-aware code, and push code back to the canvas. Works with Claude Code, Cursor, Codex, and any MCP client. The licence is MIT.

When your agent uses it

  • Ever the user wants something created
  • Updated IN Figma from code

Example prompts

  • “build this in Figma”
  • “create a Figma design for this”
  • “push this component/screen to Figma”
  • “/figma-build”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. get_variable_defs → the file's variables (colour / spacing / radius / typography) with
  2. scan_components / get_local_components → existing components to instance rather
  3. get_styles → shared paint / text / effect styles to apply.

What it can do on your machine

Read from SKILL.md and the folder at commit c00638b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Figma Build loads about 2k tokens when it runs, and up to ~9.9k if it reads all its reference files. Until then it costs about 192 tokens; SKILL.md has 943 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~192
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from awdr74100/figwright at commit c00638b, republished under its MIT licence (© awdr74100). 943 words, ~1,954 tokens.

Download SKILL.mdSave it as .claude/skills/figma-build/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
figma-build
description
Build a Figma design from code or a description — the reverse of figma-codegen. Reuses the connected file's existing design system (components, variables, styles) instead of drawing primitives with hardcoded values. Triggers whenever the user wants something created or updated IN Figma from code or a spec — e.g. 'build this in Figma', 'create a Figma design for this', 'push this component/screen to Figma', 'turn this React/Vue into a Figma design', 'recreate this UI in Figma', 'make a Figma version of …', 'design a landing page/screen in Figma' — or whenever a coding artifact (a component, page, or spec) appears alongside a request to author in a connected Figma file. Works for full screens, sections, single components, or design-system assets.

figma-build

Turn code or a description into a Figma design that looks like it belongs in the file: reuse the components, variables, and styles that already exist, and only build what's genuinely missing. This is the mirror image of figma-codegen — same "reuse beats regenerate / reference tokens not literals" philosophy, pointed at the canvas instead of the codebase. This file is the router; deep detail lives in references/ — load a reference when its step is in play.

You operate on the connected Figma file (the plugin's current session). There is no fetch-by-URL; the user must have the target file open. Confirm a plugin is connected (ping) before building.

When to use

  • The user wants to create or update something in Figma from code or a description — a screen, view, modal/dialog/drawer/sidebar/panel, a single component, or a design-system asset.
  • Not for reading a Figma design into code — that's figma-codegen.

More than one Figma file open

Every tool result says so when it applies, so you do not have to check up front: with two or more files connected and none claimed, results carry a MORE THAN ONE FIGMA FILE IS OPEN block naming them. It matters because calls otherwise follow whichever file the user last touched, which changes when they switch tabs — so a task can read one file and write to another and report success.

When you see it, claim the file before doing anything else: list_files names every connected file, use_file({ fileName }) claims one for this session (use_file({ sessionId }) when two open files share a name — Figma allows that, and x (Copy) is how it happens). Every later call then reaches that file whatever is in front, including while its tab sits in the background. If the user has not said which file, ask — do not guess from the names.

First, understand the environment, then build (provider-first)

The write-side mirror of codegen's grounding, and the most important habit: an off-looking build almost always comes from invented values or assumed conventions. So understand this user's actual environment first, then build into it — never apply a generic template. There's no single "right" stack; there's their stack. Look at both ends before creating anything:

  • The Figma file — its existing design system, which you'll reuse and bind to:
    1. get_variable_defs → the file's variables (colour / spacing / radius / typography) with names + values + hex. These are the tokens you bind to.
    2. scan_components / get_local_components → existing components to instance rather than rebuild. Match the source UI pattern (a card, a list row, a nav, a button) to a component.
    3. get_styles → shared paint / text / effect styles to apply.
  • The source you were handed — when it's code, which stack and styling system (Tailwind / Chakra / MUI / CSS modules / vanilla …) and whether it has a config / theme / tokens file. That's where its real values live — read them from there, don't assume a default.

Then build, tracing every value to a source in priority order: reuse an existing component / variable / style; else take the exact value from the source's own code — provider-first, resolving whatever styling system it uses to real px / hex (CSS literally; Tailwind / Chakra / UnoCSS / … via their config or scale), never eyeballed; only invent from a consistent scale when neither exists. Full detail + the value-resolution method in references/write-rules.md.

Show full SKILL.md (406 more words)Show less

Two jobs — both follow the write rules

Every build obeys the same cross-cutting rules — ground values (design system → source code → scale), reference tokens (colour via bind_variable_to_paint, scalars via bind_variable_to_node, shared looks via apply_style_to_node), auto-layout for related children (absolute only for top-level placement), HUG/FILL/FIXED sizing via set_layout_props (so the layout computes sizes — don't hardcode width/height), and real fonts (a new TEXT node defaults to Inter). → references/write-rules.md.

  • Assemble a screen / component from what exists (the common case): recognise the UI pattern, create_instance matching components, bind tokens, build incrementally, screenshot-verify each step. → references/assemble-screens.md.
  • Author a new design-system asset (only when grounding found no equivalent): create variables/collections, paint/text styles, or components + variant sets, then switch back to the reuse path. → references/author-design-system.md.

Motion (animation)

When the source carries animation — CSS @keyframes / transition, Framer Motion, GSAP, a Vue/Svelte transition — author it as Figma Motion (beta) on the frame you built rather than dropping it: apply_animation_style (presets from get_motion_styles) or apply_manual_keyframe_track per property, set_timeline_duration for length. A staggered row is one atomic batch of apply_animation_style ops with increasing config.timelineOffset — not N calls. Motion is Figma-Design-only and keyframes attach to a top-level frame's layers, so build the frame first. → references/motion.md.

Verify visually (close the loop)

get_screenshot the built node, fix discrepancies, and re-screenshot — the same render-and-diff discipline codegen uses, in reverse. Check it against the source intent and against objective design health (this catches problems even when you built from a vague description with no source to compare): nothing clipped or overflowing, edges aligned, spacing consistent (one scale), a clear type hierarchy. An empty: true export means the node rendered nothing (hidden / off-canvas).

Rules

  • Understand the environment, then build. Read both the file's design system and the source's stack / styling system before creating anything — there's no single right stack, only theirs. Ground every value (design system → the code's own values → a sensible scale); never invent.
  • Reuse beats regenerate. Instance existing components; bind existing variables/styles. Build new only what the system lacks, and name/structure it to fit.
  • Reference tokens, not literals. Colour via bind_variable_to_paint, scalars via bind_variable_to_node, shared looks via apply_style_to_node — never hardcode hex/px when a token exists (get_variable_defs tells you what does).
  • Auto-layout for related children, absolute coordinates only for top-level placement.
  • Build incrementally and validate (screenshot) — recognise the UI pattern and assemble it from the matching components, don't reproduce it from primitives.
  • Match the file's conventions — naming, structure, and the design system's own patterns, the way codegen mirrors the project's existing code style.

© awdr74100, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/figma-build of awdr74100/figwright.

  • SKILL.md
  • references/assemble-screens.md
  • references/author-design-system.md
  • references/motion.md
  • references/write-rules.md

Open the folder on GitHubat commit c00638b

Compare with similar skills

Figma Build next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figma Build compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figma Build this skillawdr74100/figwright1k—~2kAutomated safety check: PassMIT
UI/UX Design System AdvisorGalaxy-Dawn/claude-scholar5.7k1 repos~1.1kAutomated safety check: PassMIT
Design StyleCastor6/tactus3761 repos~2.1kAutomated safety check: PassApache-2.0
UithingBayBreezy/ui-thing729—~1.3kAutomated safety check: PassCustom licence
Refero Designreferodesign/refero_skill299—~5.3kAutomated safety check: PassMIT
Wonder BlocksKhan/wonder-blocks163—~3.2kAutomated safety check: PassMIT

Similar skills

  • UI/UX Design System Advisor

    Galaxy-Dawn/claude-scholar

    Turns a vague UI request into a concrete design system with style, palette, typography and layout guidance from a search script, plus stack-specific implementation advice.

    5.7k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Design Style

    Castor6/tactus

    A skill your agent uses whenever the user asks to build, create, design, develop, improve, or style any frontend interface or visual element.

    376 GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Uithing

    BayBreezy/ui-thing

    Manages UI Thing components, prose, blocks, themes, shortcuts, docs, and MCP-driven workflows in Nuxt projects and in the UI Thing source repo.

    729 GitHub stars~1.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Refero Design

    referodesign/refero_skill

    Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive…

    299 GitHub stars~5.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Wonder Blocks

    Khan/wonder-blocks

    Implements user interfaces using the Wonder Blocks (WB) design system — Khan Academy's React component library.

    163 GitHub stars~3.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Atlas

    pacifio/ui

    Atlas — a design language and UI guide system for agent interfaces.

    154 GitHub stars~2.5k tokensUpdated 5 mo ago
    Frontend & DesignAuto-check passed

More from awdr74100/figwright

  • Figma Typings Audit

    awdr74100/figwright

    Upgrade @figma/plugin-typings and absorb what the new version exposes.

    1k GitHub stars~3.3k tokensUpdated yesterday
    Auto-check passed
  • MCP SDK Audit

    awdr74100/figwright

    Upgrade @modelcontextprotocol/server (the MCP TypeScript SDK v2) and prove the wire contract survived.

    1k GitHub stars~4.1k tokensUpdated yesterday
    Auto-check passed
  • Figma Codegen

    awdr74100/figwright

    Generate framework-aware code from a Figma design. An agent skill from awdr74100/figwright.

    1k GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed

Questions about Figma Build

What does Figma Build do?

Build a Figma design from code or a description — the reverse of figma-codegen. Figma Build is an agent skill from awdr74100/figwright. Build a Figma design from code or a description — the reverse of figma-codegen.

When should I use Figma Build?

Figma Build fits situations like: ever the user wants something created; updated IN Figma from code.

How do I install Figma Build in Claude Code?

Run `npx skills add awdr74100/figwright --skill figma-build -a claude-code`. Or copy the skill folder (skills/figma-build in awdr74100/figwright) into .claude/skills/figma-build in your project. Claude Code loads it when a task matches its description.

How do I install Figma Build in Codex?

Run `npx skills add awdr74100/figwright --skill figma-build -a codex`. Or copy the skill folder (skills/figma-build in awdr74100/figwright) into .agents/skills/figma-build in your project. Codex loads it when a task matches its description.

Can I use Figma Build in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add awdr74100/figwright --skill figma-build -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figma-build, .gemini/skills/figma-build, .github/skills/figma-build and .opencode/skills/figma-build in your project.

What does Figma Build need to run?

SKILL.md names no scripts, command-line tools or credentials: Figma Build is instructions for the agent only.

Does Figma Build access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Figma Build safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Figma Build use?

Figma Build is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figma Build use?

About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.9k tokens, read only when the agent opens those files.

What are the alternatives to Figma Build?

Skills that share tags, products or a category with Figma Build: UI/UX Design System Advisor (Galaxy-Dawn/claude-scholar, 5.7k stars), Design Style (Castor6/tactus, 376 stars), Uithing (BayBreezy/ui-thing, 729 stars) and Refero Design (referodesign/refero_skill, 299 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figma Build?

awdr74100 (a GitHub user) maintains it in awdr74100/figwright, which has 1,003 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 10, 2026.

Source: awdr74100/figwright on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.