figma

figma is a skill for Codex from PracticalSwan/agent-skills. It costs 59 tokens per session (1,200 once invoked), scanned A, original, MIT.

A Figma integration for fetching design structure, screenshots, variables, and assets so an agent can implement Figma designs in code.

In plain words
What is it for?
Use it when working from Figma URLs or node IDs to inspect designs, retrieve assets, and validate the resulting interface against the original.
Why use it?
It gives implementation work both the structured design details and visual reference needed to match the source accurately.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when working from Figma URLs or node IDs to inspect designs, retrieve assets, and validate the resulting interface against the original.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/figma
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.

Any agent
npx skills add PracticalSwan/agent-skills --skill figma
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/figma"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/figma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 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.00059 $0.01200
Opus 5.5 $0.00024 $0.00480
Sonnet 5.5 $0.00012 $0.00240
Haiku 4.5 $0.00006 $0.00120

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

Security

Grade A, and why

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 2mo 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.

figma/SKILL.md · 94 lines

How it starts

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

Figma MCP

Use the Figma MCP server for Figma-driven implementation. For setup and debugging details (env vars, config, verification), see references/figma-mcp-config.md.

Figma MCP Integration Rules

These rules define how to translate Figma inputs into code for this project and must be followed for every Figma-driven change.

Required flow (do not skip)

  1. Run get_design_context first to fetch the structured representation for the exact node(s).
  2. If the response is too large or truncated, run get_metadata to get the high-level node map and then re-fetch only the required node(s) with get_design_context.
  3. Run get_screenshot for a visual reference of the node variant being implemented.
  4. Only after you have both get_design_context and get_screenshot, download any assets needed and start implementation.
  5. Translate the output (usually React + Tailwind) into this project's conventions, styles and framework. Reuse the project's color tokens, components, and typography wherever possible.
  6. Validate against Figma for 1:1 look and behavior before marking complete.

Implementation rules

  • Treat the Figma MCP output (React + Tailwind) as a representation of design and behavior, not as final code style.
  • Replace Tailwind utility classes with the project's preferred utilities/design-system tokens when applicable.
  • Reuse existing components (e.g., buttons, inputs, typography, icon wrappers) instead of duplicating functionality.
  • Use the project's color system, typography scale, and spacing tokens consistently.
  • Respect existing routing, state management, and data-fetch patterns already adopted in the repo.
  • Strive for 1:1 visual parity with the Figma design. When conflicts arise, prefer design-system tokens and adjust spacing or sizes minimally to match visuals.
  • Validate the final UI against the Figma screenshot for both look and behavior.

Asset handling

  • The Figma MCP Server provides an assets endpoint which can serve image and SVG assets.
  • IMPORTANT: If the Figma MCP Server returns a localhost source for an image or an SVG, use that image or SVG source directly.
  • IMPORTANT: DO NOT import/add new icon packages, all the assets should be in the Figma payload.
  • IMPORTANT: do NOT use or create placeholders if a localhost source is provided.

Read the full file on GitHub · 94 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed cc2b8a88b0ae
  2. 2mo ago Changed f01129769b16
  3. 2mo ago First seen · 94 lines · 59 tokens per session scan A 72f462b12d02

Subscribe to this mod's changes

figma is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 15d ago), licensed MIT. It adds 59 tokens to every session and 1,200 once invoked, about $0.0002 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.

Related

figma compared with skills from other repositories

figma next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
figmaPracticalSwan/agent-skillsSkill2515d agoMITA59Codex
generate-with-design-systemsouthleft/figma-console-mcpSkill3.5ktodayMITA99Claude Code, Codex
code-connectsouthleft/figma-console-mcpSkill3.5ktodayMITA132Claude Code, Codex
design-tokens-syncsouthleft/figma-console-mcpSkill3.5ktodayMITA100Claude Code, Codex
grade-generationsouthleft/figma-console-mcpSkill3.5ktodayMITA100Claude Code, Codex
accessibility-reviewsouthleft/figma-console-mcpSkill3.5ktodayMITA103Claude Code, Codex
figma-codegenawdr74100/figwrightSkill1.6ktodayMITA145Claude Code, Codex