Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-figmaOpenClaw Figma 搜索

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

6,328

周安装

256

GitHub Stars

公开资料未说明

下载量

1,987
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-figma(OpenClaw Figma 搜索)
来源仓库:https://github.com/chenyqthu/openclaw-figma
安装命令:
openclaw skills install openclaw-figma
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-figma

简介

辅助界面设计流程,支持从 Figma 读取设计资产并生成代码,提升设计与开发协作效率。

  • 适用于 UI 方案输出、视觉规范检查或组件结构梳理,尤其适合产品原型到代码的转换场景。
  • 通过 REST API 直接调用 Figma 资源,结合 MCP 服务器实现设计稿解析与代码导出。
  • 需配置有效的 Figma API Token 并授权访问目标文件,注意敏感信息隔离与权限最小化原则。
  • 涉及页面改动时应通过浏览器预览验证效果,避免仅依赖截图导致文本溢出或布局错位。

SKILL.md

name
figma
description
|

Figma Skill

Installation

For OpenClaw agents (ClawHub)

clawhub install figma

For Claude Code (MCP Server)

# Add Figma MCP (one-time, global)
claude mcp add --scope user --transport http figma https://mcp.figma.com/mcp

# Or install the official Figma plugin (includes Skills)
claude plugin install figma@claude-plugins-official

For Codex CLI

codex mcp add figma --transport http https://mcp.figma.com/mcp

Environment

Set FIGMA_TOKEN (Personal Access Token) in your environment or .env file. Generate at: https://www.figma.com/settings → Account → Personal access tokens


Quick Reference

Two access methods

MethodUse caseAuth
REST API (scripts/figma_api.py)Read file structure, components, export imagesFIGMA_TOKEN
MCP Server (https://mcp.figma.com/mcp)Interactive design-to-code, write to canvasOAuth (auto)

1. REST API — Direct File Access

Use scripts/figma_api.py to query Figma files directly. Supports full URLs or file keys.

Commands

# File structure
python3 scripts/figma_api.py pages <file_key_or_url>

# Frame tree (depth controls levels)
python3 scripts/figma_api.py tree <file_key> --node <page_id> --depth 3

# Published components (--group to aggregate by frame)
python3 scripts/figma_api.py components <file_key> --group

# Component sets
python3 scripts/figma_api.py component-sets <file_key>

# Styles
python3 scripts/figma_api.py styles <file_key>

# Export as PNG/SVG
python3 scripts/figma_api.py export <file_key> --nodes <id1>,<id2> --format png --scale 2

# Node JSON detail
python3 scripts/figma_api.py node <file_key> --node <node_id> --depth 4

# Current user info
python3 scripts/figma_api.py me

2. MCP Server — 14 Tools

Read tools (any Figma plan)

ToolPurpose
get_design_contextDesign context → code (default React+Tailwind, customizable)
get_variable_defsVariables and styles (colors, spacing, typography)
get_metadataSparse XML: layer IDs, names, types, positions, sizes
get_screenshotScreenshot of selection
get_code_connect_mapFigma node → code component mapping (needs Code Connect)
search_design_systemSearch library components, variables, styles
whoamiAuthenticated user info

Write tools (beta free, needs Full seat + edit permission)

ToolPurpose
use_figmaExecute Figma Plugin API JS: create/modify frames, components, variables, auto layout
generate_figma_designConvert live browser UI → editable Figma layers
create_new_fileCreate new file in Drafts
generate_diagramMermaid syntax → FigJam diagram

Helper tools

ToolPurpose
create_design_system_rulesGenerate design system rules file for AI code generation
add_code_connect_mapAdd Figma node → code component mapping
get_code_connect_suggestionsCode Connect mapping suggestions

Write limitations

  • 20KB response limit per call
  • No image/asset import support
  • Full seat required (Dev seat = read-only)
  • Large changes: inspect first → incremental create/update → verify

3. Design-to-Code Workflow

For Claude Code / Codex (via MCP)

Step 1 — Provide the Figma frame URL in your prompt:

Using this Figma frame: https://www.figma.com/design/<key>?node-id=<id>
Generate React components using [your component library].

Step 2 — For large pages, ask the agent to inspect first:

1. Use get_metadata on the frame to understand the structure
2. Use search_design_system to find matching library components
3. Use get_design_context on each section to generate code

Step 3 — Write back to Figma (if editor permission):

Using this file: <url>, create a new page and build [description]
using existing components. Use auto layout.

For OpenClaw agents (via REST API)

  1. figma_api.py pages <url> → identify target page
  2. figma_api.py tree <key> --node <page_id> → understand structure
  3. figma_api.py export <key> --nodes <frame_id> → get screenshot
  4. figma_api.py node <key> --node <frame_id> --depth 4 → get component details
  5. Generate code using the structural data + screenshot

Best practices

  • Always specify frontend framework and component library in prompts
  • Large pages: get_metadata overview first, then get_design_context per section
  • Use get_screenshot for layout-sensitive components
  • Rate limit: space REST API calls ≥500ms apart
  • Keep depth ≤ 4 to avoid timeouts on large files

4. Asset Registry

Register your Figma files in references/omada-assets.md for quick lookup. See references/guide-for-agents.md for the complete agent operation manual. See references/guide-for-humans.md for the human-facing usage guide.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.76%
按下载量换算1,625

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills