跳到正文
cccskills
免费在 GitHub 公开中文介绍

understand-figma

分析 Figma 文件,将页面、界面、组件、实例及颜色等共享设计值之间的关系整理成图,并通过交互式仪表板查看整体设计结构。

原文查看原文说明

Analyze a Figma file via the Figma REST API and generate an interactive design knowledge graph (pages, screens, components, component sets, instances, design tokens) with a kind:"design" dashboard.

集成工具Figma
AI 评分80分/ 100查看安装方法

适用场景

  • 了解 Figma 文件的整体结构
  • 查看组件及其实例所在位置的关系
  • 检查共享设计值的使用情况
  • 指定输出语言分析设计

中文介绍

功能

分析 Figma 文件,将页面、界面、组件、汇集变体的组件集以及已放置实例之间的关系绘制成图。分析也涵盖设计令牌,即颜色等共享设计值。它将 Figma REST API 获取的结构与 AI 分析相结合,保存为设计知识图谱,并打开交互式仪表板供用户查看。

适用场景

适合需要了解整个 Figma 文件结构、梳理各个部件之间的关系,或检查共享值使用情况的用户。分析完成后,可以查看各类元素的数量和关系汇总。也可以指定输出语言。如果同一文件版本已经分析过,会报告这一状态。

使用示例

  • “根据这个 Figma 文件的链接,画出设计结构和组件之间的关系。”
  • “使用 /understand-figma <figma-file-url-or-key> --language zh 分析文件。”

注意事项

需要将 Figma 个人访问令牌设置为环境变量 FIGMA_TOKEN,并准备 Node 22 及以上版本、pnpm 10 及以上版本。运行期间会连接 api.figma.com,因此并非完全离线。令牌通过请求头发送,按设计不会保存到图谱、日志或中间文件中。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确说明分析 Figma 文件并生成设计知识图谱和仪表板。
步骤具体性步骤、输入输出和示例是否具体
A良好列出了获取、分析、合并、保存步骤,以及执行脚本和输出文件。
安全性发送数据、删除文件、执行命令等是否有说明
C需确认使用 rm -rf 删除中间目录中除 scan-manifest.json 外的内容,无确认步骤。
安装难易度所需工具和 API 密钥是否少且有说明
A良好提供 FIGMA_TOKEN 设置方法、Node 和 pnpm 版本要求及安装构建命令。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月21日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(3)

  • SKILL.md4.0 KB
  • figma-merge.mjs1.7 KB
  • figma-scan.mjs4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/understand-figma

Analyzes a Figma file and produces an interactive design knowledge graph in the existing dashboard.

