Extracts a single Figma component as a full recursive tree with resolved tokens, layout, typography, instance references, prototype reactions, and annotations for high-fidelity code generation.
Ships in figma-console-mcp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Walk one node (usually a COMPONENT / COMPONENT_SET / INSTANCE, but any node works) recursively
to a depth you choose, capturing at every level: layout (auto-layout, padding, spacing, sizing),
visual properties (fills, strokes, stroke weight, corner radius, effects, opacity), typography for
text nodes, boundVariables resolved to token names + code syntax, INSTANCE main-component
references (including whether the main is a variant and its set), prototype reactions, and dev-mode
annotations. This is the richest single-component read for high-fidelity code generation.
use_figma rules — load the official figma-use skill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-level await + return (no IIFE, no figma.closePlugin(); console.log is not returned), inputs inlined as const at the top of each script, colors in 0–1 range, load fonts before any text op, await figma.getNodeByIdAsync(...), and atomic errors (a failed script applies nothing — read the error, fix, retry).figma-design-system-inventory.figma-analyze-component-set.get_design_context (rendered single-selection summary) or get_metadata (flat structure)
return — it is a design-system code-gen capability layered on top.figma_get_selection), search, or a pasted id.const DEPTH (default 10). Deep design components rarely exceed ~6
levels; use a smaller number first to keep the payload manageable, then go deeper if needed.scripts/deep-component.js via use_figma
(skillNames: "figma-deep-component"). Set const NODE_ID and const DEPTH at the top.boundVariables
token names (and their codeSyntax) over raw hex; use mainComponent refs to reuse imported
components; use reactions to wire up interaction/navigation.DEPTH (nodes past the limit are summarized with a
childCount + _depthLimitReached marker) or target a smaller sub-node id.id, name, type, visible. Hidden non-component nodes are marked _hidden and
not recursed.layoutMode, axis sizing/align, padding*, itemSpacing, counterAxisSpacing,
layoutWrap, min/max width/height, clipsContent.fills, strokes, strokeWeight, cornerRadius, effects, opacity
(only when non-default; figma.mixed values are skipped safely).characters, fontSize, fontFamily/fontStyle, fontWeight,
lineHeight, letterSpacing, alignment, truncation, case, decoration.boundVariables resolved to { id, name, collection, resolvedType, codeSyntax } per
bound property.mainComponent (id, name, key, isVariant, set name/id) + componentProperties.componentPropertyDefinitions, variantProperties.reactions (trigger + action: navigation/transition/destination).annotations (label markdown + categorized properties).VariableID: aliases._variableMapSize and _maxDepthUsed for sanity-checking.affectedNodeIds: [NODE_ID] even though this is a read — keeps the convention uniform.What SKILL.md sets; muted values are Claude Code's defaults
23 skills in this plugin
/figjam-create-contentAuthor FigJam boards with granular control — sticky notes (single + batch), connectors between nodes, shapes-with-text, sections, tables, code blocks, and auto-arrange — plus read back board contents and the connection graph. Use when the user wants to build or edit a FigJam board element-by-element. Triggers: 'add stickies to FigJam', 'create a flowchart/diagram in FigJam', 'connect these nodes', 'make a section/table/code block in FigJam', 'auto-arrange the board', 'read what's on the FigJam board', 'map the connections'. More granular than the native generate_diagram (which produces a whole diagram in one shot). FigJam files only (figma.editorType === 'figjam'). Requires the Figma Desktop app (Plugin API)./figma-analyze-component-setAnalyze 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./figma-console-mcp-skills:figma-deep-componentfrom figma-console-mcp-skills
npx claudepluginhub southleft/figma-console-mcp-skills --plugin figma-console-mcp-skillsOther plugins' skills for the same job