據 AlphaMoat 統計,截至 2026-09,Figma 累計下載 2,357 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 4,209 位,在「設計創意」分類(512 個)中排名第 414 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 51 | 1768 | - | - |
| SkillHub ↗ | 184 | 2357 | 1 | — |
各平台的計數口徑不同,統計時間不一致。
文件列出瀏覽團隊專案和檔案、讀取頁面與節點、匯出圖片、管理評論、檢視版本歷史、檢查元件樣式及獲取設計變數等操作。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 2357 | — | 1 |
| 2026-08 | 1898 | +17.7% | 1 |
| 2026-07 | 1612 | +18.5% | 1 |
| 2026-06 | 1360 | +10.2% | - |
| 2026-05 | 1234 | — | - |
| 2026-03 | 795 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: figma
description: Figma 集成。浏览团队项目与文件,读取设计结构、页面、节点,导出图片,管理评论,查看版本历史,检查组件/组件集/样式,获取设计变量(Token)。通过 MorphixAI 代理安全访问 Figma API。
metadata:
openclaw:
emoji: "🎨"
requires:
env: [MORPHIXAI_API_KEY]
---
# Figma
通过 `mx_figma` 工具访问 Figma 工作区:浏览项目文件、读取设计结构、导出图片、管理评论、查看组件库/组件集/样式、获取设计变量(Design Token)。
## 前置条件
1. **安装插件**: `openclaw plugins install openclaw-morphixai`
2. **获取 API Key**: 访问 [morphix.app/api-keys](https://morphix.app/api-keys) 生成 `mk_xxxxxx` 密钥
3. **配置环境变量**: `export MORPHIXAI_API_KEY="mk_your_key_here"`
4. **链接账号**: 访问 [morphix.app/connections](https://morphix.app/connections) 链接 Figma 账号,或通过 `mx_link` 工具链接(app: `figma`)
## 核心操作
### 查看当前用户
```
mx_figma:
action: get_me
```
### 浏览团队项目
```
mx_figma:
action: list_team_projects
team_id: "123456789"
```
### 列出项目中的文件
```
mx_figma:
action: list_project_files
project_id: "987654321"
```
### 获取文件结构
```
mx_figma:
action: get_file
file_key: "abc123DEF456"
depth: 2 # 1=仅页面, 2=页面+Frame, 省略=完整树
```
> `file_key` 从 Figma URL 中提取:`figma.com/design/{file_key}/...`
### 获取指定节点
```
mx_figma:
action: get_file_nodes
file_key: "abc123DEF456"
node_ids: ["1:2", "3:4"]
depth: 1
```
### 导出图片
```
mx_figma:
action: export_images
file_key: "abc123DEF456"
node_ids: ["1:2"]
format: "png" # jpg / png / svg / pdf
scale: 2 # 0.01–4, 默认 1
```
> 返回 node_id → 图片 URL 的映射。
### 评论操作
**列出评论:**
```
mx_figma:
action: list_comments
file_key: "abc123DEF456"
```
**发表评论:**
```
mx_figma:
action: post_comment
file_key: "abc123DEF456"
message: "这个按钮的圆角需要改为 8px"
```
**回复评论:**
```
mx_figma:
action: post_comment
file_key: "abc123DEF456"
message: "已修改,请确认"
comment_id: "12345"
```
**删除评论:**
```
mx_figma:
action: delete_comment
file_key: "abc123DEF456"
comment_id: "12345"
```
### 版本历史
```
mx_figma:
action: list_versions
file_key: "abc123DEF456"
```
### 组件
**文件内组件:**
```
mx_figma:
action: get_file_components
file_key: "abc123DEF456"
```
**团队组件库:**
```
mx_figma:
action: get_team_components
team_id: "123456789"
page_size: 30
```
### 组件集(变体)
组件集是包含多个变体的容器,例如 `Button` 组件集包含 Primary、Secondary 等变体。
**文件内组件集:**
```
mx_figma:
action: get_file_component_sets
file_key: "abc123DEF456"
```
**团队组件集:**
```
mx_figma:
action: get_team_component_sets
team_id: "123456789"
```
### 样式
**文件内样式:**
```
mx_figma:
action: get_file_styles
file_key: "abc123DEF456"
```
**团队样式库:**
```
mx_figma:
action: get_team_styles
team_id: "123456789"
```
### 设计变量(Design Token)
获取文件中定义的变量(颜色、数值、字符串、布尔值),对应 MCP 的 `get_variable_defs` 功能。
**本地变量:**
```
mx_figma:
action: get_local_variables
file_key: "abc123DEF456"
```
> 返回 `variables`(变量定义)和 `variableCollections`(变量集合/分组)。
> 变量包含 `resolvedType`(COLOR/FLOAT/STRING/BOOLEAN)和 `valuesByMode`(各模式下的值)。
**发布的变量(跨文件共享):**
```
mx_figma:
action: get_published_variables
file_key: "abc123DEF456"
```
## 常见工作流
### 设计走查
```
1. mx_figma: get_file, file_key: "xxx", depth: 1 → 查看页面列表
2. mx_figma: get_file_nodes, file_key: "xxx", node_ids: ["page_id"] → 查看页面详情
3. mx_figma: list_comments, file_key: "xxx" → 查看设计评论
4. mx_figma: post_comment → 添加走查反馈
```
### 设计资产导出
```
1. mx_figma: get_file, file_key: "xxx", depth: 2 → 找到目标 Frame
2. mx_figma: export_images, node_ids: ["frame_id"], format: "svg", scale: 2 → 导出 SVG
```
### 设计系统检查
```
1. mx_figma: get_file_components, file_key: "xxx" → 查看文件组件
2. mx_figma: get_file_component_sets, file_key: "xxx" → 查看组件变体
3. mx_figma: get_file_styles, file_key: "xxx" → 查看文件样式
4. mx_figma: get_local_variables, file_key: "xxx" → 查看设计变量/Token
5. mx_figma: get_team_components, team_id: "xxx" → 查看团队组件库
```
### 开发阶段:获取图层和组件信息
```
1. mx_figma: get_file, file_key: "xxx", depth: 2 → 获取页面和 Frame 结构
2. mx_figma: get_file_nodes, file_key: "xxx", node_ids: ["target_node"] → 获取指定节点详细属性
3. mx_figma: get_file_components, file_key: "xxx" → 获取可复用组件列表
4. mx_figma: get_file_component_sets, file_key: "xxx" → 获取组件变体(Primary/Secondary 等)
5. mx_figma: get_local_variables, file_key: "xxx" → 获取颜色/间距/字体等设计 Token
6. mx_figma: export_images, file_key: "xxx", node_ids: ["icon_id"], format: "svg" → 导出图标资源
```
### 版本对比
```
1. mx_figma: list_versions, file_key: "xxx" → 查看历史版本
2. mx_figma: list_comments, file_key: "xxx" → 查看相关讨论
```
## 注意事项
- `file_key` 从 Figma URL 获取:`https://figma.com/design/{file_key}/...`
- `node_id` 格式为 `"1:2"`(冒号分隔),从 Figma URL 的 `node-id` 参数获取(URL 中用 `-` 分隔,需转为 `:`)
- `get_file` 不带 `depth` 参数会返回完整文件树,大文件可能很慢,建议使用 `depth: 1` 或 `depth: 2`
- 导出图片返回的是临时 URL,有效期有限
- `account_id` 参数通常省略,工具自动检测已链接的 Figma 账号
- 变量 API 可能需要 Figma Enterprise 计划才能完整使用
## 与 Figma MCP 的关系
Figma 官方 MCP 提供了一些本 skill 无法通过 REST API 实现的功能:
| MCP 专有功能 | 说明 |
|-------------|------|
| `get_design_context` | 返回参考代码 + 截图 + 上下文(设计转代码核心) |
| `get_code_connect_map` | 设计节点→代码组件映射 |
| `generate_figma_design` | 网页截图导入 Figma |
| `generate_diagram` | FigJam 中生成 Mermaid 图表 |
本 skill 覆盖了 Figma REST API 的全部核心能力,适用于项目管理、设计系统检查和开发资源获取。对于设计转代码等高级工作流,建议配合 Figma MCP 使用。
ContextWeave 架構圖一鍵生成
用 Nano Banana Pro 生成或編輯圖片的指令碼技能。
用 whisper 命令列工具在本機將音訊轉成文字或進行翻譯。
透過 MCP 服務生成與編輯圖表的技能。
面向介面設計的思路與落地建議技能,覆蓋佈局、互動流程、設計令牌與前端改動。
面向多家影片模型 API 的 AI 影片生成與編排技能。
用 ffmpeg 從影片裡取出畫面幀,或生成便於快速檢視的縮圖。
用本地 Whisper 把音訊檔案轉成文字,模型下載完成後可完全離線執行。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。