design-md-figma: Skill for Claude Code

.agents/skills/figma-plugin/SKILL.md

figma-plugin is a skill for Claude Code, Codex from bergside/design-md-figma. It costs 38 tokens per session (563 once invoked), scanned A, original, MIT.

A guide to building Figma plugins, which are small programs that extend Figma, a collaborative design tool. It covers the Plugin API, document objects, styles, components, and communication between the plugin logic and its user interface.

In plain words
What is it for?
Use it to set up a plugin project, manipulate Figma nodes, create styles and components, connect the interface to plugin logic, test locally, and publish through Figma Community.
Why use it?
It helps keep Figma document changes in the plugin's main sandbox while the interface handles user interaction and outside services. This avoids mixing responsibilities between the two parts of a plugin.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is bergside/design-md-figma's own configuration. It tells Claude Code and Codex how to work on design-md-figma itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything design-md-figma configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bergside/design-md-figma. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bergside/design-md-figma/main/.agents/skills/figma-plugin/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bergside/design-md-figma

Made for: Claude Code, 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-plugin

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bergside/design-md-figma/figma-plugin"><img src="https://agentmods.dev/badge/skills/bergside/design-md-figma/figma-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 563 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.00038 $0.00563
Opus 5.5 $0.00015 $0.00225
Sonnet 5.5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00056

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

Security

Grade A, and why

figma-plugin 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.

.agents/skills/figma-plugin/SKILL.md · 46 lines

How it starts

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

Figma Plugin Development

Build plugins that extend Figma's functionality using the Plugin API.

Architecture

Figma plugins run in two threads communicating via postMessage:

  • Main thread (sandbox): Plugin API access, node manipulation, figma.* calls
  • UI thread (iframe): HTML/CSS/JS interface, no Figma API access, npm packages allowed

Key Principles

  • Main thread handles all Figma document operations
  • UI thread handles user interface and external APIs
  • Communication between threads via figma.ui.postMessage() and onmessage
  • Plugins must be performant — avoid blocking the main thread

Quick Start Checklist

  1. Set up project with manifest.json (name, id, main, ui)
  2. Create main thread code (code.ts) with plugin logic
  3. Create UI (ui.html) with interface elements
  4. Wire up postMessage communication between threads
  5. Test in Figma development mode
  6. Publish via Figma Community

References

Reference Description
project-structure-and-build.md Manifest, TypeScript setup, build configuration
development-testing-and-publishing.md Dev workflow, testing, publishing, troubleshooting
api-globals-and-nodes.md Global objects, node types, components
api-rendering-and-advanced.md Paints, effects, auto layout, styles, variables, events
ui-architecture-and-messaging.md iframe UI, postMessage, typed messages, plain HTML
ui-react-and-theming.md React setup, hooks, Figma theme colors
ui-patterns-and-resources.md Loading states, tabs, color pickers, file downloads
selection-traversal-and-batching.md Selection handling, node traversal, batch operations
colors-and-text.md Color conversion, manipulation, text operations
layout-storage-and-utilities.md Positioning, alignment, storage, error handling, utilities

Read the full file on GitHub · 46 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. 2mo ago First seen · 46 lines · 38 tokens per session scan A 5a5c6cb02618

Subscribe to this mod's changes

figma-plugin is a skill published in the GitHub repository bergside/design-md-figma (156 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 563 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-08-30.

Related

figma-plugin compared with skills from other repositories

figma-plugin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
figma-pluginbergside/design-md-figmaSkill1565mo agoMITA38Claude Code, Codex
hatch3r-design-system-detecthatch3r/hatch3rSkill261mo agoMITA40Claude Code
ai-accessibilityskillsaiagent/aiskillsSkill55mo agononeA75Codex
ai-baoyu-image-cardsskillsaiagent/aiskillsSkill55mo agononeA80Codex
ai-design-briefskillsaiagent/aiskillsSkill55mo agononeA71Codex
ai-design-taste-frontendskillsaiagent/aiskillsSkill55mo agononeA80Codex
ai-extract-design-systemskillsaiagent/aiskillsSkill55mo agononeA73Codex