figma-bridge
Skill1 starsChanged 8 months agoMITView on GitHub
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".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- H-ymt/skillstheir own version, first seen Nov 1, 2026
- MaxsBond/figma-bridgetheir own version, first seen Oct 20, 2026
- vladmdgolam/agent-skillstheir own version, first seen Oct 14, 2026
- bienhoang/wp-pro-maxtheir own version, first seen Oct 11, 2026
- jlefort/figma-bridgetheir own version, first seen Sep 4, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- vladmdgolam/agent-skills★ 9same name
- bienhoang/wp-pro-max★ 4same name
- H-ymt/skills★ 0same name
- jlefort/figma-bridge★ 0same name
- MaxsBond/figma-bridge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- deploy-kitSkill
- job-hunterSkill
- meeting-notesSkill
- project-kickstartSkill
- slide-deckSkill
- smart-cost-trackerSkill
- social-posterSkill
- supabaseSkill
- translateSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
If the token is missing, prompt the user to set the environment variable
- Distinctive: line 43
All calls use the Figma REST API:
- Distinctive: line 154
NEVER modify the Figma file — read-only operations only
- Distinctive: line 156
If the token is invalid or expired, guide the user to generate a new one
- Distinctive: line 158
When exporting, default to 2x scale for retina
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
- Go to figma.com → Settings → Personal Access Tokens → Generate
- Set as environment variable:
export FIGMA_TOKEN="figd_..."
Credential Handling
- Token is read from the
FIGMA_TOKENenvironment 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:
curl -s "https://api.figma.com/v1/[endpoint]" \
-H "X-Figma-Token: [TOKEN]"Get file structure
curl -s "https://api.figma.com/v1/files/[FILE_KEY]" \
-H "X-Figma-Token: [TOKEN]"Get specific node
curl -s "https://api.figma.com/v1/files/[FILE_KEY]/nodes?ids=[NODE_ID]" \
-H "X-Figma-Token: [TOKEN]"Export assets
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:
: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-arrow.svg (0.8 KB)
icon-check.svg (0.6 KB)
avatar-placeholder.png (12 KB)"Figma to Tailwind from [URL]"
Convert Figma styles to tailwind.config.js:
module.exports = {
theme: {
extend: {
colors: {
primary: '#ff6b2b',
secondary: '#22d3ee',
background: '#0b1120',
},
fontFamily: {
heading: ['Inter', 'sans-serif'],
mono: ['IBM Plex Mono', 'monospace'],
},
},
},
};URL Parsing
Figma URLs follow this pattern:
https://www.figma.com/design/[FILE_KEY]/[FILE_NAME]?node-id=[NODE_ID]
Extract FILE_KEY and optionally NODE_ID from any Figma URL the user provides.
Rules
- NEVER modify the Figma file — read-only operations only
- Token comes from environment variable FIGMA_TOKEN, never stored to disk
- If the token is invalid or expired, guide the user to generate a new one
- Present design tokens in both CSS custom properties AND JSON formats
- When exporting, default to 2x scale for retina
- Parse Figma's color format (RGBA 0-1) to hex: multiply by 255, convert
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

