.claude/skills/figma/SKILL.md
Figma design-to-code workflow. Read Figma files, inspect components, extract design tokens, and translate designs to implementation. Use when working with Figma designs, extracting styles, or building design systems.
npx skillsauth add oimiragieo/agent-studio figmaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extract design information from Figma files for implementation. Covers design token extraction, component inspection, and design-to-code translation.
FIGMA_ACCESS_TOKEN env var)curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/files/FILE_KEY"
curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/files/FILE_KEY/nodes?ids=NODE_ID1,NODE_ID2"
curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/images/FILE_KEY?ids=NODE_ID&format=svg"
curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/files/FILE_KEY/styles"
curl -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/files/FILE_KEY/components"
# Get all published styles
curl -s -H "X-Figma-Token: $FIGMA_ACCESS_TOKEN" \
"https://api.figma.com/v1/files/FILE_KEY/styles" | jq '.meta.styles'
/* Colors */
:root {
--color-primary: #2563eb; /* From Figma: Primary/500 */
--color-secondary: #7c3aed; /* From Figma: Secondary/500 */
--color-surface: #ffffff; /* From Figma: Surface/Default */
}
/* Typography */
:root {
--font-heading: 'Inter', sans-serif;
--font-body: 'Inter', sans-serif;
--text-xl: 1.25rem; /* From Figma: Heading/XL */
--text-base: 1rem; /* From Figma: Body/Base */
--leading-tight: 1.25;
--leading-normal: 1.5;
}
/* Spacing */
:root {
--space-1: 0.25rem; /* 4px */
--space-2: 0.5rem; /* 8px */
--space-4: 1rem; /* 16px */
--space-8: 2rem; /* 32px */
}
| Figma Auto-Layout | CSS Equivalent |
| ----------------- | ---------------------------------------- |
| Horizontal | display: flex; flex-direction: row; |
| Vertical | display: flex; flex-direction: column; |
| Space between | justify-content: space-between; |
| Packed (start) | justify-content: flex-start; |
| Gap: 16 | gap: 1rem; |
| Padding: 16,24 | padding: 1rem 1.5rem; |
| Fill container | flex: 1; or width: 100%; |
| Hug contents | width: fit-content; |
For each Figma component, extract:
| Anti-Pattern | Why It Fails | Correct Approach | | --------------------------- | -------------------------------- | ---------------------------------------------- | | Hardcoded hex colors | Breaks on design system update | Use CSS variables mapped from Figma tokens | | Ignoring auto-layout | Layout doesn't match design | Map auto-layout 1:1 to flexbox/grid | | Pixel-perfect obsession | Wastes time, ignores responsive | Match design intent, not exact pixels | | Skipping component variants | Missing states (hover, disabled) | Extract ALL Figma variants | | Manual token extraction | Error-prone, doesn't scale | Use Figma REST API for programmatic extraction |
When the official Figma MCP server is running, these 12 tools are available:
| Tool | Purpose |
| ---------------------------- | -------------------------------------------------------------------- |
| get_design_context | Get full design context for a file/node (components, styles, layout) |
| generate_figma_design | Generate new designs from natural language description |
| get_variable_defs | Extract all design tokens (colors, spacing, typography variables) |
| get_screenshot | Capture rendered screenshot of a frame/component |
| code_connect_map | Map Figma components to their code counterparts |
| create_design_system_rules | Auto-generate design system documentation |
| get_figjam | Access FigJam board content and sticky notes |
| generate_diagram | Generate Figma diagram from Mermaid input |
| get_components | List all published components in a file |
| get_styles | Extract all defined styles (color, text, effect) |
| export_assets | Export assets as PNG/SVG/PDF with scale options |
| get_annotations | Retrieve design annotations and spec notes |
| get_metadata | Get XML layer representation of a file/node for programmatic parsing |
| whoami | Get current user identity, plan tier, and available seat count |
MCP Setup: Install Figma Desktop app -> Settings -> Enable MCP server
Auth: Uses active Figma session (no API key needed for local MCP)
Key workflow: get_design_context -> code_connect_map -> export_assets for design-to-code
Identity check: Use whoami to verify plan tier before calling enterprise-only tools
Before starting:
Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
tools
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
tools
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
data-ai
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
development
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.