figma
由 maddiedreese 提供
Image & Video Generation简介
Professional Figma design analysis and asset export.
描述
该技能的功能
Read-only integration with the Figma REST API for design file analysis and asset export. Extracts components, styles, and design tokens, exports assets in PNG, SVG, PDF, and WEBP, and runs accessibility and consistency audits. Cannot modify files or create new designs.
Automates batch export and audit tasks that would otherwise require manual clicks in Figma or custom one-off API scripts.
何时使用
- Exporting all icons from a design system as SVG and PNG
- Auditing a UI file for WCAG AA color contrast compliance
- Generating CSS custom properties from Figma color and typography styles
- Packaging mobile assets at 1x, 2x, and 3x scales for iOS and Android handoff
- Identifying unused components and style inconsistencies across a component library
示例工作流
User asks: Check this Figma file for WCAG AA accessibility issues and generate a report
- 1
Authenticates with the Figma REST API using the configured access token
- 2
Fetches the full file structure including components, frames, and styles
- 3
Runs accessibility_checker.py against the file, checking contrast ratios, font sizes, and touch target dimensions
- 4
Compiles findings into an HTML report with element-level violations and recommendations
HTML accessibility report listing WCAG AA failures, affected elements, and suggested fixes
前置要求
- FIGMA_ACCESS_TOKEN environment variable
- Figma account with access to the target files
安装
clawhub install maddiedreese/figma运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。