Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

figma-node-fetcherFigma node fetcher 浏览器

Agent Skill

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

总安装

235

周安装

10

GitHub Stars

1

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/learnwy/skills --skill figma-node-fetcher

简介

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

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

SKILL.md

Figma Node Fetcher

Fetch data by node from Figma URL and avoid downloading full file trees.

When To Use

Invoke when:

  • User provides a Figma link and needs node JSON structure
  • User needs node image export (screenshot, rendered PNG/SVG)
  • User wants analysis for a specific node, not the whole file
  • User says "fetch Figma data", "get Figma node", "export Figma image", or similar

Do NOT invoke when:

  • URL has no node-id query — ask user to provide the specific node link
  • User asks to fetch an entire Figma file tree — not supported
  • Request is outside supported endpoints (e.g., comments, version history, components API)

Prerequisites

  • Node.js >= 18
  • FIGMA_ACCESS_TOKEN environment variable (or .env.local / .figma.env file with the token)
  • If token is missing, run node {skill_dir}/scripts/init_figma_config.cjs to set up

Fixed Workflow

  1. Check token config: FIGMA_ACCESS_TOKEN.
  2. Validate Figma URL: must include node-id.
  3. Route by need:

- structure data → type=node - rendered image → type=image

  1. Choose fetch mode:

- single URL → fetch - multiple URLs → fetch-batch

  1. Run script and return standardized JSON output.

Config Policy

Read token in this order:

  1. environment variable FIGMA_ACCESS_TOKEN
  2. {project_root}/.env
  3. {project_root}/.env.local
  4. {project_root}/.figma.env

Recommended location: {project_root}/.env.local

Scripts

1) Init config

node {skill_dir}/scripts/init_figma_config.cjs --project-root {project_root} --file .env.local

2) Check config

node {skill_dir}/scripts/figma_fetch.cjs check-config --project-root {project_root}

3) Validate URL

node {skill_dir}/scripts/figma_fetch.cjs validate-link --url "https://www.figma.com/file/xxx/xxx?node-id=1%3A2"

4) Fetch node JSON

node {skill_dir}/scripts/figma_fetch.cjs fetch \
  --project-root {project_root} \
  --url "https://www.figma.com/file/xxx/xxx?node-id=1%3A2" \
  --type node \
  --depth 2 \
  --output-dir {project_root}/.figma-output/node

5) Fetch node image

node {skill_dir}/scripts/figma_fetch.cjs fetch \
  --project-root {project_root} \
  --url "https://www.figma.com/file/xxx/xxx?node-id=1%3A2" \
  --type image \
  --format png \
  --scale 2 \
  --output-dir {project_root}/.figma-output/image

6) Batch fetch (multiple URLs)

node {skill_dir}/scripts/figma_fetch.cjs fetch-batch \
  --project-root {project_root} \
  --url "https://www.figma.com/file/xxx/A?node-id=1%3A2" \
  --url "https://www.figma.com/file/xxx/A?node-id=1%3A3" \
  --type node \
  --output-dir {project_root}/.figma-output/batch \
  --clean-output

or:

node {skill_dir}/scripts/figma_fetch.cjs fetch-batch \
  --project-root {project_root} \
  --urls-file {project_root}/figma-urls.txt \
  --type image \
  --format png \
  --output-dir {project_root}/.figma-output/batch-images

Input Contract

Required fields:

  • url
  • type (node or image)
  • output-dir

url must include node-id query.

Batch mode:

  • Provide at least one --url or --urls-file
  • Each URL must include node-id

Output Contract

Always return JSON with:

  • ok
  • mode
  • type
  • single mode: figma.file_key, figma.node_id, output
  • batch mode: success_count, failure_count, items, failures, output_dir

Error Handling

  • Missing token: return missing_token + setup guidance.
  • Missing node-id: fail fast with clear error.
  • No image URL from API: fail with explicit error.
  • Batch mode partial failure: return non-zero code + failures array.

API Scope Notes

Read and follow:

  • {skill_dir}/references/figma-rest-api-notes.md
  • {skill_dir}/examples/integration.md

Supported endpoints only:

  • /v1/files/{file_key}/nodes
  • /v1/images/{file_key}

Do not promise capabilities outside these scripts.

Execution Checklist

Before responding to user, verify:

  • FIGMA_ACCESS_TOKEN is available (run check-config if uncertain)
  • Figma URL contains node-id query parameter
  • Correct type selected (node for JSON structure, image for rendered export)
  • output-dir is set to a project-relative path
  • Script returned ok: true — if not, relay the error clearly
  • Response includes the standardized JSON output or saved file path

Boundary Enforcement

This skill ONLY handles:

  • ✅ Validating Figma URLs with node-id
  • ✅ Fetching node JSON structure via /v1/files/{file_key}/nodes
  • ✅ Fetching node rendered images via /v1/images/{file_key}
  • ✅ Batch fetching multiple nodes (JSON or image)
  • ✅ Token configuration setup and validation

This skill does NOT handle:

  • ❌ Fetching entire Figma file trees (no node-id) → inform user this is unsupported
  • ❌ Figma comments, version history, or components API → outside scope
  • ❌ Design-to-code generation → delegate to a frontend/product skill, use this skill as data provider
  • ❌ Modifying Figma designs (read-only access)

Cross-Skill Orchestration

This skill can be called by other skills.

Recommended orchestration pattern:

  1. Product/Frontend skill receives Figma URL from user.
  2. Product/Frontend skill calls this skill (or runs {skill_dir}/scripts/figma_fetch.cjs) to fetch node JSON/image.
  3. Product/Frontend skill consumes the fetched artifacts to continue implementation.

Practical rule:

  • Do not switch to this skill first unless the user request is specifically “fetch Figma data/image”.
  • In mixed tasks (e.g., “build page from Figma”), keep the main skill as orchestrator and use this skill as a data provider.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.26%
按下载量换算28

Claude

31.93%
按下载量换算26

Cursor

17.77%
按下载量换算15

Gemini CLI

9.96%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills