# lihfolk-figma

lihfolk-figma is a Claude Code skill that turns Figma frames into Roblox ScreenGui code and Luau theme tokens. Triggers on requests to build UI from design files.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 98 repo stars
- Author: LihFolk
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/skills/lihfolk-figma/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/lihfolk-figma

## What it does

This skill translates Figma designs into functional Roblox UI code. It operates either through official Figma MCP tools or via `tools/figma_to_roblox.py`, a standard-library Python script. The workflow maps design layout into Luau builder modules fitted with `UIScale` and standard UI layout constraints.

Layer prefixes determine UI element types: `btn_` creates clickable buttons, `scroll_` outputs a `ScrollingFrame`, while `skip_` filters out annotations. Variables like colors, padding, and radii turn into token definitions matching `examples/FigmaThemeTokens.luau`. Direct REST exports require the `FIGMA_TOKEN` environment variable, while MCP flows require server authorization via `/mcp`.

## Requirements
- Works with: Figma

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add lihfolk-cy/v2-vault
```
In the agent chat (not a shell):
```text
/plugin install lihfolk@lihfolk
```
This installs the whole lihfolk plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill lihfolk-figma -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/lihfolk-figma/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/lihfolk-figma/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill lihfolk-figma -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/lihfolk-figma/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill lihfolk-figma -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/lihfolk-figma/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lihfolk-cy/v2-vault skills/lihfolk-figma
```

2. **Manually: put the files in place**
- File: `.github/skills/lihfolk-figma/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill lihfolk-figma -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lihfolk-cy/v2-vault --path skills/lihfolk-figma
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/lihfolk-figma/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/skills/lihfolk-figma/SKILL.md

## When to use it
- translate Figma frames into Roblox ScreenGui structures
- map Figma design variables into Luau token files
- generate Luau builder modules from exported REST JSON
- configure auto layout containers and responsive scale rules

## Example prompts
- Turn this Figma frame link into a Roblox ScreenGui builder
- Convert frame.json into SettingsUI.luau with asset manifests
- Extract variables from Figma into FigmaThemeTokens.luau

## Similar
- [roblox-ui](https://affpapa.org/en/nevibecode/skills/el4cteo-roblox-ui.md) — skill · 1300 installs
- [roblox-user-interfaces](https://affpapa.org/en/nevibecode/skills/roblox-user-interfaces.md) — skill · 612 installs
- [figma-variables-tokens-generator](https://affpapa.org/en/nevibecode/skills/figma-variables-tokens-generator.md) — skill · 203 installs
- [figma](https://affpapa.org/en/nevibecode/skills/heygen-com-figma.md) — skill · 466500 installs
- [figma-generate-library](https://affpapa.org/en/nevibecode/skills/openai-figma-generate-library.md) — skill · 3000 installs
- [figma-code-connect-components](https://affpapa.org/en/nevibecode/skills/openai-figma-code-connect-components.md) — skill · 3000 installs

From the same set: [lihfolk-cy/v2-vault](https://affpapa.org/en/nevibecode/by/lihfolk-cy/v2-vault.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
