figma-mcp-pro
>+
Works with
---
name: figma-mcp-pro
description: >+
license: MIT
---
# Figma to Code (professional)
Use official [Figma API](https://www.figma.com/developers/api) and [MCP Figma Server](https://github.com/anthropics/mcp-server-figma) for protocol truth; this skill encodes **design-to-code workflows**, **token extraction**, **component mapping**, and **responsive strategy** — assuming Figma file access via MCP.
## Boundary
**`figma-mcp-pro`** owns **Figma design files → code implementation**, **design tokens extraction**, and **component system mapping**. **`design-system-pro`** owns **code-side design system architecture** (Tailwind, CSS variables). **`frontend-design-pro`** owns **UI/UX design principles**. **`shadcn-mastery-pro`** owns **shadcn/ui component library**.
## When to use
- Implementing Figma designs in code (sections or full pages)
- Extracting design tokens (colors, typography, spacing) from Figma
- Mapping Figma components to code component library
- Building screens from mockups with responsive behavior
- Auditing implemented UI against design specs
- Converting design systems to code
## When not to use
- No Figma file access available
- Conceptual designs without specifications
- Rushed prototyping without design review
- Pure design/UX consultation — **`design-system-pro`**
## Required inputs
- **Figma file URL or ID** (file access required)
- **Node ID** (specific frame/component) or full-page scope
- **Design system** (existing component library, or new)
- **Target framework** (React, Vue, HTML/CSS)
## Expected output
- **Implementation plan** — section-by-section breakdown with Figma node references
- **Component mapping** — Figma components → code components with props
- **Token extraction** — colors, typography, spacing, shadows as variables
- **Generated code** — framework-specific implementation with responsive behavior
- **Verification checklist** — pixel-perfect, responsive, accessible
## Workflow
Apply **Karpathy principles** throughout.
1. **Confirm** Figma context → verify: [file access, node ID, design system].
2. **State assumptions** about responsive behavior, component availability, tech stack.
3. **Apply** section-by-section approach; full page only when justified.
4. **Make surgical changes** — one section at a time, verify, continue.
5. **Define success criteria** (pixel-perfect, responsive, maintainable); verify.
6. **Respond** with implementation plan, component mapping, generated code.
### Operating principles
1. **Think Before Coding** — State assumptions: responsive strategy, component reuse, tech constraints.
2. **Simplicity First** — One section at a time; full page only when justified.
3. **Surgical Changes** — Section-by-section implementation, verify each.
4. **Goal-Driven Execution** — Pixel-perfect, responsive, maintainable; verify with design.
### Figma-to-Code Workflow
**Phase 1: Discovery**
```
1. Access Figma file via MCP
2. Identify design system components
3. Extract design tokens (colors, typography, spacing)
4. Map Figma components to code components
5. Understand responsive breakpoints
```
**Phase 2: Planning**
```
1. Break screen into sections
2. Prioritize sections (hero → content → footer)
3. Identify reusable patterns
4. Plan component hierarchy
5. Define responsive strategy
```
**Phase 3: Implementation**
```
1. Build section-by-section
2. Verify each section against Figma
3. Implement responsive behavior
4. Add interactions and states
5. Accessibility audit
```
**Phase 4: Verification**
```
1. Visual regression against Figma
2. Responsive testing
3. Accessibility check
4. Performance audit
5. Design review
```
### MCP Server Integration
**Capabilities:**
- `get_file` — Access Figma file structure
- `get_node` — Extract specific component/frame
- `get_component_set` — Access design system components
- `get_variables` — Extract design tokens
- `search_design_system` — Find existing components
**Token extraction:**
```javascript
// Colors
const colors = {
primary: '#3b82f6',
secondary: '#64748b',
background: '#ffffff',
text: '#0f172a',
}
// Typography
const typography = {
heading: {
fontFamily: 'Inter',
fontSize: '24px',
fontWeight: 600,
lineHeight: 1.2,
},
body: {
fontFamily: 'Inter',
fontSize: '16px',
fontWeight: 400,
lineHeight: 1.5,
},
}
// Spacing
const spacing = {
xs: '4px',
sm: '8px',
md: '16px',
lg: '24px',
xl: '32px',
}
```
### Component Mapping
**Strategy:**
```
Figma Component → Code Component
├── Button/Primary → <Button variant="primary">
├── Card/Default → <Card>
├── Input/Text → <Input type="text">
└── Icon/Arrow → <Icon name="arrow-right">
```
**Reuse over rebuild:**
- Check existing design system first
- Map to closest available component
- Customize via props, not new components
- Document mapping decisions
## Suggested response format
```markdown
## Figma Implementation: [Screen Name]
### Source
**Figma File:** [URL]
**Frame:** [Node ID]
**Last Modified:** [Date]
### Design System Analysis
**Components Found:**
- Button/Primary → maps to <Button>
- Card/Default → maps to <Card>
- Input/Text → maps to <Input>
**Tokens Extracted:**
- Colors: 12 semantic tokens
- Typography: 6 text styles
- Spacing: 8 spacing values
### Implementation Plan
#### Section 1: Hero
**Figma Node:** #123:456
**Components:** Heading, CTA Button, Image
**Responsive:** Stack on mobile
#### Section 2: Features
**Figma Node:** #789:012
**Components:** 3x Cards, Icons
**Responsive:** 3-col → 1-col
### Generated Code
#### Section 1: Hero
```tsx
// Code implementation
```
### Verification Checklist
- [ ] Pixel-perfect match
- [ ] Responsive behavior
- [ ] All states implemented
- [ ] Accessibility compliant
```
## Quick example
### Example 1: Landing Page from Figma
**User:** "Implement this landing page from Figma"
**Agent workflow:**
1. **Confirm:** Figma URL, node access, React project
2. **State assumptions:** Responsive breakpoints, component library available
3. **Apply:** Section-by-section (hero first)
4. **Surgical:** Hero section only, verify, then continue
5. **Goal:** Pixel-perfect, responsive, uses design system
**Output:**
- Design tokens extracted
- Component mappings documented
- Hero section code
- Plan for remaining sections
### Example 2: Design System Audit
**User:** "Map our Figma design system to code components"
**Agent workflow:**
1. **Confirm:** Figma component library access
2. **State assumptions:** Existing code component library
3. **Apply:** Map Figma variants to code props
4. **Surgical:** One component at a time
5. **Goal:** Complete mapping, documentation
**Output:**
```markdown
| Figma Component | Code Component | Props Mapping |
|-----------------|--------------|---------------|
| Button/Primary | Button | variant="primary" |
| Button/Secondary| Button | variant="secondary" |
| Card/Default | Card | — |
| Input/Text | Input | type="text" |
```
### Example 3: Token Extraction
**User:** "Extract all design tokens from this Figma file"
**Agent:** Extract and organize:
- Primitive tokens (colors, spacing)
- Semantic tokens (primary, background)
- Component tokens (button-padding, card-radius)
- Typography scale
- Elevation/shadows
## Resources in this skill
| Topic | File |
|-------|------|
| MCP Integration | [references/mcp-integration.md](references/mcp-integration.md) |
| Token Extraction | [references/token-extraction.md](references/token-extraction.md) |
| Component Mapping | [references/component-mapping.md](references/component-mapping.md) |
| Responsive Strategy | [references/responsive-strategy.md](references/responsive-strategy.md) |
| Verification Checklist | [references/verification.md](references/verification.md) |
## Checklist before calling the skill done
### Pre-implementation
- [ ] Figma file access confirmed
- [ ] Node IDs identified
- [ ] Design system components catalogued
- [ ] Responsive strategy defined
### Implementation
- [ ] **Karpathy Principles Verification:**
- [ ] Assumptions stated (responsive, components, tech)
- [ ] Section-by-section approach (full page only when justified)
- [ ] Surgical changes (one section, verify, continue)
- [ ] Success criteria defined (pixel-perfect, responsive)
- [ ] Design tokens extracted
- [ ] Components mapped to code
- [ ] Section implemented
- [ ] Responsive behavior added
### Verification
- [ ] Pixel-perfect match with Figma
- [ ] All breakpoints tested
- [ ] Interactions/states implemented
- [ ] Accessibility audit passed
- [ ] Performance acceptable
- [ ] Design review completed
### Documentation
- [ ] Component mapping documented
- [ ] Token structure explained
- [ ] Responsive behavior noted
- [ ] Known deviations listedMore Design Systems skills
stitch-design-taste
leonxlnx/taste-skill
Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.
figma
heygen-com/hyperframes
Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.
image
coreyhaines31/marketingskills
When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets. Also use when the user mentions 'AI image generation,' 'generate an image,' 'create a graphic,' 'product mockup,' 'hero image,' 'social media graphic,' 'banner image,' 'cover photo,' 'profile banner,' 'listing screenshot,' 'Flux,' 'Flux Kontext,' 'Midjourney,' 'DALL-E,' 'GPT Image,' 'ChatGPT Images,' 'Ideogram,' 'Gemini image,' 'Nano Banana,' 'Recraft,' 'Stable Diffusion,' 'Canva,' 'Figma,' 'image optimization,' 'compress images,' 'WebP,' or 'OG image.' Use this for general-purpose marketing image creation and optimization. For paid ad image creative and platform-specific ad specs, see ad-creative. For video production, see video.

