What you need
- A Figma link to the component
- Figma MCP connected (Console MCP with Desktop Bridge, or native Figma MCP)
- Any additional context about properties, accepted values, or nested component configurations
How to use
Reference the skill and paste your Figma link. Include context about the component’s properties, accepted values, and sub-component configurations for a more accurate spec:- Cursor
- Claude Code
- Codex
What it generates
The agent inspects your component’s variant axes, boolean toggles, content slots, and variable modes, then renders a documentation frame in your Figma file:| Section | What it covers |
|---|---|
| Main property table | All top-level properties with values, required status, defaults, and notes |
| Sub-component tables | Separate tables for configurable nested elements (e.g., trailing content options) |
| Configuration examples | 1–4 examples showing common setups |
- Variant axes: properties visible in variant names (size, type, state)
- Instance properties: boolean toggles and content options only visible when inspecting a single instance
- Variable modes: properties controlled at the container level (shape, density)
Transient interactive states like hover and pressed are not included as API properties. Those are handled at runtime by the platform. Only persistent states like disabled, selected, and loading appear as properties.
How it works
The API skill is heavily AI-driven — the agent classifies properties, determines required vs. optional status, writes descriptions, and designs configuration examples, while deterministic scripts handle template rendering. 25% Deterministic 75% AI ReasoningExtract
The skill reads variant axes, boolean toggles, content slots, and variable modes from the component via the Figma MCP.
Classify properties
Each property is categorized as required or optional, and defaults are identified.
Discover sub-components
Nested component instances are resolved to find their own configurable properties.
Import template
The API documentation template is imported from the library, instantiated, and detached into an editable frame.
Render
The skill fills header fields, builds property tables, sub-component tables, and configuration examples.
Tips for better output
- Describe content slots with multiple options: if a slot can contain different content types (icon, avatar, image, none), list them explicitly. For example: “leading content can be an icon, avatar, or image”
- Note required vs. optional: mention which properties must always be set and which have defaults
- Mention sub-components: if your component has configurable nested elements (e.g., a trailing button inside a section heading), describe their configuration options
- Specify defaults: tell the agent which values are the default configuration
- Distinguish persistent from transient states: mention states like
disabled,selected, orloadingthat should become properties. Transient states like hover and pressed are handled at runtime and won’t appear in the API