import-figma

import-figma is a command for Claude Code from MadAppGang/claude-code. It costs 18 tokens per session (6,785 once invoked), scanned A, original, MIT.

A command for importing working React and TypeScript components from Figma Make projects into an existing React project, then checking and correcting the result.

In plain words
What is it for?
Use it when you have a Figma Make project URL and need to bring one of its components into a running React application.
Why use it?
It avoids manually copying components from a Figma Make project and helps catch problems during the import.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is // then import path is "../../components/ui/button".

Good fit Use it when you have a Figma Make project URL and need to bring one of its components into a running React application.

Compare 6 commands 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/MadAppGang/claude-code
agentmods
npx agentmods add commands/madappgang/claude-code/import-figma

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/claude-code/import-figma/github.svg)](https://agentmods.dev/commands/madappgang/claude-code/import-figma)
Your own site
<a href="https://agentmods.dev/commands/madappgang/claude-code/import-figma"><img src="https://agentmods.dev/badge/commands/madappgang/claude-code/import-figma/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 import-figma

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/claude-code/import-figma"><img src="https://agentmods.dev/badge/commands/madappgang/claude-code/import-figma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 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,785 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.00018 $0.06785
Opus 5.5 $0.00007 $0.02714
Sonnet 5.5 $0.00004 $0.01357
Haiku 4.5 $0.00002 $0.00679

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

Security

Grade A, and why

import-figma 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.

plugins/frontend/commands/import-figma.md · 834 lines

How it starts

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

Import Figma Make Component

Automates importing UI components from Figma Make projects into your React project with validation and iterative fixing.

Important: This command works with Figma Make projects (URLs with /make/ path), not regular Figma design files. Make projects contain actual working React/TypeScript code that can be imported directly.

Prerequisites

  • Figma Make project URL must be in CLAUDE.md under "Design Resources"
  • Component must exist in your Make project
  • Development server should be running: pnpm dev
  • Figma MCP server must be authenticated (run /configure-mcp if needed)
  • MCP Resources support must be available (required for fetching Make files)

Getting the Figma Make URL

Need help getting Figma Make URLs? See the complete guide: docs/figma-integration-guide.md

Quick Instructions

  1. Create or open a Make project in Figma (figma.com/make)
  2. Select the component you want to export in your Make project
  3. Copy the URL from the browser address bar
  4. Ensure the URL includes /make/ in the path

Expected URL format:

https://www.figma.com/make/{projectId}/{projectName}?node-id={nodeId}

Real Example:

https://www.figma.com/make/DfMjRj4FzWcDHHIGRsypcM/Implement-Screen-in-Shadcn?node-id=0-1&t=GZmiQgdDkZ6PjFRG-1

Add this URL to your CLAUDE.md under the "Design Resources" section:

## Design Resources

**Figma Make Project**: https://www.figma.com/make/DfMjRj4FzWcDHHIGRsypcM/Implement-Screen-in-Shadcn?node-id=0-1&t=GZmiQgdDkZ6PjFRG-1

Important: The URL must contain /make/ not /file/ or /design/ - only Make projects have importable code.

Workflow Overview

This command will:

  1. Read CLAUDE.md and extract Figma Make project URL
  2. Fetch component files from Make using MCP Resources
  3. List available files from Make project
  4. Select component code to import
  5. Analyze and adapt component code for your project structure
  6. Check for name collisions and prompt user if needed
  7. Install any missing dependencies via pnpm
  8. Create component file in appropriate location
  9. Create test route at /playground/{component-name}
  10. Invoke tester agent for validation
  11. Apply fixes if validation fails (up to 5 iterations)
  12. Update CLAUDE.md with component mapping
  13. Present comprehensive summary

Read the full file on GitHub · 834 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 First seen · 834 lines · 18 tokens per session scan A 59ffbe13992e

Subscribe to this mod's changes

import-figma is a command published in the GitHub repository MadAppGang/claude-code (285 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 6,785 once invoked, about $0.0001 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-09-03.