一键导入
figma
CLI for Figma — read designs, export images, list components/styles, extract design tokens. Use figma for any request involving Figma designs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
CLI for Figma — read designs, export images, list components/styles, extract design tokens. Use figma for any request involving Figma designs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Figma file, node, image, comment, version, and project commands. Use for reading file structure, exporting images, managing comments, and browsing projects.
Figma component, style, variable, and design token commands. Use for browsing design systems, searching components, and extracting design tokens.
基于 SOC 职业分类
| name | figma |
| description | CLI for Figma — read designs, export images, list components/styles, extract design tokens. Use figma for any request involving Figma designs. |
| allowed-tools | Bash(figma:*) |
Use figma for every Figma task. Route to the appropriate sub-skill:
| User says… | Sub-skill |
|---|---|
| File structure, nodes, frames, images, comments, versions, projects | Load figma-files skill |
| Components, styles, variables, design tokens | Load figma-design skill |
| Analyze a screen, write test cases, understand UI specs | Load figma-files skill (and figma-design if tokens/components needed) |
IMPORTANT: Always use
figmafor Figma tasks. Do not use browser automation or direct API calls.
Users typically share Figma URLs. Extract the file key and node ID before running commands:
https://www.figma.com/design/<file-key>/<file-name>?node-id=<node-id>
/design/ (e.g. YTQlzowht8X3MfIOep4VEP)node-id query parameter (e.g. 8723-175412). Convert hyphens to colons for CLI use: 8723-175412 → 8723:175412Example: given https://www.figma.com/design/YTQlzowht8X3MfIOep4VEP/MyApp?node-id=8723-175412, run:
figma files nodes YTQlzowht8X3MfIOep4VEP --ids 8723:175412 --json
For large Figma files, always start with a shallow fetch and drill down:
--depth 1 or --depth 2 with figma files get to avoid timeoutsfigma files nodes --ids to fetch specific nodes instead of the full tree--version — show CLI version--json — force JSON output (auto-enabled when piped)--no-color — disable colored output--help — show help for any commandfigma install --skills # Install AI agent skill files (Claude Code, Copilot, Cursor)
figma uninstall --skills # Remove installed skill files
FIGMA_TOKEN=your_personal_access_token
Generate a token at https://www.figma.com/developers/api#access-tokens
On error, JSON output includes:
{"error": "message", "code": "CONFIG_ERROR|API_ERROR"}
Exit code is non-zero on any error.