Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add southleft/figma-console-mcp-skills --skill figma-analyze-component-setgit clone --depth 1 https://github.com/southleft/figma-console-mcp-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/southleft/figma-console-mcp-skills/figma-analyze-component-set)<a href="https://agentmods.dev/skills/southleft/figma-console-mcp-skills/figma-analyze-component-set"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp-skills/figma-analyze-component-set/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/southleft/figma-console-mcp-skills/figma-analyze-component-set"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp-skills/figma-analyze-component-set.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00179 | $0.01230 |
| Opus 5 | $0.00089 | $0.00615 |
| Sonnet 5 | $0.00036 | $0.00246 |
| Haiku 4.5 | $0.00018 | $0.00123 |
Grade A, and why
figma-analyze-component-set scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
figma-analyze-component-set — variant state machine → CSS
Take a Figma COMPONENT_SET (the purple dashed container holding all the variants of one
component) and turn it into a code-generation blueprint: which property axes are state vs size,
how each state maps to a CSS pseudo-class or ARIA attribute, and the minimal visual delta each state
applies on top of the default variant. This is the bridge between "Figma has 12 button variants" and
"emit one .btn rule + :hover/:disabled overrides."
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).- Full recursive tree (unlimited depth, reactions, instance refs) → use
figma-deep-component. - Reorganizing variants into a labeled grid → use
figma-arrange-component-set. - Adding/removing the properties themselves → use
figma-component-properties. - This is a design-system code-gen capability that the native MCP's
get_design_context/get_metadatado not provide — they return raw structure, not a variant→CSS state machine.
Workflow
- Get the COMPONENT_SET id. From the user's selection (
figma_get_selection), a search, or a node id they paste. It must be the set, not an individual variant — the script validates type. - Run
scripts/analyze-component-set.jsviause_figma(skillNames: "figma-analyze-component-set"). Setconst COMPONENT_SET_IDat the top first. - Read the result. It returns
variantAxes(each axis + its options),componentProps(non-variant TEXT/BOOLEAN/INSTANCE_SWAP props → code props), astateMachinewithcssMapping(state name → CSS selector) anddefaultSignature, and per-variantdiffFromDefault. - Generate code. Implement the default variant from
defaultSignature, then add one rule percssMappingentry applying only that variant'sdiffFromDefault. MapcomponentPropsto framework props:BOOLEAN→boolean,TEXT→string,INSTANCE_SWAP→ReactNode/slot,VARIANT→union. - Validate. Cross-check that every state in
stateMachine.statesgot a CSS rule, and that token names in the diff (e.g.Color/Brand/Primary) resolve to your exported tokens.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 65 lines · 179 tokens per session scan A 75a7c9b319aa
figma-analyze-component-set is a skill published in the GitHub repository southleft/figma-console-mcp-skills (80 stars, last pushed 25d ago), licensed MIT. It adds 179 tokens to every session and 1,230 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
design-to-code
Use this skill when translating UI/UX designs into production-ready frontend code. Handles design source ingestion (Figma, Sketch, Adobe XD, screenshots, design specs), design token extraction, component hierarchy mapping, responsive breakpoint strategy, accessibility-first implementation (WCAG 2.1 AA minimum)…
design-tokens
Sets up, validates, resolves, and exports design tokens per the DTCG (Design Tokens Community Group) Format Module 2025.10 standard, and owns all colour contrast measurement and remediation — every text/background pair on both APCA Lc and the WCAG ratio via tokens contrast, with a fix that moves OKLCH lightness only.…
better-design
Build, improve, and review production interfaces with the Better Design MCP. Use for frontend design, UI, UX, interactions, flows, forms, navigation, components, styling, design systems, accessibility, responsive layouts, motion, React Native, Expo, Shopify, Three.js, and product video work, especially when creating…
design-to-code-check
Check alignment between a specific design specification and its code implementation — a focused, single-component or single-screen comparison. Trigger when someone says: does this match the design, check implementation, design code alignment, what's different between the design and the build, spec check…
prototype
Make an idea lookable and clickable at the cheapest fidelity that answers its one open question — an ASCII sketch, an SVG click-dummy with hotspots linking screens, or a self-contained HTML file. Use when the user wants to see or try an idea before committing to structure, tokens, or copy. Triggers on prototype…
layout-rules
A battle-tested avoid-list of 39 structural and interaction defect classes for tool/dashboard UIs (structure, footers/metrics, tables, color/contrast, URL state, JS traps, accessibility/touch, i18n/theming, de-slop), distilled from a real build/audit cycle. Use when designing, building, or reviewing any layout…