figma-build
Skill1.6k starsChanged 6 months agoMITView on GitHub
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.
1 other project uses a version of this.
Trending
Steady talk.thin dataabout the whole repository
Most recently taken up by
- Kemdirimakujuobi/skillstheir own version, first seen Oct 14, 2026
Who's talking about awdr74100/figwright
- sudosubin/agents.nix“agent-skills.github.awdr74100.figwright: 0.7.0 → 0.8.0”GitHub · Nov 21, 2026
- bestofjs/bestofjs“Add Figwright to Best of JS”GitHub · Oct 31, 2026
- sudosubin/agents.nix“agent-skills.github.awdr74100.figwright: 0.6.0 → 0.7.0”GitHub · Oct 26, 2026
- sudosubin/agents.nix“agent-skills.github.awdr74100.figwright: 0.5.0 → 0.6.0”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.awdr74100.figwright: init at 0.5.0”GitHub · Sep 25, 2026
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- Nov 21, 2026agent-skills.github.awdr74100.figwright: 0.7.0 → 0.8.0 — sudosubin/agents.nix0 reactions
- Oct 31, 2026Add Figwright to Best of JS — bestofjs/bestofjs0 reactions · 1 comment
- Oct 26, 2026agent-skills.github.awdr74100.figwright: 0.6.0 → 0.7.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.awdr74100.figwright: 0.5.0 → 0.6.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026agent-skills.github.awdr74100.figwright: init at 0.5.0 — sudosubin/agents.nix0 reactions
4 more on GitHub
- Sep 8, 2026Figma export for boards and canvases: feasibility research and recommended route — ReScienceLab/super-prototyping0 reactions
- Jul 23, 2026【开源工具自荐】Figwright:免费的双向 Figma MCP,让 AI 读设计稿也能反过来画设计稿 — ruanyf/weekly0 reactions
- Jul 23, 2026[开源自荐] Figwright:免费的双向 Figma MCP 服务,AI 读设计稿也能画设计稿 — 521xueweihan/HelloGitHub0 reactions
- Jun 27, 2026Add Figwright (bidirectional Figma MCP server) 🤖🤖🤖 — punkpeye/awesome-mcp-servers0 reactions · 2 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Kemdirimakujuobi/skills★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- figma-typings-auditSkill
- mcp-sdk-auditSkill
- figma-codegenSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
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 …
- Very specific: line 30
When you see it, claim the file before doing anything else: list_files names every connected file, use_file({ fileName }) claims one for …
- Very specific: line 67
Every build obeys the same cross-cutting rules — ground values (design system → source code → scale), reference tokens (colour via …
- Very specific: line 83
When the source carries animation — CSS @keyframes / transition, Framer Motion, GSAP, a Vue/Svelte transition — author it as Figma Motion …
- Distinctive: line 101
Understand the environment, then build: Read both the file's design system _and_ the source's stack / styling system before creating …
- Very specific: line 109
A colour from code is sRGB — say so: Write it with space: "SRGB" beside its r/g/b, or a Display P3 file paints it more saturated than the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
get_variable_defs→ the file's variables (colour / spacing / radius / typography) with names + values +hex. These are the tokens you bind to.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.get_styles→ shared paint / text / effect styles to apply.- A design system that lives in a published library — these reads list only the file's own
definitions. When they come back empty or sparse but the file is built on a team library (its
components are library instances, or the user says so), the tokens are in the library file:
read their keys there and import what you bind. Don't conclude "no tokens" and hardcode values.
→
references/write-rules.md, "Tokens from a published library".
- 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.
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_instancematching 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 viabind_variable_to_node, shared looks viaapply_style_to_node— never hardcode hex/px when a token exists (get_variable_defstells you what does). - A colour from code is sRGB — say so. Write it with
space: "SRGB"beside its r/g/b, or a Display P3 file paints it more saturated than the code (references/write-rules.md). - Auto-layout for related children, absolute coordinates only for top-level placement. Centre
with the parent's alignment (
primaryAxisAlignItems/counterAxisAlignItems; a child that aligns differently gets its own wrapper frame), never by tuningx/y;align_nodesaligns/distributes what has no layout,set_text_propertiestakestextAlignHorizontal/textAlignVertical. Recipes, shapes (create_shape,boolean_nodes,flatten_nodes) and what the tools still can't draw, inreferences/write-rules.md"Centering and alignment". - One create call, fully styled.
create_frame,create_rectangle,create_ellipse,create_shapeandcreate_texttakefills,strokes,layoutSizing*(frame and rectangle alsocornerRadius; a frame alsoautoLayoutandclipsContent; text its typography incl.textAlignHorizontal, and thewidthit wraps at) — each meaning what it means on itsset_*tool. Use them instead of a create plus a chain of follow-ups. - One section, one
batch. A whole subtree — container → rows → text, the sizing and bindings on them — goes in a single atomicbatch: an op names what an earlier op created as"$N"(op N's id) in any id argument, e.g.parentId: "$0",nodeIds: ["$2", "$3"],variableId: "$1", or"$0.defaultModeId"for a named result key. One call, one Cmd+Z step, and a failure rolls the whole section back instead of leaving half of it behind. Text is never read as a reference. - Notes for whoever builds it go in annotations, not in a text layer on the canvas:
set_annotations(nodeId,annotations: [{ label | labelMarkdown, categoryId?, properties? }]) replaces the node's whole list, so read it first withget_annotationsand send back the ones to keep exactly as returned. File a note under a category fromget_annotationscategories, or add one withcreate_annotation_category;propertiespins node fields to the note, and Figma takes one only where the node has it set (strokes with a stroke, padding on auto layout). A group, section, boolean group, slice or page holds none — annotate its children. A spacing or size worth calling out gets a measurement:add_measurement(two node edges on one axis, or across one node),update_measurement/delete_measurement; it goes on the nodes' page without switching to it. ok: trueis not proof. Confirm layout-sensitive writes by screenshot or read-back, and report anything the tools could not express instead of claiming it done.- 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

