figma-generate-component

figma-generate-component is a skill for Claude Code, Codex from punkadillo/figma-code-composer. It costs 23 tokens per session (864 once invoked), scanned A, original, MIT.

A tool that turns a Figma frame or component into production code for React, Vue, or plain HTML and CSS. It can use design tokens and Code Connect mappings when those are available.

In plain words
What is it for?
Use it to generate semantic, accessible interface components from a selected Figma frame or a Figma link containing a node ID.
Why use it?
It gives developers a starting implementation based on the actual design structure, rather than requiring them to recreate every layout and style manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate semantic, accessible interface components from a selected Figma frame or a Figma link containing a node ID.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/punkadillo/figma-code-composer/figma-generate-component
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add punkadillo/figma-code-composer --skill figma-generate-component
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code, Codex.

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-generate-component

README.md
[![agentmods](https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/figma-generate-component.svg)](https://agentmods.dev/skills/punkadillo/figma-code-composer/figma-generate-component)
Your own site
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/figma-generate-component"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/figma-generate-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 864 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.00023 $0.00864
Opus 5 $0.00012 $0.00432
Sonnet 5 $0.00005 $0.00173
Haiku 4.5 $0.00002 $0.00086

Measured 3d ago against content hash 5a4e0fe28e4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

figma-generate-component 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 3d 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.

.figma-pipeline/skills/figma-generate-component/SKILL.md · 111 lines

How it starts

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

Generate Component from Figma

Name

figma:figma-generate-component - Generate production-ready code from Figma designs

Synopsis

Convert Figma frames and components into production code (React, Vue, HTML/CSS) using the Figma Desktop MCP server with support for Code Connect mappings and design tokens.

Description

You are tasked with generating production-ready code from a Figma design using the Figma MCP server. This command bridges the design-to-code workflow by analyzing Figma frames and converting them into semantic, accessible, framework-specific components.

Implementation

Uses the Figma Desktop MCP server (HTTP transport at http://127.0.0.1:3845/mcp) to access selected frames or node IDs from Figma URLs. Leverages Code Connect mappings when available to prefer design system components over generating code from scratch.

Input Methods

The user can provide Figma context in two ways:

  1. Selection-based: User has selected a frame in Figma desktop app
  2. Link-based: User provides a Figma URL with node ID

Your Task

  1. Understand the Context:

    • If the user selected a frame in Figma, access it via MCP
    • If the user provided a URL, extract the node ID and access the design
    • If neither is provided, ask the user to either:
      • Select a frame in Figma and try again, OR
      • Provide a Figma URL with a node ID
  2. Analyze the Design:

    • Use Figma MCP tools to extract the frame structure
    • Identify components, layout, styling, and content
    • Note any design tokens or variables used
    • Check for Code Connect mappings if available
  3. Generate Code:

    • Ask the user what framework/language they want (React, Vue, HTML/CSS, etc.)
    • Generate clean, production-ready code that matches the design
    • Use semantic HTML and accessible markup
    • Apply proper component patterns for the target framework
    • Use design system components if Code Connect mappings exist
    • Include comments explaining key decisions

Read the full file on GitHub · 111 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. 3d ago First seen · 111 lines · 23 tokens per session scan A 5a4e0fe28e4d

Subscribe to this mod's changes

figma-generate-component is a skill published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 18d ago), licensed MIT. It adds 23 tokens to every session and 864 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

moai-domain-uiux

UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.

modu-ai/moai-adk · 49 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

formkit

Use when working with FormKit forms, validation, schema, or custom inputs in React, Vue, or Nuxt projects.

formkit/formkit · 28 tokens

component-template-generator

Generates starter component code using design tokens. Creates React/Vue/Svelte components with proper token usage, variants, and accessibility built in.

curiositech/some_claude_skills · 32 tokens

native-app-designer

Creates breathtaking iOS/Mac and web apps with organic, non-AI aesthetic. Expert in SwiftUI, React animations, physics-based motion, and human-crafted design. Use for iOS/Mac app UI, React/Vue animations, native-feel web apps, physics-based motion design. Activate on "SwiftUI", "iOS app", "native app", "React…

curiositech/some_claude_skills · 128 tokens