Agent skill

Figma Plugin

by bergside in bergside/design-md-figma

A skill your agent uses when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and…

MITAuto-check passedFrontend & Design

Install Figma Plugin

skills CLI
$ npx skills add bergside/design-md-figma --skill figma-plugin -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bergside/design-md-figma figma-plugin --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bergside/design-md-figma.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/figma-plugin .claude/skills/figma-plugin && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
figma-plugin
GitHub stars
152
Token cost
~631 tokens
SKILL.md length
197 words
Files
11 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and…

  • Works in 6 steps: Set up project with manifest.json (name,… → Create main thread code (code.ts) with… → Create UI (ui.html) with interface… → …
  • Building Figma plugins
  • SKILL.md covers Architecture, Key Principles, Quick Start Checklist and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Figma Plugin is an agent skill from bergside/design-md-figma. Use when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and components.

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `references/api-globals-and-nodes.md`, `references/api-rendering-and-advanced.md` and `references/colors-and-text.md`).

It sits in Frontend & Design, covering Design tokens. It works with Figma and React. The repository describes itself as: Figma plugin that extracts local style guidelines and generates DESIGN.md and SKILL.md files for AI tools such as Claude Code, Codex, Cursor, and other AI tools. The licence is MIT.

When your agent uses it

  • Building Figma plugins
  • Creating design automation tools
  • Implementing sandbox/UI communication
  • Working with the Figma Plugin API for node manipulation

Example prompts

  • “/figma-plugin”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 746501e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Figma Plugin loads about 631 tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 197 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~631
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bergside/design-md-figma at commit 746501e, republished under its MIT licence (© bergside). 197 words, ~631 tokens.

Download SKILL.mdSave it as .claude/skills/figma-plugin/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
figma-plugin
description
Use when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and components.

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

ReferenceDescription
project-structure-and-build.mdManifest, TypeScript setup, build configuration
development-testing-and-publishing.mdDev workflow, testing, publishing, troubleshooting
api-globals-and-nodes.mdGlobal objects, node types, components
api-rendering-and-advanced.mdPaints, effects, auto layout, styles, variables, events
ui-architecture-and-messaging.mdiframe UI, postMessage, typed messages, plain HTML
ui-react-and-theming.mdReact setup, hooks, Figma theme colors
ui-patterns-and-resources.mdLoading states, tabs, color pickers, file downloads
selection-traversal-and-batching.mdSelection handling, node traversal, batch operations
colors-and-text.mdColor conversion, manipulation, text operations
layout-storage-and-utilities.mdPositioning, alignment, storage, error handling, utilities

© bergside, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (references) in .agents/skills/figma-plugin of bergside/design-md-figma.

  • SKILL.md
  • references/api-globals-and-nodes.md
  • references/api-rendering-and-advanced.md
  • references/colors-and-text.md
  • references/development-testing-and-publishing.md
  • references/layout-storage-and-utilities.md
  • references/project-structure-and-build.md
  • references/selection-traversal-and-batching.md
  • references/ui-architecture-and-messaging.md
  • references/ui-patterns-and-resources.md
  • references/ui-react-and-theming.md

Open the folder on GitHubat commit 746501e

Compare with similar skills

Figma Plugin next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Figma Plugin compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Figma Plugin this skillbergside/design-md-figma152—~631Automated safety check: PassMIT
Extract DesignManavarya09/design-extract4.2k—~786Automated safety check: NotesMIT
Figma Codegenawdr74100/figwright982—~4.2kAutomated safety check: PassMIT
Igniteui Wc Customize Component ThemeIgniteUI/igniteui-webcomponents170—~4.3kAutomated safety check: PassMIT
Shift UI Componentsshift-editor/shift347—~2.5kAutomated safety check: PassApache-2.0
Figmahoodini/ai-agents-skills281—~4.5kAutomated safety check: PassNone

Similar skills

  • Extract Design

    Manavarya09/design-extract

    Extract the full design language from any website URL. An agent skill from Manavarya09/design-extract.

    4.2k GitHub stars~786 tokensUpdated 9 days ago
    Frontend & DesignAuto-check: notes
  • Figma Codegen

    awdr74100/figwright

    Generate framework-aware code from a Figma design. An agent skill from awdr74100/figwright.

    982 GitHub stars~4.2k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Igniteui Wc Customize Component Theme

    IgniteUI/igniteui-webcomponents

    Theme and style Ignite UI Web Components (and igniteui-react) apps using CSS custom properties, optional Sass, and the igniteui-theming MCP server.

    170 GitHub stars~4.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Shift UI Components

    shift-editor/shift

    Guides design, implementation and review of Shift interface work: shared Base UI wrappers, Tailwind v4 theme tokens, Figma matching and accessible interaction states.

    347 GitHub stars~2.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Figma

    hoodini/ai-agents-skills

    Integrate with Figma API for design automation and code generation.

    281 GitHub stars~4.5k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed

Works with

Questions about Figma Plugin

What does Figma Plugin do?

A skill your agent uses when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and…. Figma Plugin is an agent skill from bergside/design-md-figma. Use when building Figma plugins, creating design automation tools, implementing sandbox/UI communication, or working with the Figma Plugin API for node manipulation, styles, and components.

When should I use Figma Plugin?

Figma Plugin fits situations like: building Figma plugins; creating design automation tools; implementing sandbox/UI communication; working with the Figma Plugin API for node manipulation.

How do I install Figma Plugin in Claude Code?

Run `npx skills add bergside/design-md-figma --skill figma-plugin -a claude-code`. Or copy the skill folder (.agents/skills/figma-plugin in bergside/design-md-figma) into .claude/skills/figma-plugin in your project. Claude Code loads it when a task matches its description.

How do I install Figma Plugin in Codex?

Run `npx skills add bergside/design-md-figma --skill figma-plugin -a codex`. Or copy the skill folder (.agents/skills/figma-plugin in bergside/design-md-figma) into .agents/skills/figma-plugin in your project. Codex loads it when a task matches its description.

Can I use Figma Plugin in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bergside/design-md-figma --skill figma-plugin -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figma-plugin, .gemini/skills/figma-plugin, .github/skills/figma-plugin and .opencode/skills/figma-plugin in your project.

What does Figma Plugin need to run?

SKILL.md names no scripts, command-line tools or credentials: Figma Plugin is instructions for the agent only.

Does Figma Plugin access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Figma Plugin safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Figma Plugin use?

Figma Plugin is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Figma Plugin use?

About 631 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.

What are the alternatives to Figma Plugin?

Skills that share tags, products or a category with Figma Plugin: Extract Design (Manavarya09/design-extract, 4.2k stars), Figma Codegen (awdr74100/figwright, 982 stars), Igniteui Wc Customize Component Theme (IgniteUI/igniteui-webcomponents, 170 stars) and Shift UI Components (shift-editor/shift, 347 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Figma Plugin?

bergside (a GitHub organization) maintains it in bergside/design-md-figma, which has 152 GitHub stars. The repository was last updated on May 25, 2026.

Source: bergside/design-md-figma on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.