figma-plugin

用于构建 Figma 插件、创建设计自动化工具、实现沙盒与 UI 通信,或在使用 Figma Plugin API 进行节点操作、样式和组件处理时的说明或参考资料。

仓库最近推送
GitHub Stars
160
Forks
20
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "figma-plugin":https://skillpi.com/zh/skills/deepskill-e142fe4cb3afb2e39b58e1a4e720b58ac9894f4b8843b5af91768bd994817539。安装前核对上游来源和版本:https://github.com/bergside/design-md-figma。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于构建 Figma 插件、创建设计自动化工具、实现沙盒与 UI 通信,或在使用 Figma Plugin API 进行节点操作、样式和组件处理时的说明或参考资料。

0 下载

介绍来源: third_party · bergside · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
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

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

版本历史

  1. v1.0.0 GitHub ↗
    原版更新说明

    - generate DESIGN.md and SKILL.md files based on local style extraction

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 面向 Figma 插件开发的专业场景,提供完整架构指南和快速入门清单
  • 涵盖沙盒/UI 通信、节点操作、样式处理等核心开发需求,实用价值高
触发精准95/100

亮点

  • 触发描述精准覆盖 Figma 插件开发、设计自动化、API 操作等关键场景
  • 边界清晰,无歧义或重叠风险
结构规范90/100

亮点

  • 文档结构清晰,包含架构、原则、快速入门等完整章节
  • frontmatter 完整,有明确的参考文档链接
执行可靠90/100

亮点

  • 基于 Figma 官方 Plugin API,架构和通信机制描述准确
  • 无工具来源不明或参数错误问题,执行可靠性高
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。