figma-agent

figma-agent is an agent for Claude Code from navraj007in/architecture-cowork-plugin. It costs 0 tokens per session (1,181 once invoked), scanned A, original, Apache-2.0.

An agent that connects coding workflows with Figma, a design tool for creating interfaces and visual specifications. It can read design details, send design tokens to Figma, and turn wireframe data into Figma frames.

In plain words
What is it for?
Use it to extract colors, text styles, and component names from a Figma file; publish generated design tokens as Figma variables or styles; or export wireframe JSON as Figma frames.
Why use it?
It reduces manual copying between code and design files and helps implementation follow an existing visual system.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the architect plugin — 48 skills, 63 commands, 19 agents, 7 MCP servers shipped together

Good fit Use it to extract colors, text styles, and component names from a Figma file; publish generated design tokens as Figma variables or styles; or export wireframe JSON as Figma frames.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navraj007in/architecture-cowork-plugin/figma-agent
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.

Clone the repo
git clone --depth 1 https://github.com/navraj007in/architecture-cowork-plugin

Made for: Claude Code.

Or install architect, the plugin that ships this one along with the rest of its 48 skills, 63 commands, 19 agents, 7 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/figma-agent/github.svg)](https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/figma-agent)
Your own site
<a href="https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/figma-agent"><img src="https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/figma-agent/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 figma-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/navraj007in/architecture-cowork-plugin/figma-agent"><img src="https://agentmods.dev/badge/agents/navraj007in/architecture-cowork-plugin/figma-agent.svg" alt="Reviewed on agentmods" width="80" 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 1,181 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.00000 $0.01181
Opus 5 $0.00000 $0.00590
Sonnet 5 $0.00000 $0.00236
Haiku 4.5 $0.00000 $0.00118

Measured 12d ago against content hash 658b698105ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

figma-agent 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 12d 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-agent.md · 127 lines

How it starts

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

Figma Agent

You are the Figma Agent. You handle all Figma MCP interactions for the Architect AI plugin. You operate in one of three modes depending on what you are passed.

Modes

Mode 1 — Pull: Read Figma file for design context

Input: figmaFileUrl or figmaFileKey, projectDir

Purpose: Extract design tokens, color styles, text styles, and component names from an existing Figma file so the design-system or prototype command can match the existing brand.

Steps:

  1. Extract the file key from the URL if a full URL was given (the key is the alphanumeric segment after /file/ or /design/)

  2. Call get_file with the file key to retrieve the full file tree

  3. Call get_file_styles to get all local color, text, and effect styles

  4. From the styles, extract:

    • Colors: all color styles → map to palette (primary, secondary, accent, surface, text)
    • Text styles: font family, font size, font weight → identify heading, body, mono fonts
    • Component names: call get_file_components to get the component inventory
  5. Return a structured summary:

Figma file: <file name>
Colors found: <N> styles
  Primary candidate: <name> → <hex>
  Secondary candidate: <name> → <hex>
  Surface: <name> → <hex>
Text styles found: <N>
  Heading font: <name>
  Body font: <name>
Components found: <N> (e.g. Button, Card, Input, Modal...)
  1. Map extracted values to the _state.json.design schema fields and return them so the calling command can use them as authoritative design input instead of deriving from domain

Mode 2 — Push: Export design tokens to Figma

Input: projectDir, spaceKey (optional Figma file key to update, or create new)

Purpose: Push generated architecture-output/design-system/design-tokens.json to Figma as local styles or variables.

Steps:

  1. Read architecture-output/design-system/design-tokens.json

  2. Extract the color palette, typography, spacing, and shadow values

  3. If a figmaFileKey was provided, call get_file to confirm the file exists and is accessible

Read the full file on GitHub · 127 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. 12d ago First seen · 127 lines · 0 tokens per session scan A 658b698105ce

Subscribe to this mod's changes

figma-agent is an agent published in the GitHub repository navraj007in/architecture-cowork-plugin (2 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,181 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-08-31.

Related

Other agents, from other repositories

canvas-screen-builder

Implements or modifies one Canvas App screen from a shared plan and a screen-specific brief. Writes exactly one .pa.yaml file and performs self-QA without compiling. Called by the orchestrator in parallel with other builders, not directly by users.

microsoft/power-platform-skills · 53 tokens

frontend-developer

Build complete, uniquely-designed frontend applications from scratch. Masters 20 design styles (Editorial, Brutalist, Glassmorphism, Aurora/Gradient Mesh, Terminal/Hacker, Kinetic Typography, etc.), React 19, Next.js 16, authentication, forms, API integration, state management, testing, SEO, and Tailwind CSS. Creates…

wigtn/wigtn-plugins · 102 tokens

fec-design-token-mapper

Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing design tokens, theme variables, and style conventions in the project, and save the mapping report as a Markdown file.

bovinphang/frontend-craft · 58 tokens

dna

Cognitive scientist and design theorist. Author of The Design of Everyday Things (1988, revised 2013), The Psychology of Everyday Things (1988, the original title), The Invisible Computer (1998), Emotional Design (2004), and Living with Complexity (2010). Co-founder with Jakob Nielsen of the Nielsen Norman Group…

punt-labs/prfaq · 114 tokens

design-auditor

Master audit orchestrator. Detects project stack, dispatches specialized agents, aggregates results into unified report.

Aboudjem/ui-ux-suite · 25 tokens

edt

UX designer and visual information specialist. Every pixel must earn its place.

punt-labs/prfaq · 16 tokens