Skip to content
Back to skills

Figma

ASecurity

Figma manager: inspect designs, export assets, extract styles/components via MCP or REST API.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
developmentjavascriptgojavabashnodeapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill figma --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Figma?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Figma
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-figma/badge)](https://www.skillsdirectory.com/skills/sebastianluser-figma)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: figma
description: "Figma manager: inspect designs, export assets, extract styles/components via MCP or REST API."
category: "design"
argument-hint: "[inspect|export|tokens] [node-id or url]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Edit
---
# Figma Manager

Integrates with Figma via the native MCP or the REST API.

## Via MCP

Tools: `mcp__figma__authenticate`, `mcp__figma__complete_authentication`
Once authenticated, the MCP exposes operations. Check `mcp__figma__*` in context.

## Via REST API

```bash
curl "https://api.figma.com/v1/files/$FILE_KEY" \
  -H "X-Figma-Token: $FIGMA_TOKEN"
```

Get FILE_KEY from the URL: `https://www.figma.com/file/<FILE_KEY>/name?node-id=123-456`
Node IDs in the URL use `-`; in the API use `:` (e.g.: `123:456`).

## Key Operations

### Full file tree
```bash
GET /v1/files/$FILE_KEY
```
Returns the full structure (can be huge).

### Specific nodes
```bash
GET /v1/files/$FILE_KEY/nodes?ids=123:456,789:012
```
Much more efficient than the whole file.

### Export images
```bash
GET /v1/files/$FILE_KEY/images?ids=123:456&format=svg&scale=1
```
Formats: `png`, `jpg`, `svg`, `pdf`
Scale: 1-4 (for PNG)

The response has temporary URLs (they expire in ~1h). Download immediately.

### Global styles
```bash
GET /v1/files/$FILE_KEY/styles
```
Colors, text styles, effects, grids published in the file.

### Published components
```bash
GET /v1/files/$FILE_KEY/components
GET /v1/files/$FILE_KEY/component_sets
```

### Variables (design tokens)
```bash
GET /v1/files/$FILE_KEY/variables/local
```
Figma Variables = native design tokens (primitives, aliases, modes).

## Commands

### Inspect frame
```
/figma inspect <figma_url>
```

Flow:
1. Parse URL → file_key + node_id
2. GET nodes → structure
3. Extract:
   - Dimensions (w × h)
   - Position (x, y)
   - Fills, strokes, effects
   - Text properties (font, size, weight, color, alignment)
   - Auto-layout rules
   - Children hierarchy
4. Structured output

### Export assets
```
/figma export <figma_url> [--format svg|png] [--scale 2]
```

For bulk (every frame with the "icon/" prefix):
1. Find nodes matching the pattern
2. Bulk export
3. Download to `assets/icons/`
4. Name them kebab-case from the node name

### Extract tokens
```
/figma tokens <figma_url> [--output css|tailwind|json]
```

See `/figma-tokens` for full detail.

### Component spec
```
/figma component <figma_url>
```

Generates a full component spec:
- Variants (property variants)
- States (default, hover, active, disabled)
- Tokens used
- Anatomy with measurements
- Suggested props/API

## Rules

- **Rate limit**: 2 req/s per token (strict)
- **Response size**: large files can return 30MB+ of JSON — use selective `/nodes?ids=`
- **Exported URLs expire**: download immediately after the GET
- **Plugin API vs REST API**: REST is read-only. Plugins (JavaScript in Figma) can modify.
- **Tokens vs Styles**: if the file uses Figma Variables, use those. If not, fall back to Styles.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.