Skill / SKILL.md

Figma Analyze Component Set

southleft/figma-console-mcp-skills

Analyze a Figma COMPONENT_SET as a state machine for code generation — extract variant axes (state/size/etc.), map state variants to CSS pseudo-classes (hover→:hover, focus→:focus-visible, disabled→:disabled, error→[aria-invalid]), and compute per-variant visual diffs (only what changes per state). Use when generating an interactive component from a Figma variant set — triggers: 'analyze this component set', 'turn these variants into CSS states', 'generate a button/input/checkbox from Figma variants', 'what changes between the hover and default state', 'map Figma variants to component props', 'extract the state machine for this component'. Resolves bound variables to token names. NOT covered by the native MCP's get_design_context/get_metadata, which don't give you a variant-axis→CSS-state machine.
2 views 102 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Analyze a Figma COMPONENT_SET as a state machine for code generation — extract variant axes (state/size/etc.), map state variants to CSS pseudo-classes (hover→:hover, focus→:focus-visible, disabled→:disabled, error→[aria-invalid]), and compute per-variant visual diffs (only what changes per state). Use when generating an interactive component from a Figma variant set — triggers: 'analyze this component set', 'turn these variants into CSS states', 'generate a button/input/checkbox from Figma variants', 'what changes between the hover and default state', 'map Figma variants to component props', 'extract the state machine for this component'. Resolves bound variables to token names. NOT covered by the native MCP's get_design_context/get_metadata, which don't give you a variant-axis→CSS-state machine.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/southleft/figma-console-mcp-skills' skill-source

Use the complete skill-source/skills/figma-analyze-component-set directory with your client’s skill installer.

  • skills/figma-analyze-component-set

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/figma-analyze-component-set

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
11bc8f8da4f21fa01e3c059526811383cc7ba756c7301dd178660dc2485d1d02
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills