monkilabs/opencastle/figma-design

Claude Code and agent skill by monkilabs/opencastle

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Figma design-to-code: design token extraction, component inspection and asset export. Use when implementing a Figma design, extracting its tokens, or checking a component's spec.

Install

npx vskill@latest install monkilabs/opencastle/figma-design

SKILL.md

The same SKILL.md was published earlier as monkilabs/opencastle/figma-design.

Figma Design

Project design system: the frontend-design skill. Docs: https://developers.figma.com/docs/figma-mcp-server/

MCP tools

Figma's own remote server (https://mcp.figma.com/mcp), signed in with OAuth. It works from a link: pass the Figma URL of the frame or layer, including its node-id. It does not see what is selected in the desktop app — that is the desktop server's feature.

ToolUse it for
figma/get_metadataA sparse outline of a large frame — layer IDs, names, positions, sizes. Start here on anything big, then narrow
figma/get_design_contextDesign context for one layer: structure, styles, layout, as a starting point for code
figma/get_variable_defsThe variables and styles a layer uses — colors, spacing, typography — for token mapping
figma/get_screenshotA PNG of the layer, to compare against what you built
figma/search_design_systemComponents, variables and styles in the team's libraries — reuse before rebuilding
figma/get_code_connect_mapWhich code component a Figma component already maps to
figma/download_assetsImage and vector exports

On a large frame, get the outline with get_metadata first, then ask get_design_context for the frames you need.

Workflow

  1. get_metadata on the frame's link; pick the node IDs you need.
  2. get_design_context and get_variable_defs for those nodes. Check get_code_connect_map and search_design_system first — a mapped component is imported, not rebuilt.
  3. Map variables into the token files (src/styles/tokens.css or token JSON). Do not inline raw hex values into components; the returned code is a starting point, not the answer — translate it into the project's components and tokens.
  4. Build the component with a data-testid so the result can be verified programmatically.
  5. Verify with get_screenshot side by side, and compare DOM bounding boxes against the node metrics. Acceptance: spacing within 4px, token colors exact, font family and weight exact.
  6. Outside threshold → fix the token mapping or ask design; re-run from step 2.

Figma → CSS, the non-obvious mappings

FigmaCSS
Hug contentswidth: fit-content
Fill containerflex: 1 (or width: 100%)
Fixedwidth: Npx
Auto Layout gapgap (not margins)
Drop shadowbox-shadow: x y blur spread color

Auto Layout horizontal/vertical is just flex-direction: row/column.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
80
Repository forks
16
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/monkilabs/opencastle/figma-design/badge)](https://verified-skill.com/skills/monkilabs/opencastle/figma-design)

Something wrong with this skill or its page? Tell us.