Prerequisites

  • FIGMA_TOKEN environment variable — a Figma personal access token (create one at https://www.figma.com/settings). If it is missing, STOP and tell the user:

    Set a Figma token first: create one at figma.com/settings, then export FIGMA_TOKEN=<token>.

  • Node ≥ 22, pnpm ≥ 10.

Security: the token is read only from the environment and travels only in the X-Figma-Token request header. Never write it to the graph, meta.json, logs, or intermediate files. This skill makes outbound calls to api.figma.com — unlike /understand, it is not fully offline. Tell the user this once.

Phase 0 — Pre-flight

  1. Parse $ARGUMENTS for a Figma URL or bare file key (the non-flag token) and an optional --language <lang>.
  2. Resolve PROJECT_ROOT to the current working directory. Resolve the data directory $UA_DIR once and reuse it for every read and write below: UA_DIR="$PROJECT_ROOT/$([ -d "$PROJECT_ROOT/.understand-anything" ] && echo .understand-anything || echo .ua)" — the legacy .understand-anything/ when it already exists, otherwise the new .ua/. Because each phase may run in a fresh shell, carry $UA_DIR forward like $PROJECT_ROOT, re-resolving it with the same line if a later command block needs it.
  3. Resolve PLUGIN_ROOT and ensure core is built (same logic as /understand Phase 0.1.5). If packages/core/dist/figma/index.js is missing, run:
    cd "$PLUGIN_ROOT" && (pnpm install --frozen-lockfile 2>/dev/null || pnpm install) && pnpm --filter @understand-anything/core build
    
  4. mkdir -p $UA_DIR/intermediate.

Phase 1 — FETCH & PARSE (deterministic)

Run the bundled scan script (<SKILL_DIR> is this skill's directory):

FIGMA_TOKEN="$FIGMA_TOKEN" node <SKILL_DIR>/figma-scan.mjs "$PROJECT_ROOT" "<url-or-key>"

It writes $UA_DIR/intermediate/scan-manifest.json and prints the node counts. Relay the counts to the user. If it exits non-zero, relay stderr and STOP.

If the scan prints UP_TO_DATE, report "Design graph is already up to date for this Figma file version" and STOP. To force a full rebuild, re-run with UNDERSTAND_FIGMA_FORCE=1 set in the environment.

Phase 2 — ANALYZE (LLM enrichment)

  1. Read scan-manifest.json. Group nodes into batches of ~15, grouped by page when possible.
  2. For each batch, dispatch a subagent using the design-analyzer agent definition (agents/design-analyzer.md). Pass:
    • the batch of nodes (id, type, name, figmaMeta, child names, token usage),
    • the full list of existing node IDs,
    • $INTERMEDIATE_DIR = $UA_DIR/intermediate,
    • the batch number for output naming. The agent writes analysis-batch-<N>.json. Append $LANGUAGE_DIRECTIVE if --language was provided (reuse /understand's directive text).
  3. Run up to 5 batches concurrently. If a batch fails, log a warning and continue — the manifest is a solid base.

Phase 3 — MERGE

node <SKILL_DIR>/figma-merge.mjs "$PROJECT_ROOT"

It combines scan-manifest.json + analysis-batch-*.json, runs mergeDesignGraph (validates, re-attaches kind:"design"), and writes knowledge-graph.json + meta.json. Relay the printed stats and any non-auto-corrected issues.

Phase 4 — SAVE & LAUNCH

  1. Clean up intermediate files except scan-manifest.json:
    INTER="$UA_DIR/intermediate"
    find "$INTER" -mindepth 1 -maxdepth 1 -not -name 'scan-manifest.json' -exec rm -rf {} +
    
  2. Report a summary: project name, counts by node type, edges by type, layers, tour steps, and the path $UA_DIR/knowledge-graph.json.
  3. Auto-launch the dashboard by invoking the /understand-dashboard skill.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

understand

免费有简介AI 评分 80分

分析项目代码、配置、文档和基础设施文件,生成可交互探索的结构与依赖关系图。支持日语说明、文件排除,以及根据变更更新已有分析结果。

  • 了解首次接触的项目结构
  • 检查组成部分之间的依赖
  • 用日语生成设计说明
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

understand-chat

免费有简介AI 评分 100分

利用记录代码组成及其关系的知识图谱,查找与问题有关的文件和函数,追踪调用与依赖关系,并结合架构分层具体解释项目的工作方式。

  • 了解功能的工作方式
  • 查找调用方和依赖项
  • 探索与某个概念相关的代码
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

understand-dashboard

免费有简介AI 评分 90分

启动交互式网页仪表板,以图形查看已分析代码库的结构和关系。可显示当前工作目录或指定项目的数据,并提供包含访问令牌的本地网址。

  • 以图形查看已分析的代码库
  • 打开当前项目的结构关系图
  • 查看其他项目的分析结果
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

understand-diff

免费有简介AI 评分 90分

将 Git 差异或拉取请求与知识图谱对照,整理修改位置、周边影响、跨架构层关系及审查风险,并保存用于仪表板展示的数据。

  • 准备审查拉取请求
  • 检查未提交变更的影响
  • 检查跨架构层的变更
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

understand-domain

免费有简介AI 评分 70分

从代码中提取业务领域、业务流程和具体步骤,生成可交互的横向流程图。既可利用现有知识图谱,也可通过轻量扫描收集分析材料。

  • 了解代码中实现的业务流程
  • 展示业务领域与步骤的联系
  • 从业务角度梳理现有知识图谱
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

understand-explain

免费有简介AI 评分 100分

结合现有知识图谱与实际源代码,详细解释指定文件、函数或模块的设计作用、调用关系、依赖及输入输出流程,帮助不熟悉该编程语言的读者理解代码。

  • 了解指定文件的作用
  • 查找函数的调用方和依赖
  • 追踪从输入到输出的数据流程
Egonex-AI/Understand-Anything8.8万2026年10月23日 更新

查看 Egonex-AI 的全部技能

报告此技能的问题