CtrlK
BlogDocsLog inGet started
Tessl Logo

figma-design

Figma design-to-code workflows, design token extraction, component inspection, and asset export. Use when translating Figma designs into code, extracting design tokens, or referencing component specs.

77

Quality

96%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Figma Design

Project design system: the frontend-design skill. Docs: https://www.figma.com/developers/api

MCP tools

ToolPurpose
figma/get_fileFull file structure — takes depth to cap traversal
figma/get_file_nodesSpecific nodes/frames by node_ids
figma/get_imagesExport nodes: { ids, format, scale }
figma/get_commentsDesign review comments
figma/get_stylesColor/text/effect styles
figma/get_componentsReusable components

Every call needs file_key (from the file URL). Node IDs use a colon, e.g. "123:45". Never call get_file without depth on a large file — it returns the entire node tree.

Workflow

  1. get_file_nodes for the target frames; extract bounding boxes, fills, text styles, and auto-layout properties.
  2. Map returned styles into token files (src/styles/tokens.css or token JSON) — do not inline raw hex values into components.
  3. Build the component consuming those tokens, with a data-testid so the result can be verified programmatically.
  4. Verify: render in Storybook, compare DOM bounding boxes against the Figma node metrics. Acceptance: spacing within 4px, token colors exact, font family and weight exact.
  5. Outside threshold → fix the token mapping or ask design; re-run from step 1.

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.

Repository
monkilabs/opencastle
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.