/lihfolk:lihfolk-figmafrom lihfolk
Converts Figma frames to Roblox ScreenGui UI using Figma MCP or exported JSON, mapping variables to theme tokens. For designers and Roblox developers bridging design-to-code.
Ships in lihfolk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Goal: a Figma frame becomes a Roblox GUI that matches the design at the reference resolution, fits every device, has every interaction state, and scores at least 8.5 on ../quality-score/rubrics/ui.md. The design is the visual spec. Behaviour, states and motion are added here.
Not this skill:
lihfolk-ui.roblox-ui-builder; this skill follows them.lihfolk-vfx, plus the vault note on Figma VFX textures.VAULT: <base directory>/../../LihFolk Vault V2, resolved to an absolute path. Read these notes:
05 UI and UX/Figma to Roblox UI - Pipeline and Handoff.mdDesigning Roblox UI in Figma - Frames, Safe Areas and Tokens.mdFigma Property Mapping for Roblox UI.mdreferences/property-mapping.md. Read it before building by hand.tools/figma_to_roblox.py (stdlib Python). The sample is tools/sample/settings_panel.json and its output is SettingsPanel.luau. Tests: py -I tools/test_figma_to_roblox.py.examples/FigmaThemeTokens.luau.node-id) or an exported JSON; the target devices; and whether the game uses the LihFolk house kit.Use this path when the official Figma MCP tools are loaded (get_metadata, get_screenshot, get_design_context, get_variable_defs).
/mcp.Find the frame. From a link .../design/<fileKey>/...?node-id=12-34, the node id is 12:34. Run get_metadata on it: it lists names, types, sizes and the child tree. Confirm that it is one frame and note its size, which sets the reference resolution.
Look at it. Run get_screenshot on the frame and keep the image as the visual target.
Read the tokens. Run get_variable_defs. Map every colour, radius, spacing and type variable into a theme module shaped like examples/FigmaThemeTokens.luau. Builders read tokens; they never copy hex values.
Read the structure. Run get_design_context for the frame, or for its big children one at a time. It returns layout and style data, often as web code. Treat that code as a description: translate it with references/property-mapping.md, never paste it into Luau.
Build. Write a builder ModuleScript in the same shape the converter emits:
Fit UIScale on the root;UIListLayout, UIPadding and UIFlexItem for auto layout;UICorner, UIStroke and UIGradient for styling;Image = "" placeholders with -- REPLACE_ME: upload <name>.png.Put states and motion in a separate controller.
Writing to Figma with use_figma (mocking a Roblox screen in Figma) happens only when the user asks for it, on a file they name. Follow the frame rules in step 4 of Design rules below.
FIGMA_TOKEN environment variable:
curl -H "X-Figma-Token: $FIGMA_TOKEN" "https://api.figma.com/v1/files/<fileKey>/nodes?ids=12:34&geometry=paths" -o frame.json
geometry=paths adds size and relativeTransform, which rotated nodes need.py -I tools/figma_to_roblox.py frame.json --node "Settings" -o SettingsUI.luau --manifest SettingsUI.assets.json
--reference 1920x1080 sets the design resolution.--screen is for full-screen HUD frames: children are pinned to their own edges.--per-corner emits mixed corner radii (beta engine properties).--rotation-units deg is for exports whose rotation is in degrees.--report prints the unsupported features and every warning. Fix each one in Figma (rename layers, flatten effects) and re-run, or fix it in the controller. Do not hand-edit the generated layout; regenerate it.luau-compile --null SettingsUI.luau
local root, refs = Builder.build(screenGui)
Builder.bindFit(root)
screenGui uses ScreenInsets.CoreUISafeInsets, ResetOnSpawn = false and ZIndexBehavior.Sibling.refs holds the root, every btn_ and scroll_ node, and (in screen mode) the top-level parts.Frames.
--reference to the frame size. One frame is one screen or panel.12 / smallest text, it needs a phone arrangement.Safe areas. Keep interactive layers out of:
GuiService.TopbarInset; in Figma, reserve a band about 60 px tall across the top (58 px is the commonly reported desktop height, unverified);GetInsetArea phone example reports 59 px);Draw these as skip_ guide layers.
Auto layout everywhere it means "list". Use spacing and padding from the token steps (4, 8, 12, 16, 24, 32). Use Hug and Fill rather than hand-sized children. Avoid GRID auto layout and absolute children inside auto layout frames.
Layer names the converter reads:
btn_ makes a button;img_ flattens the layer into one PNG;9s_name__24 makes a 9-slice with a 24 px inset;scroll_ makes a ScrollingFrame;skip_ marks annotations that are not built.Name everything else for what it is (header, row_music); the names become Instance.Name.
Fonts. Use the families Roblox ships (Builder Sans, Montserrat, Fredoka One, Nunito and the others in the mapping). The smallest text is 15 design px or more. Do not use letter spacing; Roblox has no tracking.
Effects. Use one drop shadow per node. Bake blurs, inner shadows, blend modes and noise into img_ layers.
Components. Use one component set per control, with a State variant: Default, Hover, Pressed, Disabled, Selected (the gamepad focus ring, drawn on purpose). Add role variants (go, neutral, danger) as a second property.
ImageColor3.REPLACE_ME. Never invent ids.Figma has no Roblox motion. Take timings from the vault:
UI Motion Language and Timing;08 Animation/05 Systems/UI and GUI Animation;lihfolk-ui Motion rules.The rules:
Motion UIScale from 0.86 to 1 in 0.22 s Back Out. Closes are faster, with In easing.GuiService.ReducedMotionEnabled, motion becomes colour and fade.The purple settings reference note maps every widget (tabs, slider, toggle, segmented control) to a motion.
../quality-score/recipes/ui.md and the ledger if present. Write a 3-6 line plan.get_screenshot image side by side. Check position, size, colour, type and corner radius element by element. Fix differences above 2 px or one font weight.../quality-score/rubrics/ui.md (minimum 8.5) and log the result.FIGMA_TOKEN.REPLACE_ME placeholders only.Fit UIScale per branch. Motion uses its own Motion UIScale. No TextScaled.Activated. Every state carries a word or icon as well as colour.examples/FigmaThemeTokens.luau (opens in a new tab)references/property-mapping.md (opens in a new tab)tools/figma_to_roblox.py (opens in a new tab)tools/sample/SettingsPanel.assets.json (opens in a new tab)tools/sample/SettingsPanel.luau (opens in a new tab)tools/sample/settings_panel.json (opens in a new tab)tools/test_figma_to_roblox.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lihfolk-cy/v2-vault --plugin lihfolk2 plugins ship this exact skill · first indexed Oct 30, 2026
22 skills in this plugin
/council-methodLihFolk Council: blind multi-agent verdict for high-stakes Roblox decisions, ship-readiness, "be objective", "second opinion". Not for routine coding./lihfolkLihFolk Roblox knowledge router (1,300+ notes; "check the vault"). Use before non-trivial Roblox work: Luau, Studio, remotes, data, UI, building, VFX, animation, design, money, performance, security, publishing./lihfolk-assetsFind and import assets from the local LihFolk Asset Pack (models, materials, skies, animations, VFX). Use for "LihFolk asset", "what assets do we have".Other plugins' skills for the same job