import-design

import-design is a command for Claude Code from Generous-Corp/pulp. It costs 0 tokens per session (3,039 once invoked), scanned A, original, MIT.

A command for bringing a design from tools such as Figma, Stitch, v0, Pencil, or a design document into a Pulp project. It identifies the source and accepts a file, URL, or supported live editor connection.

In plain words
What is it for?
Use it to import screens or interface designs into Pulp from supported design tools, a DESIGN.md file, or React JSX. It can also work from a supplied path or URL.
Why use it?
It removes the need to manually recreate an existing design in the project. It also clarifies which sources require a live connection and which require an exported file.

Command for Claude Code

Part of the pulp plugin — 63 skills, 30 commands, 3 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/generous-corp/pulp/import-design
Clone the repo
git clone --depth 1 https://github.com/Generous-Corp/pulp

Made for: Claude Code.

Or install pulp, the plugin that ships this one along with the rest of its 63 skills, 30 commands, 3 hooks, 1 MCP server.

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-design

README.md
[![agentmods](https://agentmods.dev/badge/commands/generous-corp/pulp/import-design.svg)](https://agentmods.dev/commands/generous-corp/pulp/import-design)
Your own site
<a href="https://agentmods.dev/commands/generous-corp/pulp/import-design"><img src="https://agentmods.dev/badge/commands/generous-corp/pulp/import-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,039 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.03039
Opus 5 $0.00000 $0.01520
Sonnet 5 $0.00000 $0.00608
Haiku 4.5 $0.00000 $0.00304

Measured today against content hash a0cd2de2542e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

import-design 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 today.

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.

.claude/commands/import-design.md · 239 lines

How it starts

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

Import a design from an external tool (Figma, Stitch, v0, Pencil, Claude Design, DESIGN.md, or React JSX) into this Pulp project.

Detect which design source the user wants by checking:

  1. If a Figma MCP server is available (com.figma.mcp), offer to read the current file/selection
  2. If Stitch MCP is available (mcp__stitch__*), offer to list projects and get screens
  3. If Pencil MCP is available (mcp__pencil__*), offer to read the current editor state
  4. If the user mentions Claude Design or hands over a manually-exported HTML/zip from Anthropic Labs' Claude Design tool, treat as --from claude (no MCP — manual export only, see pulp #468)
  5. If the user provides DESIGN.md, treat it as --from designmd
  6. If the user provides a precompiled JSX runtime bundle, treat it as --from jsx
  7. If the user provides a file path or URL, use that directly
  8. If none of the above, ask the user for a source and file

Workflow

Step 1: Identify source and input

Ask the user or detect from context:

  • Source: figma, stitch, v0, pencil, claude, designmd, or jsx
  • Input: file path, URL, or MCP live data (manual file only for claude; precompiled bundle only for jsx)

Step 2: Read the design data

Figma (MCP available):

  • Use com.figma.mcp to read the current file or selection
  • Extract frames, auto-layout, fills, strokes, effects, text, components

Stitch (MCP available):

  • Use mcp__stitch__list_screens to show available screens
  • Use mcp__stitch__get_screen to read the selected screen
  • Extract component tree, inline styles, design system tokens

Pencil (MCP available):

  • Use mcp__pencil__get_editor_state to check current file
  • Use mcp__pencil__batch_get to read the node tree
  • Use mcp__pencil__get_variables for design tokens
  • Use mcp__pencil__get_style_guide for style references

v0 (URL or TSX file):

  • If URL provided, fetch the v0 generation
  • If TSX file, read directly
  • Extract JSX tree, Tailwind classes, shadcn/ui components

Read the full file on GitHub · 239 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. today First seen · 239 lines · 0 tokens per session scan A a0cd2de2542e

Subscribe to this mod's changes

import-design is a command published in the GitHub repository Generous-Corp/pulp (16 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,039 tokens. 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-04.