bitovi/ai-enablement-prompts/figma-explore
Claude Code and agent skill by bitovi/ai-enablement-prompts
- community
Checking that the SKILL.md file is still in the repository.
Explore a Figma file to discover all pages, components, and component sets using the Figma REST API. Use when you need to list components in a Figma file, find component node IDs for Code Connect, or understand the structure of a design file.
Install
npx vskill@latest install bitovi/ai-enablement-prompts/figma-exploreSKILL.md
Skill: Explore Figma Files
This skill provides scripts to explore Figma files via the REST API, bypassing the limitations of the MCP tools which require a specific node ID.
When to Use This Skill
- User provides a Figma file URL without a specific node ID
- Need to discover all components in a Figma design system
- Want to find component node IDs for Code Connect setup
- Need to understand the page/component structure of a Figma file
Prerequisites
- FIGMA_ACCESS_TOKEN: Set in
.envor environment
- Get from: https://www.figma.com/developers/api#access-tokens
- Required scope:
file_content:read
- Node.js: Version 18+ (for native fetch)
The Script: figma-extract-all.js
A single script that handles both discovery and full extraction with batched API requests.
Usage:
Options:
| Option | Description | Default | |
|---|---|---|---|
--list-only | Quick discovery only (1 API call) | Full extraction | |
--output <dir> | Output directory for JSON files | .temp/figma-explore | |
--batch-size <n> | Components per batch request | 30 | |
--delay <ms> | Delay between batches (rate limiting) | 1000 |
Quick Discovery (1 API call)
Outputs JSON with component names, IDs, and URLs to stdout.
Full Extraction (batched)
Writes to .temp/figma-explore/:
figma-components-index.json- Summary index<component>.json- Full evidence per component
API Call Efficiency
| Mode | 45 Components | API Calls | |
|---|---|---|---|
--list-only | 1 call | ✅ Instant | |
| Full extraction | 1 + ⌈45/30⌉ = 3 calls | ✅ Batched |
Execution Steps
Step 1: Verify Environment
Before running the script, ensure the token is available:
If not set:
- Create token at https://www.figma.com/developers/api#access-tokens
- Add to
.env:FIGMA_ACCESS_TOKEN=figd_...
Step 2: Run Extraction
Quick discovery:
Full extraction:
Step 3: Use Results
Index file (.temp/figma-explore/figma-components-index.json):
Component evidence (.temp/figma-explore/button.json):
Step 4: Generate Code Connect
Use the evidence files with:
- The
figma-connect-componentskill - Direct Code Connect generation
- Manual
.figma.tsxfile creation
Figma REST API Reference
The scripts use these endpoints:
| Endpoint | Purpose | |
|---|---|---|
GET /v1/files/:file_key | Get entire file structure | |
GET /v1/files/:file_key/nodes?ids=:node_ids | Get specific node details | |
GET /v1/files/:file_key/components | List published components |
Troubleshooting
401/403 Errors
- Token is invalid or expired
- Token doesn't have
file_content:readscope - Regenerate at https://www.figma.com/developers/api#access-tokens
404 Errors
- File key is incorrect
- You don't have access to the file
- File has been deleted or moved
Network Errors
- Check internet connection
- Corporate proxy may need HTTP_PROXY/HTTPS_PROXY set
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfigma/figma-explore/SKILL.md
Popularity
- Repository stars
- 112
- Repository forks
- 61
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bitovi/ai-enablement-prompts/figma-explore)