figma-diagrams

figma-diagrams is a skill for Claude Code from sananthanarayan/skilldrop. It costs 79 tokens per session (1,277 once invoked), scanned A, original, MIT.

A tool for reading and commenting on Figma or FigJam design files through Figma's web interface, and for preparing diagrams that can be imported into FigJam.

In plain words
What is it for?
Use it to inspect pages, frames, components, images, comments, teams, projects, and variables, or to prepare Mermaid or JSON diagram imports.
Why use it?
It helps connect technical diagrams and architecture discussions with design files while making the limits of Figma's web interface clear.

Skill for Claude Code

Written for Claude Code: $CLAUDE_SKILL_DIR variable. Also seen: mentions Claude Code.

Part of the skilldrop plugin — 51 skills, 4 agents shipped together

Good fit Use it to inspect pages, frames, components, images, comments, teams, projects, and variables, or to prepare Mermaid or JSON diagram imports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sananthanarayan/skilldrop/figma-diagrams
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 sananthanarayan/skilldrop --skill figma-diagrams
Clone the repo
git clone --depth 1 https://github.com/sananthanarayan/skilldrop

Made for: Claude Code.

Or install skilldrop, the plugin that ships this one along with the rest of its 51 skills, 4 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-diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sananthanarayan/skilldrop/figma-diagrams"><img src="https://agentmods.dev/badge/skills/sananthanarayan/skilldrop/figma-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,277 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.00079 $0.01277
Opus 5 $0.00039 $0.00639
Sonnet 5 $0.00016 $0.00255
Haiku 4.5 $0.00008 $0.00128

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

Security

Grade A, and why

figma-diagrams 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 10d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/_figma_client.py, scripts/frame_to_mermaid.py, scripts/inspect_file.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/figma-diagrams/SKILL.md · 87 lines

How it starts

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

figma-diagrams

You help the user interact with Figma files programmatically — most often to bridge an architecture diagram from text/Mermaid into a Figma design surface their team is already reviewing in.

Important: what's possible, what isn't

The Figma REST API is mostly read-only for file contents. Be honest with the user about this:

Task How
Read a Figma file's pages, frames, components ✅ REST API — GET /v1/files/:file_key
List images / thumbnails of frames ✅ REST API — GET /v1/images/:file_key
Post a comment on a file or pin to a region ✅ REST API — POST /v1/files/:file_key/comments
Read team / project / variables ✅ REST API
Create / mutate nodes in a design file ❌ Not via REST. Requires the Figma Plugin API (runs inside Figma desktop/web)
Push a diagram into FigJam ⚠️ Indirect — generate FigJam-importable JSON or have the user paste Mermaid via the "Mermaid → FigJam" community plugin

When the user asks you to "draw this in Figma directly," set expectations up front and offer the indirect paths (Mermaid plugin, FigJam JSON spec, or plugin code that they can paste into a Figma plugin).

Prerequisites

The user needs a Figma Personal Access Token, exported as FIGMA_TOKEN:

export FIGMA_TOKEN="figd_..."

How to get one: Figma → Settings → Security → Personal access tokens → Generate. Scope it minimally (file content read, comments write) if Figma offers granular scopes.

If FIGMA_TOKEN is not set, tell the user how to set it before running the scripts.

How to respond

  1. Detect the URL. Figma URLs look like https://www.figma.com/file/<FILE_KEY>/<name> or https://www.figma.com/design/<FILE_KEY>/<name>. Extract <FILE_KEY> — that's what the API takes.

  2. Pick the right script. Helper scripts live in scripts/ next to this SKILL.md:

    • inspect_file.py <FILE_KEY> — prints a tree of pages → frames → top-level groups
    • list_comments.py <FILE_KEY> — lists existing comments with author + timestamp
    • post_comment.py <FILE_KEY> "<message>" — adds a comment at the file root (or --node-id N to pin to a node)
    • frame_to_mermaid.py <FILE_KEY> <NODE_ID> — exports a frame's structure as a first-pass Mermaid diagram (best-effort)

Read the full file on GitHub · 87 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. 10d ago First seen · 87 lines · 79 tokens per session scan A 88beea7a6492

Subscribe to this mod's changes

figma-diagrams is a skill published in the GitHub repository sananthanarayan/skilldrop (2 stars, last pushed 26d ago), licensed MIT. It adds 79 tokens to every session and 1,277 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

options

Present multiple design options as a vertical stack of anchored turns.

asgeirtj/system_prompts_leaks · 13 tokens

qa-test-planner

Generate comprehensive test plans, manual test cases, regression test suites, and bug reports for QA engineers. Includes Figma MCP integration for design validation.

davila7/claude-code-templates · 34 tokens

visualize

Render a polished visual inline in the chat as part of your answer — a diagram, a chart, an interactive explainer, or a UI mockup. Load it proactively whenever an explanation would land better as a picture than as prose. Do not wait to be asked.

vellum-ai/vellum-assistant · 57 tokens

journey-mapping

Build customer journey maps and service blueprints that visualize the end-to-end user experience including touchpoints, emotions, friction, and underlying systems. Use this skill whenever the user wants to map a customer journey, build a service blueprint, identify friction across an experience, align teams on the…

rampstackco/claude-skills · 131 tokens

ux-design

Guided, section-by-section UX spec authoring for a screen, flow, or HUD. Reads game concept, player journey, and relevant GDDs to provide context-aware design guidance. Produces ux-spec.md (per screen/flow) or hud-design.md using the studio templates.

Donchitos/Claude-Code-Game-Studios · 61 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens