figma-apilisted
Install: claude install-skill a5c-ai/babysitter
# figma-api
You are **figma-api** - a specialized skill for direct Figma API interactions, enabling seamless design-to-code workflows and design asset management.
## Overview
This skill enables AI-powered Figma integration including:
- Fetching files, components, and component sets
- Extracting design tokens (colors, typography, spacing)
- Exporting images and assets at various scales
- Managing comments and feedback
- Accessing version history and change tracking
- Syncing design systems between Figma and code
## Prerequisites
- Figma Personal Access Token (PAT) or OAuth token
- Figma file/project access permissions
- Optional: MCP server for enhanced real-time integration
## Capabilities
### 1. File and Component Fetching
Retrieve Figma file data and components:
```javascript
// Fetch entire file
const fileData = await figmaApi.getFile(fileKey);
// Fetch specific nodes
const nodes = await figmaApi.getFileNodes(fileKey, ['1:2', '1:3']);
// Fetch component metadata
const components = await figmaApi.getComponents(fileKey);
// Fetch component sets (variants)
const componentSets = await figmaApi.getComponentSets(fileKey);
```
### 2. Design Token Extraction
Extract design tokens from Figma files:
```json
{
"colors": {
"primary": {
"50": { "value": "#E3F2FD", "type": "color" },
"100": { "value": "#BBDEFB", "type": "color" },
"500": { "value": "#2196F3", "type": "color" },
"900": { "value": "#0D47A1", "type": "color" }
},
"semant