Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

figma-developerFigma 开发者

Agent Skill

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

总安装

899

周安装

36

GitHub Stars

10

下载量

291
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill figma-developer

简介

figma-developer 用于辅助界面设计、视觉规范和交互体验优化。

  • 它适合整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合现有品牌和设计系统,不应只堆装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查表现。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Figma Developer

Overview

Automates the Figma-to-code bridge using the Figma REST API. Extracts design tokens (colors, typography, spacing) as CSS variables and JSON, exports icons as SVG React components, generates React components from Figma node structures, and sets up CI pipelines for continuous design sync.

When to use: Syncing design tokens from Figma to code, exporting icon sets as React components, generating component scaffolding from Figma variants, setting up automated design sync in CI.

When NOT to use: Manual one-off design tweaks (just copy values), Figma plugin development (use the Plugin API instead), real-time collaborative editing (use Figma webhooks directly), or projects without a Figma design system.

Quick Reference

PatternAPI / ApproachKey Points
Get file dataGET /v1/files/:keyReturns full document tree with styles and fills
Get specific nodesGET /v1/files/:key/nodes?ids=...Fetch only the nodes you need to reduce payload
Export imagesGET /v1/images/:key?ids=...&format=svgRenders nodes as SVG/PNG/PDF; URLs expire in 14 days
Get stylesGET /v1/files/:key/stylesLists all published color, text, and effect styles
Get componentsGET /v1/files/:key/componentsLists all published components with metadata
Get component setsGET /v1/files/:key/component_setsReturns variant groupings for components
Get variablesGET /v1/files/:key/variables/localExtracts Figma Variables (colors, spacing, etc.)
Publish variablesPOST /v1/variablesPublishes local variables organization-wide
Token extractionParse styles from file response, transform to CSS/JSONNo built-in "extract tokens" endpoint exists
CI syncGitHub Actions cron + peter-evans/create-pull-requestAuto-sync PRs on Figma file changes

Figma File Organization

SectionContents
ColorsAll color styles with / hierarchy (Primary/500)
TypographyText styles (Heading/Large, Body/Regular)
SpacingSpacing guide values
ComponentsVariant groups (Button/Primary, Card/Default)
IconsAll icons in one exportable frame

Common Mistakes

MistakeFix
Using fabricated API methods like extractDesignTokens()Parse styles from GET /v1/files/:key response manually
Hardcoding Figma values instead of using tokensExtract tokens to CSS variables, reference with var()
Not normalizing Figma style namesLowercase + replace special chars with hyphens
Forgetting Figma uses 0-1 RGB not 0-255Multiply by 255 and round before hex conversion
No API response cachingCache with TTL to avoid rate limits
Manual icon exportsAutomate with GET /v1/images/:key + React component generation
No CI sync workflowGitHub Actions cron + create-pull-request action
Using expired image URLsImage export URLs expire in 14 days; re-fetch before use

Libraries

PackagePurpose
figma-apiCommunity Figma REST API client (typed)
@figma/rest-api-specOfficial TypeScript types for Figma API
style-dictionaryTransform design tokens across platforms
svgoOptimize exported SVGs before use
@svgr/coreConvert SVG files to React components

Delegation

  • Design systems: see design-system skill
  • Asset optimization: see asset-manager skill

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.8%
按下载量换算98

Claude

31.67%
按下载量换算92

Cursor

18.86%
按下载量换算55

Gemini CLI

10.12%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills