Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计提醒

figma-extractFigma 提取

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

6

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/duc01226/easyplatform --skill figma-extract

简介

用于优化界面设计、视觉规范、排版、配色、布局和交互体验。

  • 可整理页面结构、生成 UI 方案或检查视觉一致性,改进组件层级。
  • 需结合品牌、设计系统和用户任务,避免堆砌装饰元素;改动后应通过截图或浏览器预览检查表现。
  • 安装命令:npx skills add https://github.com/duc01226/easyplatform --skill figma-extract
  • 适用于 Codex、Claude、Cursor、Gemini CLI,需授权访问 Figma 文件。

SKILL.md

Figma Extraction

Extract design specifications from Figma files using MCP integration.

When to Use

  • Figma URL provided for design extraction
  • Need design tokens from Figma
  • Converting Figma to implementation spec

Pre-Workflow

Activate Skills

  • Activate design-spec skill for design extraction best practices

Arguments

ArgRequiredDefaultDescription
urlYes-Figma design URL
outputNomarkdownmarkdown \json
depthNo5Hierarchy depth 1-10
timeoutNo30Seconds

Workflow

  1. Parse URL

- Extract file key from URL - Extract node ID if present (?node-id=X:Y) - Pattern: figma.com/(design|file)/([a-zA-Z0-9]+)

  1. Validate MCP

- Check if Figma MCP tools available - If not: return error with setup instructions

  1. Extract via MCP

- Call Figma MCP with file key - If node ID: filter to specific node - Apply timeout (default 30s) - abort if exceeded - Limit component depth (default 5 levels) - Handle rate limit errors gracefully

  1. Transform Response Extract and structure:

- Colors: fills, strokes -> hex/rgba table - Typography: text nodes -> font/size/weight table - Spacing: auto-layout -> padding/gap table - Components: node tree -> hierarchy text

  1. Format Output

- markdown: Tables matching design-spec template Section 7 - json: Structured object for programmatic use

  1. Return Result

- Save extraction output to team-artifacts/designs/{YYMMDD}-figma-extract-{feature}.md - Success: formatted specs - Partial: specs with warnings about missing data - Failed: error message with fallback suggestion

URL Format

https://www.figma.com/design/{fileKey}/{fileName}?node-id={nodeId}

Output Format (markdown)

Colors

NameHexUsage
Primary#3B82F6Buttons, links

Typography

ElementFontSizeWeight
HeadingInter24px600

Spacing

ElementPaddingGap
Card16px12px

Component Hierarchy

Frame "Card"
+-- Image "avatar"
+-- Text "name"
+-- Frame "actions"
    +-- Button "edit"
    +-- Button "delete"

Error Handling

ErrorMessage
No MCP"Figma MCP not configured. See.claude/docs/figma-setup.md"
Invalid URL"Could not parse Figma URL. Expected: figma.com/design/{key}"
Timeout"Figma extraction timed out after {timeout}s. Try with specific node-id or reduce depth."
Rate limited"Figma API rate limit reached. Try again later."
Not found"Figma file not found or not accessible with current token"
Too deep"Component hierarchy exceeds max depth ({depth}). Results truncated."

Configuration Defaults

SettingValueRationale
Max Component Depth5 levelsPrevents token bloat
Extraction Timeout30 secondsPrevents blocking
Max Colors20Focus on primary palette
Max Typography10Focus on main text styles

Example

/figma-extract https://www.figma.com/design/ABC123/MyDesign?node-id=1:2

Related

  • Role Skill: ux-designer
  • Used by: /design-spec
  • MCP: Requires figma MCP tools

IMPORTANT Task Planning Notes

  • Always plan and break many small todo tasks
  • Always add a final review todo task to review the works done at the end to find any fix or enhancement needed

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

24.28%
按下载量换算17

windsurf

23.49%
按下载量换算17

OpenCode

18.71%
按下载量换算13

Cursor

13.23%
按下载量换算9

Codex

6.77%
按下载量换算5

Antigravity

3.34%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills