Paul Leo

Figma

Design & Mediav0.1.1
By Paul LeoUpdated 2026-05-112 versions · latest released 2026-03-06figma-2@clawhub_paul-leo/figma-2
Visual Assets

According to AlphaMoat, as of 2026-09, Figma has 2,357 downloads and 1 stars — ranked #4,209 of 5,078 AI skills overall, and #414 of 512 in Design & Media.

Installs
184
Downloads
2.4K
Stars
1
Overall Rank
#4,209
Top 83% overall · Top 81% in Design & Media
PlatformInstallsDownloadsStarsComments
ClawHub ↗511.8K--
SkillHub ↗1842.4K1—

Platforms count differently and update at different times.

What this skill does

The documentation lists browsing team projects and files, reading pages and nodes, exporting images, managing comments, reviewing version history, inspecting components and styles, and retrieving design variables.

Profile published 2026-10-27

What you can do with it

  • Browse Figma team projects and file structure
  • Inspect nodes, components, styles, or design variables

When to use it

  • When reading or inspecting Figma design files
  • When the proxy API key is configured and a Figma account is linked

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Summarize the pages and component structure of a Figma file
Review the design variables available in a design file

Monthly Trend

Downloads2.4K
6701.6K2.5K2026-03 · Downloads 7952026-05 · Downloads 1.2K2026-06 · Downloads 1.4K2026-07 · Downloads 1.6K2026-08 · Downloads 1.9K2026-09 · Downloads 2.4K26-0326-09
Stars1
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars 12026-08 · Stars 12026-09 · Stars 126-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-092.4K—1
2026-081.9K+17.7%1
2026-071.6K+18.5%1
2026-061.4K+10.2%-
2026-051.2K—-
2026-03795—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

6.6 KB · ClawHub v0.1.1
---
name: figma
description: Figma 集成。浏览团队项目与文件,读取设计结构、页面、节点,导出图片,管理评论,查看版本历史,检查组件/组件集/样式,获取设计变量(Token)。通过 MorphixAI 代理安全访问 Figma API。
metadata:
  openclaw:
    emoji: "🎨"
    requires:
      env: [MORPHIXAI_API_KEY]
---
Show all (262 lines)
# 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 使用。

Popular in Design & Media

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.