This handles the full design-to-code pipeline with Figma's API. You get functions that pull component data from Figma files, extract design tokens like colors and spacing, and generate actual React or Tailwind code from the node tree. The code generation is genuinely useful because it maps Figma's auto layout properties directly to flexbox and handles things like corner radius, padding, and fill colors. Best for building design system tooling or automating repetitive component scaffolding. The image export endpoints are solid for pulling icons and illustrations into your build pipeline. Works well when you have structured Figma files and need to keep code in sync with design updates.

skills.sh installs
450
GitHub stars
296
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
Frontend Development, Backend & APIs, AI & Agent Building, Automation & Workflows, Design & UI/UX
First seen
Jun 3, 2026

More from hoodini/ai-agents-skills

All 37
1mblode avatardefine-architecturemblode/agent-skillsGenerates folder structures, module contracts, middleware pipelines, and frontend/backend boundaries for TypeScript full-stack applications, and finds domain-in448skills.sh installs
2mohtashammurshid avatargetdesignmohtashammurshid/getdesignTurn any public URL into a production-grade 9-section design.md spec (colors, typography, components, layout, depth, motion, responsive, prompt guide) using the448skills.sh installs
3davila7 avatard3-vizdavila7/claude-code-templatesCreating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations445skills.sh installs
4dhruvanbhalara avatarflutter-uidhruvanbhalara/skillsBuild performant, accessible UIs with strict design tokens and reusable widget patterns. Use when implementing layouts, responsive breakpoints, theming, widget 435skills.sh installs
5jezweb avataricon-designjezweb/claude-skillsSelect semantically appropriate icons for websites using Lucide, Heroicons, or Phosphor. Covers concept-to-icon mapping, React/HTML templates, and tree-shaking 428skills.sh installs
6inertia-rails avatarinertia-rails-setupinertia-rails/skillsOne-time project initializer for Inertia Rails skills. Detects stack and frontend framework (React/Vue/Svelte) from Gemfile and package.json, offers to install 424skills.sh installs