update-prefab

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

A Unity editor workflow for updating a reusable game-interface asset, called a prefab, to match its design in Figma, a collaborative design tool.

In plain words
What is it for?
It compares the design and prefab, then updates text, colors, sizes, fonts, layout, hierarchy, and children; it does not change sprites.
Why use it?
It brings design changes into Unity while preserving manual Unity-side adjustments.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chav0/unityfigmamcp/update-prefab
Any agent
npx skills add chav0/UnityFigmaMCP --skill update-prefab
Clone the repo
git clone --depth 1 https://github.com/chav0/UnityFigmaMCP

Made for: Claude Code, Codex.

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 update-prefab

README.md
[![agentmods](https://agentmods.dev/badge/skills/chav0/unityfigmamcp/update-prefab.svg)](https://agentmods.dev/skills/chav0/unityfigmamcp/update-prefab)
Your own site
<a href="https://agentmods.dev/skills/chav0/unityfigmamcp/update-prefab"><img src="https://agentmods.dev/badge/skills/chav0/unityfigmamcp/update-prefab.svg" alt="Measured on agentmods" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00110 $0.01321
Opus 5 $0.00055 $0.00660
Sonnet 5 $0.00022 $0.00264
Haiku 4.5 $0.00011 $0.00132

Measured 4d ago against content hash 58ac68434398, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update-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 4d 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/update-prefab/SKILL.md · 153 lines

How it starts

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

Update Prefab — Sync with Figma Source

This skill compares an existing Unity prefab with its Figma source node and applies the differences. It handles structural changes (added/removed children) and property changes (text content, colors, sizes, fonts, layout settings). Sprites are not modified — only properties and structure.

When to use

The designer made changes in Figma and the developer needs to bring the Unity prefab in sync. Rather than rebuilding from scratch (which would lose any manual Unity-side tweaks), this skill applies only the delta.

Input

The user needs to provide:

  • Prefab path — Unity asset path (e.g. Assets/UI/Prefabs/MyScreen.prefab)
  • Figma file key — the key from the Figma URL
  • Node ID — the Figma node this prefab was built from

If the user doesn't know the node ID, they may need to look it up in Figma. If the prefab was built with /build-prefab, the node ID might be discoverable from the component map via unity_list_assets with kind: "prefab".

Workflow

Step 1 — Fetch both sides

Do these in parallel:

  • figma_get_node + figma_get_node_names — get the current Figma tree
  • unity_get_hierarchy — get the current Unity prefab hierarchy

Step 2 — Compare

Walk both trees and identify differences:

Structural changes:

  • Nodes present in Figma but missing in Unity → need to be created
  • Nodes present in Unity but missing in Figma → candidates for removal (ask the user before deleting — they might be intentional Unity-side additions)

Property changes per node (compare by matching node names/paths):

  • Text: content, font size, font family, font style, color, alignment
  • RectTransform: size, position, anchors, pivot
  • Image: color, sprite path, image type
  • Layout: layout mode, spacing, padding, alignment
  • ContentSizeFitter: horizontal/vertical fit modes
  • Active state: enabled/disabled

Step 3 — Present the diff

Before applying anything, show the user what will change. Group by change type:

Read the full file on GitHub · 153 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. 4d ago First seen · 153 lines · 110 tokens per session scan A 58ac68434398

Subscribe to this mod's changes

update-prefab is a skill published in the GitHub repository chav0/UnityFigmaMCP (2 stars, last pushed 19d ago), licensed MIT. It adds 110 tokens to every session and 1,321 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

figma-typings-audit

Upgrade @figma/plugin-typings and absorb what the new version exposes. Diffs the .d.ts between the installed and the target version (that package ships no changelog), sorts the changes into breakage / new API / silently-added fields, maps each onto the sandbox handlers, the hand-written Zod mirrors in shared, and the…

awdr74100/figwright · 133 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

figma-build

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.…

awdr74100/figwright · 180 tokens

webui-design

このドキュメントは moorestech Web UI の見た目・構造のホワイトリストである。.

moorestech/moorestech · 114 tokens

canicode-roundtrip

Run the full design-to-code roundtrip — analyze a Figma design, surface gotchas, write designer answers back into the file via the Figma Plugin API (usefigma), re-analyze to confirm the gotchas were captured, hand off to figma-implement-design, then optionally register a Code Connect mapping pointing the Figma…

let-sunny/canicode · 268 tokens

canicode

Analyze a Figma design for development-friendliness and AI-friendliness — produces a graded readiness report listing rule-based issues with severity, affected nodes, and fix suggestions. Read-only: this skill never modifies the Figma file. TRIGGER when: the user shares a figma.com/design/... URL and asks to analyze…

let-sunny/canicode · 198 tokens