UnityFigmaMCP: Skill for Claude Code

.claude/skills/build-prefab/SKILL.md

build-prefab is a skill for Claude Code from chav0/UnityFigmaMCP. It costs 105 tokens per session (1,733 once invoked), scanned A, original, MIT.

An interactive process for turning a Figma frame or component into a Unity UI prefab, a reusable interface object in a Unity project.

In plain words
What is it for?
It helps fetch a Figma node, inspect its hierarchy, build the corresponding Unity prefab, and report the build outcome and missing sprites.
Why use it?
It lets the user preview the design, choose a build pipeline, and see which image assets are missing before handling the result.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is chav0/UnityFigmaMCP's own configuration. It tells Claude Code how to work on UnityFigmaMCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything UnityFigmaMCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chav0/UnityFigmaMCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chav0/UnityFigmaMCP/main/.claude/skills/build-prefab/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/chav0/UnityFigmaMCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-prefab

README.md
[![agentmods](https://agentmods.dev/badge/skills/chav0/unityfigmamcp/build-prefab/github.svg)](https://agentmods.dev/skills/chav0/unityfigmamcp/build-prefab)
Your own site
<a href="https://agentmods.dev/skills/chav0/unityfigmamcp/build-prefab"><img src="https://agentmods.dev/badge/skills/chav0/unityfigmamcp/build-prefab/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-prefab

Your own site · 80×15
<a href="https://agentmods.dev/skills/chav0/unityfigmamcp/build-prefab"><img src="https://agentmods.dev/badge/skills/chav0/unityfigmamcp/build-prefab.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.01733
Opus 5.5 $0.00042 $0.00693
Sonnet 5.5 $0.00021 $0.00347
Haiku 4.5 $0.00011 $0.00173

Measured 24d ago against content hash 8c18061eae61, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-prefab scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/build-prefab/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Prefab — Figma to Unity

This skill walks through building a Unity UI prefab from a Figma node. It's an interactive workflow: you show the user what they're about to build, let them choose how, run the build, and report what happened — including what sprites are missing so they can deal with those separately.

Input

The user needs to provide:

  • Figma file key — the key from the Figma URL (figma.com/file/<key>/...)
  • Node ID — the specific frame or component to build (123:456)
  • Prefab name — what to call the resulting prefab

Optional:

  • Save path — where to save (defaults to the project's prefab folder from settings)
  • Pipeline ID — which pipeline to use (defaults to first available)

If the user gives a Figma URL, extract the file key and node ID from it.

Workflow

Step 1 — Fetch the Figma node

Call figma_get_node(fileKey, nodeId). This downloads the full node tree and saves it locally for the build pipeline to use. Wait for it to finish before Step 2: figma_get_node_names reads that saved copy and fails if it is not there yet.

Step 2 — Show preview

Once Step 1 has finished, do these two calls in parallel:

  • figma_export_image(fileKey, nodeIds: [nodeId], scale: 1) — nodeIds is an array even for one node. Show the image to the user.
  • figma_get_node_names(fileKey, nodeId, depth: 3) — the slim hierarchy, three levels deep.

Display the hierarchy to the user. The user needs to see what they're about to build — the structure might be more complex than expected, or it might be the wrong node.

Step 3 — Rename objects in Figma

If the root node is NOT a component (i.e. it's a plain FRAME), review the hierarchy from Step 2. Nodes cut off at depth 3 show childCount instead of children — call figma_get_node_names(fileKey, <their id>, depth: 3) to look further down. Identify nodes with generic auto-generated Figma names like "Frame 32", "Group 5", "Rectangle 1", "Vector", etc. Rename them directly in the Figma file using the Figma MCP before building — the prefab will inherit the correct names.

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · +3 lines 8c18061eae61
  2. 1mo ago Changed · +4 lines 68c348be540a
  3. 2mo ago First seen · 159 lines · 105 tokens per session scan A 924a9a8bdce2

Subscribe to this mod's changes

build-prefab is a skill published in the GitHub repository chav0/UnityFigmaMCP (11 stars, last pushed 25d ago), licensed MIT. It adds 105 tokens to every session and 1,733 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

build-prefab compared with skills from other repositories

build-prefab next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-prefabchav0/UnityFigmaMCPSkill1125d agoMITA105Claude Code
figma-codegenawdr74100/figwrightSkill1.3kyesterdayMITA145Claude Code, Codex
figma-buildawdr74100/figwrightSkill1.3kyesterdayMITA180Claude Code, Codex
biome-creationmoorestech/moorestechSkill85todayApache-2.0A170Claude Code
before-after-auditmoorestech/moorestechSkill85todayApache-2.0A81Claude Code
vibefigmavibeflowing-inc/vibe_figmaSkill84928d agoAGPL-3.0A77Claude Code, Codex
design-pipelinesodam-ai/SoDam-Design-KitSkill74d agoApache-2.0A77Claude Code