figma-converter

figma-converter is an agent for Claude Code from pillip/claude-dev-kit. It costs 41 tokens per session (6,151 once invoked), scanned A, original, MIT.

A tool that turns design data exported from Figma, a collaborative interface-design app, into prototype HTML using the project's existing design tokens and assets.

In plain words
What is it for?
It helps build HTML/CSS prototypes from Figma renders, styles, node trees, component mappings, and downloaded images or icons.
Why use it?
It removes much of the manual work of translating a visual design and its element structure into correctly styled, meaningful HTML.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Next step: re-run `uv run python scripts/figma_fetch.py <urls>` to refetch..

Part of the claude-dev-kit plugin — 22 skills, 22 agents, 9 hooks shipped together

Good fit It helps build HTML/CSS prototypes from Figma renders, styles, node trees, component mappings, and downloaded images or icons.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pillip/claude-dev-kit
agentmods
npx agentmods add agents/pillip/claude-dev-kit/figma-converter

Made for: Claude Code.

Or install claude-dev-kit, the plugin that ships this one along with the rest of its 22 skills, 22 agents, 9 hooks.

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 figma-converter

README.md
[![agentmods](https://agentmods.dev/badge/agents/pillip/claude-dev-kit/figma-converter/github.svg)](https://agentmods.dev/agents/pillip/claude-dev-kit/figma-converter)
Your own site
<a href="https://agentmods.dev/agents/pillip/claude-dev-kit/figma-converter"><img src="https://agentmods.dev/badge/agents/pillip/claude-dev-kit/figma-converter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for figma-converter

Your own site · 80×15
<a href="https://agentmods.dev/agents/pillip/claude-dev-kit/figma-converter"><img src="https://agentmods.dev/badge/agents/pillip/claude-dev-kit/figma-converter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,151 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.06151
Opus 5.5 $0.00016 $0.02460
Sonnet 5.5 $0.00008 $0.01230
Haiku 4.5 $0.00004 $0.00615

Measured 1mo ago against content hash a1b3a0f4d750, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

figma-converter 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 1mo 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.

agents/figma-converter.md · 415 lines

How it starts

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

Role: You are a senior frontend engineer who translates Figma designs into clean, production-grade HTML/CSS prototypes. You receive Figma render images (the exact visual target), pre-generated CSS, and structured design data. Your job is to build semantic HTML that visually reproduces the Figma design.

Input Files (all in figma-export/)

You have these resources — read them ALL before writing any HTML:

  1. renders/*.png — Your primary visual reference. These are Figma-rendered PNG images at 2x resolution. Each PNG shows EXACTLY what the page should look like. Open and study them carefully.
  2. figma_styles.css — Pre-generated CSS rules for every Figma element. Each rule has a CSS class name and all style properties (colors, gradients, fonts, borders, positioning). Import this file — do NOT rewrite the CSS.
  3. component_map.json — Maps Figma node names to CSS class names, asset paths (with ready-to-paste html_hint), and children ordering.
  4. design_data.json — Full Figma node tree with text content, element hierarchy, and positions. Use this for text content and structure understanding.
  5. assets/ — Downloaded SVG/PNG icons and images. Referenced in component_map.json.

Workflow

Phase 1: Analyze

  1. Open each render PNG (desktop, tablet, mobile). Study the visual layout carefully:

    • Where does each section start and end?
    • Which elements overlap (text over background images)?
    • Which background images span multiple visual sections?
    • What is the z-order (what's on top of what)?
  2. Extract the coordinate map from design_data.json:

    Frame origin: tree.x, tree.y
    For each child: relative_top = child.y - frame.y, relative_left = child.x - frame.x
    

    Sort children by y position to understand vertical section order.

  3. Identify sections by grouping children with similar y-ranges:

    • y=0~1000 → Hero section
    • y=1000~2300 → SKT 소개 section
    • y=2300~2800 → 모집대상 section
    • etc.

Read the full file on GitHub · 415 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. 1mo ago Changed · +1 lines a1b3a0f4d750
  2. 3mo ago First seen · 414 lines · 41 tokens per session scan A c2def72695cc

Subscribe to this mod's changes

figma-converter is an agent published in the GitHub repository pillip/claude-dev-kit (11 stars, last pushed 18d ago), licensed MIT. It adds 41 tokens to every session and 6,151 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

figma-converter compared with agents from other repositories

figma-converter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
figma-converterpillip/claude-dev-kitAgent1118d agoMITA41Claude Code
ariasam-agents/samAgent204mo agoMITA14Claude Code
evolve-accessibility-auditmickeyyaya/evolve-loopAgent85d agoApache-2.0A61Claude Code
evolve-frontend-design-reviewmickeyyaya/evolve-loopAgent85d agoApache-2.0A61Claude Code
UX ArchitectCodoop/codoop-flowAgent525d agoMITA22Claude Code
UI DesignerCodoop/codoop-flowAgent525d agoMITA36Claude Code
pre-commit-testerskullninja/coco-workflowAgent71mo agoMITA159Claude Code