AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Component Properties Figma

skill-southleft-skills-for-figma-component-properties-figma · by southleft

Add, edit, and delete Figma component properties (TEXT, BOOLEAN, INSTANCE_SWAP, VARIANT) on a COMPONENT or COMPONENT_SET, and instantiate a component then set its instance properties. Use when authoring or wiring up a component's API in Figma — triggers: 'add a component property', 'add a boolean prop to this component', 'make this text a component property', 'add an instance-swap slot', 'create…

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-southleft-skills-for-figma-component-properties-figma

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-southleft-skills-for-figma-component-properties-figma)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Component Properties Figma? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

component-properties-figma — define a component's API + instantiate it

Two related jobs:

  1. Author the component's property API — add/edit/delete TEXT, BOOLEAN, INSTANCE_SWAP, and

VARIANT properties so the component exposes the right knobs (the Figma equivalent of a React component's props).

  1. Use the component — create an instance and set its properties (label text, boolean toggles,

variant selection, swapped sub-instances).

Skill boundaries

  • 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).
  • Reading a component's existing property definitions / state machine

use analyze-component-set-figma or deep-component-figma.

  • These are design-system authoring writes the native MCP's get_design_context /

get_metadata (read-only) do not cover.

Property types

| Type | What it controls | defaultValue | Notes | | --- | --- | --- | --- | | TEXT | A text-layer string override | "Label" | Bind in UI to a text node's characters | | BOOLEAN | Show/hide a layer | true/false | Bind to a layer's visibility | | INSTANCE_SWAP | Which sub-component fills a slot | a component key | Pass preferredValues to populate the picker | | VARIANT | A variant axis (Size, State…) | one option string | Only meaningful on a COMPONENT_SET |

Workflow — authoring properties

  1. Target the COMPONENT_SET (or standalone COMPONENT). You cannot add properties to an

individual variant — the script errors and tells you to use the parent set.

  1. Add with [scripts/add-property.js](scripts/add-property.js) (use_figma,

skillNames: "component-properties-figma"). Set NODE_ID, PROPERTY_NAME, PROPERTY_TYPE, DEFAULT_VALUE. addComponentProperty returns a name with a #id suffix — capture it.

  1. Edit / delete by reusing the same script's editComponentProperty(name, {...}) /

deleteComponentProperty(name) calls (commented variants are in the script). Use the suffixed name returned at creation for edits/deletes of non-variant props.

  1. Verify by re-reading node.componentPropertyDefinitions (the script returns it).

Workflow — instantiate + set instance properties

  1. Get a component identity. A published library componentKey (preferred) and/or a local

nodeId. Pass both when you have them — the script tries the library import first, then the local node.

  1. Run [scripts/instantiate-and-set.js](scripts/instantiate-and-set.js). Set COMPONENT_KEY /

COMPONENT_ID, optional VARIANT (e.g. { Size: "md", State: "default" }), OVERRIDES, POSITION, and PARENT_ID.

  1. Set properties on an existing instance with the same script's setProperties path — it loads

the main component, then matches plain names and Name#id-suffixed names automatically.

Notes

  • Instance property keys carry #nodeId suffixes for TEXT/BOOLEAN/INSTANCE_SWAP

("Label#12:3"); VARIANT props use the bare name. The instantiate script resolves both, so you can pass the human name (Label) and it finds the suffixed key.

  • Direct text editing of an instance's text layer fails silently — always go through

setProperties / instance properties, never set .characters on a nested instance text node.

  • componentKey only works for published components. For local/unpublished ones use nodeId.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.