Skip to content

Figma API client with TypeScript recipes that generate React and Tailwind code from design components.

CCM score
57 of 100
skills.sh installs
453
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Figma REST endpoints for files, nodes, components, component sets, team components, and image export
  • Includes helpers that extract file keys and node IDs from URLs, and convert Auto Layout into flexbox styles
  • Provides generators for React components, inline style objects, and Tailwind class strings from design nodes
  • Designed for developers automating design tokens, design-to-code output, or design system syncing with the FIGMA_TOKEN variable

Install

$ npx -y skills add hoodini/ai-agents-skills --skill figma -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Figma API Integration

Extract design data, generate code from components, and automate design workflows with Figma's API.

Quick Start

Authentication

const FIGMA_TOKEN = process.env.FIGMA_TOKEN;

const headers = {
  'X-Figma-Token': FIGMA_TOKEN
};

// Get file
const response = await fetch(
  `https://api.figma.com/v1/files/${FILE_KEY}`,
  { headers }
);

File Key & Node IDs

// Extract from Figma URL: figma.com/file/FILE_KEY/Name?node-id=NODE_ID
const figmaUrl = 'https://www.figma.com/file/abc123/MyDesign?node-id=1%3A2';
const fileKey = figmaUrl.match(/file\/([^/]+)/)?.[1];  // abc123
const nodeId = new URL(figmaUrl).searchParams.get('node-id');  // 1:2

Core API Endpoints

Get File

// Full file
GET https://api.figma.com/v1/files/:file_key

// Specific nodes (components)
GET https://api.figma.com/v1/files/:file_key/nodes?ids=1:2,1:3

// With geometry for SVG paths
GET https://api.figma.com/v1/files/:file_key?geometry=paths

// With plugin data
GET https://api.figma.com/v1/files/:file_key?plugin_data=shared

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
Design & UI/UX, Frontend & UI Code
First seen
Jun 3, 2026

More from hoodini/ai-agents-skills

All 35

Similar to Figma

More Design & UI/UX