Install
$ agentstack add skill-ikusmart-claude-figma-skills-figma-optimize ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Optimized Figma Fetch via Sub-Agents
Self-Documentation
When invoked WITHOUT a Figma URL or clear input:
- Display the Quick Help block below
- Ask what Figma data the user needs and provide the URL
When invoked WITH a Figma URL and clear intent — skip help and proceed to Step 1.
Quick Help
What I do: Fetch Figma design data without flooding your context window. Tools like get_design_context can return large responses for complex files. I delegate the fetch to a sub-agent that processes the data and returns only a compact summary.
Example prompts:
Fetch this large Figma file efficiently: [URL]Get design tokens from this file without using too many tokens: [URL]Optimize: list all screens in this Figma file: [URL]
Prerequisites:
- Figma MCP server configured (Official Remote or Desktop). Run
/figma-setupif not configured.
When to use this instead of /figma-inspect:
- The Figma file is very large (many pages/frames)
- You're making repeated fetches in one session
- Your context window is getting full
- You need only specific data (tokens, screen list, component inventory) not the full design
Step 1: Determine Fetch Pattern
Ask the user (or infer from context) what data they need:
Pattern 1: Simple fetch (metadata, screen lists, file overview)
- Best for: "What's in this file?", "List all screens", "Show page structure"
- Sub-agent uses
get_metadatafor lightweight XML structure
Pattern 2: Token extraction (colors, typography, spacing)
- Best for: "Extract color palette", "Get all typography styles", "List spacing tokens"
- Sub-agent uses
get_variable_defsfor design token data
Pattern 3: Component inventory (component list with variants)
- Best for: "List all components", "Component audit", "What's in this library?"
- Sub-agent uses
get_metadata+get_code_connect_mapto build inventory
Pattern 4: Specific node deep dive (detailed info on one frame)
- Best for: detailed analysis of a single frame/component before implementing
- Sub-agent uses
get_design_contextfor full node data
Read references/sub-agent-patterns.md for detailed prompt templates.
Step 2: Parse Figma URL
Extract fileKey and nodeId from the URL:
figma.com/design/:fileKey/:fileName?node-id=:nodeId— convert-to:in nodeIdfigma.com/design/:fileKey/branch/:branchKey/:fileName— use branchKey as fileKey
Step 3: Launch Sub-Agent
Use the Task tool to launch a sub-agent with subagent_type="general-purpose".
The sub-agent has access to the same MCP tools. Include in the prompt:
- The specific MCP tool to call and its parameters (fileKey, nodeId)
- What data to extract from the response
- Output format (markdown tables, structured lists)
- Token budget constraint ("Total output must be under N tokens")
See references/sub-agent-patterns.md for ready-to-use prompt templates.
Step 4: Process Results
The sub-agent returns a compact summary. Present it to the user.
If more detail is needed for specific nodes, launch another targeted sub-agent for just that node (Pattern 4).
Fallback: If the file turns out to be small and the sub-agent returns quickly, suggest using /figma-inspect directly next time for simpler files.
Step 5: Suggest Next Steps
Based on what was fetched, suggest:
/figma-implement [URL]— to implement a specific frame/figma-inspect [URL]— for detailed inspection of a specific node/figma-connect [URL]— to map components to code
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ikusmart
- Source: ikusmart/claude.figma.skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.