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.
npx skills add sananthanarayan/skilldrop --skill figma-diagramsgit clone --depth 1 https://github.com/sananthanarayan/skilldropWrote 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.
[](https://agentmods.dev/skills/sananthanarayan/skilldrop/figma-diagrams)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
-
Detect the URL. Figma URLs look like
https://www.figma.com/file/<FILE_KEY>/<name>orhttps://www.figma.com/design/<FILE_KEY>/<name>. Extract<FILE_KEY>— that's what the API takes. -
Pick the right script. Helper scripts live in
scripts/next to thisSKILL.md:inspect_file.py <FILE_KEY>— prints a tree of pages → frames → top-level groupslist_comments.py <FILE_KEY>— lists existing comments with author + timestamppost_comment.py <FILE_KEY> "<message>"— adds a comment at the file root (or--node-id Nto 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)
What ships with it
11 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.
- evals/eval_queries.json 782 B
- evals/evals.json 658 B
- manifest.json 917 B
- reference.md 3.2 KB
- requirements.txt 145 B
- scripts/_figma_client.py 2.1 KB runs code
- scripts/frame_to_mermaid.py 3.3 KB runs code
- scripts/inspect_file.py 1.3 KB runs code
- scripts/list_comments.py 936 B runs code
- scripts/post_comment.py 1.5 KB runs code
- templates/figjam-import.json 1.3 KB
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.
- 10d ago First seen · 87 lines · 79 tokens per session scan A 88beea7a6492
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.
Other skills, from other repositories
options
Present multiple design options as a vertical stack of anchored turns.
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.
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.
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…
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.
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…