figma-component-properties
Installation
SKILL.md
figma-component-properties — define a component's API + instantiate it
Two related jobs:
- Author the component's property API — add/edit/delete
TEXT,BOOLEAN,INSTANCE_SWAP, andVARIANTproperties so the component exposes the right knobs (the Figma equivalent of a React component's props). - Use the component — create an instance and set its properties (label text, boolean toggles, variant selection, swapped sub-instances).
Skill boundaries
use_figmarules — load the officialfigma-useskill first; it is the full Figma Plugin API reference. Essentials these scripts rely on: plain JS with top-levelawait+return(no IIFE, nofigma.closePlugin();console.logis not returned), inputs inlined asconstat 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).- Reading a component's existing property definitions / state machine →
use
figma-analyze-component-setorfigma-deep-component. - These are design-system authoring writes the native MCP's
get_design_context/get_metadata(read-only) do not cover.