figma-known-pitfalls
Installation
SKILL.md
Figma Known Pitfalls
Overview
The ten most common mistakes when integrating with the Figma REST API and Plugin API, with correct alternatives for each.
Prerequisites
- Working Figma integration to audit
- Access to codebase
Instructions
Pitfall 1: Fetching Full File Trees
Problem: GET /v1/files/:key without depth returns the entire document tree. Large files can be 10-100 MB of JSON.
// BAD -- downloads entire file tree
const file = await figmaFetch(`/v1/files/${fileKey}`);