swap-instance-overrides
Installation
SKILL.md
Swap Component Instance and Override Strategy
Overview
Transfer content and property overrides from a source instance to one or more target instances in Figma, maintaining design consistency while reducing manual work.
Step-by-Step Process
1. Selection Analysis
- Use get_selection() to identify the parent component or selected instances
- For parent components, scan for instances with: scan_nodes_by_types(nodeId: "parent-id", types: ["INSTANCE"])
- Identify custom slots by name patterns (e.g. "Custom Slot*" or "Instance Slot")
- Determine which is the source instance (with content to copy) and which are targets
2. Inspect Source Instance
- Use get_node(nodeId: "source-instance-id") to examine the source instance structure
- Use get_nodes_info(nodeIds: [...]) to batch-inspect multiple instances
- Use scan_text_nodes(nodeId: "source-instance-id") to capture all text content