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.
git clone --depth 1 https://github.com/MadAppGang/claude-codenpx agentmods add commands/madappgang/claude-code/import-figmaWrote 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.
[](https://agentmods.dev/commands/madappgang/claude-code/import-figma)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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-mcpif 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
- Create or open a Make project in Figma (figma.com/make)
- Select the component you want to export in your Make project
- Copy the URL from the browser address bar
- 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:
- Read CLAUDE.md and extract Figma Make project URL
- Fetch component files from Make using MCP Resources
- List available files from Make project
- Select component code to import
- Analyze and adapt component code for your project structure
- Check for name collisions and prompt user if needed
- Install any missing dependencies via pnpm
- Create component file in appropriate location
- Create test route at /playground/{component-name}
- Invoke tester agent for validation
- Apply fixes if validation fails (up to 5 iterations)
- Update CLAUDE.md with component mapping
- Present comprehensive summary
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.
- 1mo ago First seen · 834 lines · 18 tokens per session scan A 59ffbe13992e
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.
Other commands, from other repositories
design-import
Scaffolds React components from a Claude Design handoff bundle and stops at files on disk: no stories, no tests, no pull request. Use when handed a claude.ai/design URL or a local bundle file; when that same scaffold should carry on through test generation, browser verification and an opened PR, run /ork:design-ship…
design-review
Review visual design quality — layout, typography, spacing, colour, consistency.
color-palette
Generate an accessible colour palette from a hex value.
icon-set-generator
Generate a cohesive SVG icon set for a project.
ux-extract
Exhaustively extract UX patterns from a reference web app into a reusable pattern library.
setup
Add Tailwind CSS v4 and shadcn/ui to an existing React/Vite project.