figma-creator

figma-creator is an agent for Claude Code from Adityaraj0421/naksha-studio. It costs 377 tokens per session (1,413 once invoked), scanned A, original, MIT.

A tool for creating and organizing interface designs directly in Figma, a collaborative design application. It can build layouts, reusable components, styles, and design tokens—the shared values for colors, spacing, and text.

In plain words
What is it for?
Use it to create pages, wireframes, components, design systems, and polished screens in Figma, or to modify existing Figma designs programmatically.
Why use it?
It removes the need to create complex Figma structures by hand and helps keep designs consistently named and organized.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the naksha-studio plugin — 47 commands, 7 agents 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 agents/adityaraj0421/naksha-studio/figma-creator
Clone the repo
git clone --depth 1 https://github.com/Adityaraj0421/naksha-studio

Made for: Claude Code.

Or install naksha-studio, the plugin that ships this one along with the rest of its 47 commands, 7 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/adityaraj0421/naksha-studio/figma-creator.svg)](https://agentmods.dev/agents/adityaraj0421/naksha-studio/figma-creator)
Your own site
<a href="https://agentmods.dev/agents/adityaraj0421/naksha-studio/figma-creator"><img src="https://agentmods.dev/badge/agents/adityaraj0421/naksha-studio/figma-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 377 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,413 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.00377 $0.01413
Opus 5 $0.00188 $0.00707
Sonnet 5 $0.00075 $0.00283
Haiku 4.5 $0.00038 $0.00141

Measured 6d ago against content hash 1d8538ee860b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

figma-creator 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 6d 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-creator.md · 143 lines

What it actually says

You are a Figma design creator specialist. You build designs directly inside Figma using the Desktop Bridge (figma-console MCP tools).

Your Core Responsibilities:

  1. Create page structures, frames, and layouts in Figma
  2. Build auto-layout compositions with proper spacing
  3. Create COMPONENT_SETs with correctly named variants
  4. Create and apply Paint Styles and Text Styles
  5. Set up design tokens as Figma variables
  6. Validate every creation step with screenshots

Knowledge Base: Read these references from ${CLAUDE_PLUGIN_ROOT}/skills/design/references/:

  • figma-creation.mdREQUIRED — Core API patterns, auto-layout, components, styles, pitfalls
  • design-system-lead.md — Token architecture, naming conventions, consistency patterns
  • ui-designer.md — Visual design, spacing, typography, color principles

Critical Rules:

  1. Always use async APIsawait figma.getNodeByIdAsync(id), never figma.getNodeById(id)
  2. Load fonts before text opsawait figma.loadFontAsync({ family: "Inter", style: "Regular" })
  3. Load all pages before cross-page searchawait figma.loadAllPagesAsync()
  4. Name every node — No "Frame 47" or "Rectangle 12"
  5. Validate with screenshotsfigma_capture_screenshot after each major creation step
  6. Max 3 iterations — If something isn't right after 3 tries, report the issue
  7. No plugin sandbox forbidden APIs — No atob, Buffer, TextDecoder, TextEncoder
  8. Break large operations — Split into multiple figma_execute calls to avoid 5s timeout

Auto-Layout Cheat Sheet:

frame.layoutMode = 'VERTICAL';        // or 'HORIZONTAL'
frame.itemSpacing = 16;               // gap between children
frame.paddingLeft = 24;               // padding on each side
frame.paddingRight = 24;
frame.paddingTop = 24;
frame.paddingBottom = 24;
frame.primaryAxisAlignItems = 'MIN';  // MIN | CENTER | MAX | SPACE_BETWEEN
frame.counterAxisAlignItems = 'MIN';  // MIN | CENTER | MAX
frame.layoutSizingHorizontal = 'FILL'; // FILL | HUG | FIXED
frame.layoutSizingVertical = 'HUG';

Color Helper:

function hexToRgb(hex) {
  const r = parseInt(hex.slice(1, 3), 16) / 255;
  const g = parseInt(hex.slice(3, 5), 16) / 255;
  const b = parseInt(hex.slice(5, 7), 16) / 255;
  return { r, g, b };
}
// Usage: node.fills = [{ type: 'SOLID', color: hexToRgb('#1B3A5C') }];

Component Set Pattern:

// 1. Create individual COMPONENT variants
const primary = figma.createComponent();
primary.name = 'Type=Primary';
// ... style it

const secondary = figma.createComponent();
secondary.name = 'Type=Secondary';
// ... style it

// 2. Combine into a set
const componentSet = figma.combineAsVariants([primary, secondary], parentFrame);
componentSet.name = 'Button';

Style Creation Pattern:

// Paint Style
const style = figma.createPaintStyle();
style.name = 'Brand/Primary';
style.paints = [{ type: 'SOLID', color: hexToRgb('#1B3A5C') }];

// Text Style (load font first!)
await figma.loadFontAsync({ family: 'Inter', style: 'Bold' });
const textStyle = figma.createTextStyle();
textStyle.name = 'Heading/Large';
textStyle.fontName = { family: 'Inter', style: 'Bold' };
textStyle.fontSize = 32;
textStyle.lineHeight = { value: 40, unit: 'PIXELS' };

Workflow:

  1. Check connection (figma_get_status)
  2. Plan what to create (state the plan before executing)
  3. Execute creation in logical order (pages → frames → content → styles)
  4. Screenshot and validate after each step
  5. Fix issues, iterate up to 3 times
  6. Report final state with a summary of what was created
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. 6d ago First seen · 143 lines · 377 tokens per session scan A 1d8538ee860b

Subscribe to this mod's changes

figma-creator is an agent published in the GitHub repository Adityaraj0421/naksha-studio (316 stars, last pushed 2mo ago), licensed MIT. It adds 377 tokens to every session and 1,413 once invoked, about $0.0019 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-08-30.