Xpersona
F

Figma Bridge

CLAWHUB · Unverified

Extract design information from Figma files. Pull design tokens, component structure, colors, typography, spacing, and export assets. Use when the user asks... Skill: Figma Bridge Owner: vanthienha199 Summary: Extract design information from Figma files. Pull design tokens, component structure, colors, typography, spacing, and export assets. Use when the user asks... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-27T21:02:01.013Z | auto - Added explicit environment variable declaration (FIGMA_TOKEN) and description in the skill metadata. - No functional changes; docum

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179377b15wprtysjy1fk82p7x83pcgc:figma-bridge
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-vanthienha199-figma-bridge/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

16,166 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: figma-bridge
description: >
  Extract design information from Figma files. Pull design tokens, component
  structure, colors, typography, spacing, and export assets. Use when the user
  asks about their Figma designs, needs to extract design tokens, or wants to
  convert Figma designs to code. Triggers on: "figma", "design tokens",
  "get colors from figma", "component structure", "figma to code", "export from figma".
tags:
  - figma
  - design
  - ui
  - tokens
  - css
  - components
  - design-system
env:
  - name: FIGMA_TOKEN
    description: "Figma Personal Access Token (generate at figma.com → Settings → Personal Access Tokens)"
    required: true
---

# Figma Bridge

You extract design information from Figma and make it usable for development.

## Setup

This skill requires a Figma Personal Access Token provided via environment variable.

1. Go to figma.com → Settings → Personal Access Tokens → Generate
2. Set as environment variable: `export FIGMA_TOKEN="figd_..."`

## Credential Handling

- Token is read from the `FIGMA_TOKEN` environment variable at runtime
- This skill does NOT store tokens to disk
- This skill is read-only — it never modifies your Figma files
- If the token is missing, prompt the user to set the environment variable

## Figma API

All calls use the Figma REST API:
```bash
curl -s "https://api.figma.com/v1/[endpoint]" \
  -H "X-Figma-Token: [TOKEN]"
```

### Get file structure
```bash
curl -s "https://api.figma.com/v1/files/[FILE_KEY]" \
  -H "X-Figma-Token: [TOKEN]"
```

### Get specific node
```bash
curl -s "https://api.figma.com/v1/files/[FILE_KEY]/nodes?ids=[NODE_ID]" \
  -H "X-Figma-Token: [TOKEN]"
```

### Export assets
```bash
curl -s "https://api.figma.com/v1/images/[FILE_KEY]?ids=[NODE_IDS]&format=png&scale=2" \
  -H "X-Figma-Token: [TOKEN]"
```

## Commands

### "Get design tokens from [figma URL]"
Extract the file key from the URL, fetch styles, and output:
```css
:root {
  /* Colors */
  --color-primary: #ff6b2b;
  --color-secondary: #22d3ee;
  --color-background: #0b1120;
  --color-text: #e2e8f0;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;
  --font-size-h1: 2.5rem;
  --font-size-body: 1rem;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}
```

### "Show components in [figma URL]"
List all components with their properties:
```
## Components

### Button
- Variants: primary, secondary, ghost
- Sizes: sm, md, lg
- States: default, hover, disabled
- Properties: label (text), icon (instance), loading (boolean)

### Card
- Variants: default, elevated
- Properties: title (text), description (text), image (instance)
```

### "Export assets from [figma URL]"
Export selected frames/components as PNG/SVG:
```
Exported 5 assets to ./figma-exports/:
  logo.svg (2.4 KB)
  hero-image.png (145 KB)
  icon-arr

_meta.json

{
  "ownerId": "kn75dgmmyfxjsc9mg8nyvpwazs83p7pt",
  "slug": "figma-bridge",
  "version": "1.0.2",
  "publishedAt": 1774645321013
}

skill-card.md

## Description:

Extract design information from Figma files, including design tokens, component structure, colors, typography, spacing, and exportable assets for development workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[vanthienha199](https://clawhub.ai/user/vanthienha199)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to inspect Figma designs, extract reusable design tokens, summarize components, export assets, and translate Figma styles into implementation-ready CSS, JSON, or Tailwind configuration.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill requires a Figma Personal Access Token for read-only API access.

Mitigation: Use a token with the minimum Figma access needed, provide it through FIGMA_TOKEN only for this task, and rotate or revoke it if it is no longer needed.

Risk: Exported design assets may be saved locally under ./figma-exports/.

Mitigation: Review the export directory after use and remove sensitive or unnecessary design files from the local workspace.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/vanthienha199/skills/figma-bridge)
- [Figma REST API endpoint pattern](https://api.figma.com/v1/[endpoint])
- [Figma design URL pattern](https://www.figma.com/design/[FILE_KEY])

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown with CSS, JSON, JavaScript, and shell command code blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce local asset export paths under ./figma-exports/ when the user requests asset export.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Figma Bridge and adjacent AI workflows.