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}`);
Installs
1
GitHub Stars
2.8K
First Seen
13 days ago
figma-known-pitfalls — jeremylongshore/tons-of-skills-marketplace