figma
与 Figma REST API 交互以读取文件、将图层/组件导出为图像以及检索注释。当用户需要 Figma 设计的信息或想要导出资源进行开发时使用。触发器包括“读取figma文件”、“导出figma层”或“检查figma注释”。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~kai-tw-kai-tw-figmacURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~kai-tw-kai-tw-figma/file -o kai-tw-kai-tw-figma.md## 概述(中文) 与 Figma REST API 交互以读取文件、将图层/组件导出为图像以及检索注释。当用户需要 Figma 设计的信息或想要导出资源进行开发时使用。触发器包括“读取figma文件”、“导出figma层”或“检查figma注释”。 ## 原文 # Figma Skill This skill allows the agent to interact with Figma files via the REST API. ## Setup Requires a Figma Personal Access Token (PAT). Environment Variable: `FIGMA_TOKEN` ## Procedures ### 1. Read File Structure To understand the contents of a Figma file (pages, frames, layers): `python scripts/figma_tool.py get-file <file_key>` ### 2. Export Images To export specific layers/components as images: `python scripts/figma_tool.py export <file_key> --ids <id1>,<id2> --format <png|jpg|svg|pdf> --scale <1|2|3|4>` ### 3. Check Comments To list recent comments on a file: `python scripts/figma_tool.py get-comments <file_key>` ## References - [Figma API Documentation](https://www.figma.com/developers/api)