根据代码库在 Figma 中创建或更新专业级设计系统与组件库
这是一个以提示词/流程编排为主的开源 Skill,材料中未显示需要密钥、远程端点、本机代码执行或直接数据读写能力。结合 GitHub 开源来源与较高社区采用度,整体偏低风险,但仍应留意其依赖配套 `figma-use` 技能后的实际权限边界。
材料明确标注“需要的密钥/环境变量:无”,README 也未要求 API key、token 或账户凭证;就该 Skill 本身看,不涉及凭证收集、存储或滥用路径。
系统检查项显示为 prompt-only,且“远程端点 host:无”。文档仅描述设计系统构建流程与对配套技能的调用约束,未见将用户数据外发到第三方服务或不明端点的事实。
该 Skill 本身是指导 `use_figma` 调用顺序与方法的说明性内容,不包含可见的本机起进程、执行脚本或直接调用系统能力的描述;就当前材料而言不具备独立代码执行面。
材料未声明可直接读取/写入本地文件、数据库或系统资源;其内容主要是围绕 Figma 设计系统建设的流程知识。虽然提到“analyze codebase / inspect Figma file”,但该访问能力并非由此 Skill 自身提供。
来源为 GitHub 开源仓库 `openai/skills`,且社区采用度高(约 22k stars),这些都是明显的降风险因素。虽许可证未声明、维护状态未知,存在一定治理信息缺口,但未见闭源、失真来源或可疑注入红旗。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "figma-generate-library" 技能: 1. 下载 https://raw.githubusercontent.com/openai/skills/main/skills/.curated/figma-generate-library/SKILL.md 2. 保存为 ~/.claude/skills/figma-generate-library/SKILL.md 3. 装好后重载技能,告诉我可以用了
Build professional-grade design systems in Figma that match code. This skill orchestrates multi-phase workflows across 20–100+ use_figma calls, enforcing quality patterns from real-world design systems (Material 3, Polaris, Figma UI3, Simple DS).
Prerequisites: The figma-use skill MUST also be loaded for every use_figma call. It provides Plugin API syntax rules (return pattern, page reset, ID return, font loading, color range). This skill provides design system domain knowledge and workflow orchestration.
Always pass skillNames: "figma-generate-library" when calling use_figma as part of this skill. This is a logging parameter — it does not affect execution.
This is NEVER a one-shot task. Building a design system requires 20–100+ use_figma calls across multiple phases, with mandatory user checkpoints between them. Any attempt to create everything in one call WILL produce broken, incomplete, or unrecoverable results. Break every operation to the smallest useful unit, validate, get feedback, proceed.
Every design system build follows this phase order. Skipping or reordering phases causes structural failures that are expensive to undo.
Phase 0: DISCOVERY (always first — no use_figma writes yet)
0a. Analyze codebase → extract tokens, components, naming conventions
0b. Inspect Figma file → pages, variables, components, styles, existing conventions
0c. Search subscribed libraries → use search_design_system for reusable assets
0d. Lock v1 scope → agree on exact token set + component list before any creation
0e. Map code → Figma → resolve conflicts (code and Figma disagree = ask user)
✋ USER CHECKPOINT: present full plan, await explicit approval
Phase 1: FOUNDATIONS (tokens first — always before components)
1a. Create variable collections and modes
1b. Create primitive variables (raw values, 1 mode)
1c. Create semantic variables (aliased to primitives, mode-aware)
1d. Set scopes on ALL variables
1e. Set code syntax on ALL variables
1f. Create effect styles (shadows) and text styles (typography)
→ Exit criteria: every token from the agreed plan exists, all scopes set, all code syntax set
✋ USER CHECKPOINT: show variable summary, await approval
Phase 2: FILE STRUCTURE (before components)
2a. Create page skeleton: Cover → Getting Started → Foundations → --- → Components → --- → Utilities
2b. Create foundations documentation pages (color swatches, type specimens, spacing bars)
→ Exit criteria: all planned pages exist, foundations docs are navigable
✋ USER CHECKPOINT: show page list + screenshot, await approval
Phase 3: COMPONENTS (one at a time — never batch)
For EACH component (in dependency order: atoms before molecules):
3a. Create dedicated page
3b. Build base component with auto-layout + full variable bindings
3c. Create all variant combinations (combineAsVariants + grid layout)
3d. Add component properties (TEXT, BOOLEAN, INSTANCE_SWAP)
3e. Link properties to child nodes
3f. Add page documentation (title, description, usage notes)
3g. Validate: get_metadata (structure) + get_screenshot (visual)
3h. Optional: lightweight Code Connect mapping while context is fresh
→ Exit criteria: variant count correct, all bindings verified, screenshot looks right
✋ USER CHECKPOINT per component: show screenshot, await approval before next component
Phase 4: INTEGRATION + QA (final pass)
4a. Finalize all Code Connect mappings
4b. Accessibility audit (contrast, min touch targets, focus visibility)
4c. Naming audit (no duplicates, no unnamed nodes, consistent casing)
4d. Unresolved bindings audit (no hardcoded fills/strokes remaining)
4e. Final review screenshots of every page
✋ USER CHECKPOINT: complete sign-off
Plugin API basics (from use_figma skill — enforced here too):
…
为项目代码库生成定制化设计系统规则,统一 Figma 到代码协作规范。
将代码或页面描述转成Figma完整界面,并按设计系统逐段搭建设计稿
帮助你用 gh CLI 处理当前分支 GitHub PR 的评审与问题评论。
帮助排查并修复 GitHub Actions 的 PR 检查失败,先分析日志再经批准实施修改。
将 Notion 规格说明转为实施计划、任务拆解与进度跟踪。
帮助你将应用与基础设施部署、发布并托管到 Cloudflare 平台。
将 Figma 设计稿高保真转换为可直接落地的前端界面代码
将 Figma 设计组件与代码组件建立映射,便于设计与实现保持一致。
通过 AI 读写并自动修改 Figma 设计稿
连接 Figma 设计稿,提取变量、截图并辅助转换为开发代码
将 Figma 设计系统接入 AI,用于提取、生成与调试设计资源
通过自然语言在 Figma 中完成界面生成、审查、修复与设计规范同步。