ingest-figma
Installation
SKILL.md
Ingest Figma
Extract design system from a Figma file using the REST API. Falls back to SVG-import if no token available.
Preflight
Bash(test -n "$FIGMA_TOKEN" && echo has-token || echo no-token)— check env var- If
no-token:- Tell user: "No
FIGMA_TOKENfound. Two options: (a) Get a token at https://www.figma.com/developers/api#access-tokens andexport FIGMA_TOKEN=...in your shell, or (b) export the frame as SVG in Figma (Right-click frame → Copy as → Copy as SVG) and paste the file toartifacts/ingested/— I'll parse the SVG." - Stop; wait for user response.
- Tell user: "No
Parse URL
Figma URL format: https://www.figma.com/(file|design|proto)/<fileKey>/<name>?node-id=<nodeId>
Extract:
fileKey— alphanumeric after/file/or/design/nodeId— query paramnode-id(URL-decoded, often contains:)