Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bergside avatar

Figma Plugin

  • 2 installs
  • 137 repo stars
  • Updated May 25, 2026
  • bergside/design-md-figma

Figma Plugin Development is a skill that guides building Figma plugins with the Plugin API, including the main-sandbox / iframe-UI postMessage architecture.

About

Figma Plugin Development is a skill that teaches an agent to build Figma plugins using the Plugin API. It explains the two-thread architecture where the main sandbox handles figma.* node operations and the iframe UI thread handles HTML/CSS/JS, communicating via postMessage. A developer uses it when creating design-automation tools or extending Figma, backed by ten reference files on nodes, rendering, UI, and publishing.

  • Guides building Figma plugins with the Plugin API
  • Explains the two-thread main-sandbox / iframe-UI postMessage architecture
  • 10 bundled reference files covering nodes, rendering, UI, and publishing

Figma Plugin by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,863 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

figma-plugin capabilities & compatibility

Capabilities
figma plugin · design automation · ui development
Works with
figma
Use cases
frontend · ui design
Pricing
Free
From the docs

What figma-plugin says it does

Build plugins that extend Figma's functionality using the Plugin API.
SKILL.md
Communication between threads via `figma.ui.postMessage()` and `onmessage`
SKILL.md
npx skills add https://github.com/bergside/design-md-figma --skill figma-plugin

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars137
Last updatedMay 25, 2026
Repositorybergside/design-md-figma

What it does

Build a Figma plugin that manipulates nodes and styles via the Plugin API with a postMessage sandbox/UI split.

Who is it for?

Building Figma plugins and design-automation tools with correct sandbox/UI messaging.

Skip if: Non-Figma design work or plugins for other design tools.

When should I use this skill?

You are building a Figma plugin or automating Figma via the Plugin API.

By the numbers

  • 6-step Quick Start Checklist
  • 10 bundled reference files

Files

SKILL.mdMarkdownGitHub ↗

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

Related skills

FAQ

How do Figma plugins communicate between threads?

The main sandbox and iframe UI communicate via figma.ui.postMessage() and onmessage.

Which thread can call the Figma API?

Only the main sandbox thread has Figma API access; the iframe UI thread handles HTML/CSS/JS and external APIs.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.