figma-design-analyzer
Extract and analyze Figma designs to create structured design specifications. Use this skill when you need to analyze Figma nodes, extract design properties (layout, spacing, typography), classify components using Atomic Design principles, and generate design specification documents that can be used for implementation.
What this skill does
# Figma Design Analyzer
## Overview
Systematically analyze Figma designs and extract structured design specifications. This skill focuses on understanding design intent, extracting accurate properties, and creating comprehensive design specification documents that serve as blueprints for implementation.
**Use this skill when:**
- Analyzing Figma designs to understand structure and properties
- Extracting design tokens and component specifications
- Classifying components according to Atomic Design principles
- Creating design specification documents for developers
- Comparing existing implementations with Figma designs
## Core Workflow
### Step 1: Extract Figma Design Information
When given a Figma URL or node ID, use Figma MCP tools to extract design data:
1. **Parse the Figma URL to extract node ID:**
```
URL: https://figma.com/design/fileKey/fileName?node-id=1-2
Node ID: 1:2 (replace - with :)
```
2. **Extract node design context:**
```
mcp__figma-dev__get_design_context(
nodeId: "1:2",
dirForAssetWrites: "/absolute/path/to/project/public/assets",
clientLanguages: "typescript",
clientFrameworks: "react,nextjs"
)
```
This returns the design code, including HTML structure and CSS properties.
3. **Get component metadata for structure overview:**
```
mcp__figma-dev__get_metadata(
nodeId: "1:2",
clientLanguages: "typescript",
clientFrameworks: "react,nextjs"
)
```
Use this to understand the component hierarchy before detailed analysis.
4. **Check for Figma variables (design tokens):**
```
mcp__figma-dev__get_variable_defs(
nodeId: "1:2",
clientLanguages: "typescript",
clientFrameworks: "react,nextjs"
)
```
Extract design system tokens for colors, typography, spacing, etc.
5. **Verify Code Connect mappings:**
```
mcp__figma-dev__get_code_connect_map(
nodeId: "1:2",
clientLanguages: "typescript",
clientFrameworks: "react,nextjs"
)
```
Check if the component is already mapped to existing code.
### Step 2: Handle Component Instances and Variants
**Important:** When the node is a component instance:
1. **Identify if it's an instance:**
- Check metadata for "component instance" type
- Note the main component ID
2. **Get the main component:**
- Use `get_design_context` on the main component node
- Extract the base structure and properties
3. **Extract instance-specific properties:**
- Get the instance's specific size, device, and variant settings
- Note any overrides (text, images, colors, etc.)
4. **Handle variants:**
- If the main component uses variants, identify the variant mode
- Extract the correct variant values for the instance
- Document variant properties for props mapping
### Step 3: Classify the Component
Use Atomic Design principles to classify the component:
1. **Read the classification guide:**
```
Read references/atomic-design-classification.md
```
2. **Apply the decision tree:**
- **Atom**: Indivisible, single purpose (button, input, icon, text label)
- **Molecule**: 2-5 atoms, simple combination (search bar, form field)
- **Organism**: Complex, multiple molecules/atoms (header, card, form)
3. **Determine the component category:**
- Document: `atomicCategory: Atom | Molecule | Organism`
### Step 4: Analyze Layout and Spacing
Extract accurate layout information:
1. **Read layout analysis guide:**
```
Read references/layout-analysis-guide.md
```
2. **Determine layout method:**
- **Auto Layout** → Flexbox
- Check: direction (row/column), justify-content, align-items
- **Grid structure** → CSS Grid
- Check: grid-template-columns, grid-template-rows, gap
- **Overlapping elements** → Absolute positioning
- Check: position, top, left, z-index
3. **Extract spacing values:**
```
Read references/spacing-extraction-guide.md
```
- **Padding**: Internal spacing (px, py, pt, pr, pb, pl)
- **Gap**: Spacing between flex/grid items
- **Margin**: External spacing (rarely used, prefer gap)
4. **Map to Tailwind classes:**
- Use standard Tailwind scale when possible (p-4, gap-6, etc.)
- Use arbitrary values `[value]` for custom sizes (p-[18px])
5. **Document in specification:**
```markdown
## Layout
- Method: Flexbox
- Direction: row
- Justify: center
- Align: center
## Spacing
- Padding: px-6 py-3
- Gap: gap-2
- Border Radius: rounded-lg
```
### Step 5: Extract Typography
Extract accurate text styling:
1. **Read typography guide:**
```
Read references/typography-extraction-guide.md
```
2. **Extract font properties:**
- Font family (font-sans, font-serif, custom)
- Font size (text-sm, text-base, text-lg, etc.)
- Font weight (font-normal, font-semibold, font-bold)
- Line height (leading-tight, leading-normal, etc.)
- Letter spacing (tracking-tight, tracking-wide, etc.)
- Text color (text-gray-900, text-white, etc.)
- Text alignment (text-left, text-center, text-right)
- Text decoration (underline, line-through)
- Text transform (uppercase, lowercase, capitalize)
3. **Map to Tailwind classes:**
- Use standard Tailwind typography classes
- Check for design tokens in Figma variables
- Use arbitrary values for custom sizes
4. **Document in specification:**
```markdown
## Typography
- Font: text-base font-semibold
- Color: text-white
- Line Height: leading-normal
- Alignment: text-center
```
### Step 6: Choose Semantic HTML
Select appropriate HTML elements:
1. **Read semantic HTML guide:**
```
Read references/semantic-html-guide.md
```
2. **Apply semantic rules:**
- **Sections**: `<header>`, `<nav>`, `<main>`, `<aside>`, `<footer>`
- **Headings**: `<h1>` to `<h6>` (respect hierarchy)
- **Interactive**: `<button>` for actions, `<a>` for navigation
- **Content**: `<article>`, `<section>` for grouping
- **Forms**: `<form>`, `<input>`, `<label>`, `<select>`, `<textarea>`
- **Lists**: `<ul>`, `<ol>`, `<li>` for lists
- **Media**: `<img>`, `<video>`, `<audio>`, `<figure>`, `<figcaption>`
3. **Consider accessibility:**
- Add ARIA attributes when semantic HTML is insufficient
- Ensure keyboard accessibility
- Verify color contrast ratios
4. **Document in specification:**
```markdown
## Semantic HTML
- Root Element: button
- ARIA: role="button" aria-label="Submit"
```
### Step 7: Extract Colors and Visual Properties
Extract color and visual styling:
1. **Extract color properties:**
- Background color (bg-blue-500, bg-gradient-to-r, etc.)
- Text color (text-white, text-gray-900, etc.)
- Border color (border-gray-300, etc.)
2. **Extract visual properties:**
- Border radius (rounded, rounded-lg, rounded-full, etc.)
- Border width (border, border-2, etc.)
- Box shadow (shadow, shadow-md, shadow-lg, etc.)
- Opacity (opacity-50, opacity-100, etc.)
3. **Check Figma variables:**
- Look for design token mappings
- Use semantic color names when available
4. **Document in specification:**
```markdown
## Colors
- Background: bg-blue-500
- Hover: hover:bg-blue-600
- Text: text-white
- Border: border-transparent
## Visual Properties
- Border Radius: rounded-lg
- Shadow: shadow-md
```
### Step 8: Handle Responsive Designs
When multiple Figma nodes represent different device sizes:
1. **Extract all node IDs** from provided URLs
- Desktop node
- Tablet node
- Mobile node
2. **Analyze each node:**
- Layout changes (grid columns, flex direction)
- Spacing changes
- Typography changes (font size, line height)
- Hidden/shown elements
3. **Document responsive variations:**
```markdown
## Responsive Behavior
- Mobile (default): flex-col gap-4 text-sm
- Tablet (md): md:flex-row md:gap-6 md:text-base
- Desktop (lg): lg:gap-8 lg:text-lg
```
### Step 9: Generate DesRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.