Agent skill · practicalswan
figma-generate-library
Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, create individual components with proper variant sets and variable bindings, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. Also use when the user asks to create or generate any component in Figma — even a single one — since components require proper variable foundations, variant states, and design token bindings to be production-quality. This skill teaches WHAT to build and in WHAT ORDER — it complements the `figma-use` skill which teaches HOW to call the Plugin API. Both skills should be loaded together.
What it needs
About 12k tokens when loaded.
What this skill does
Design System Builder — Figma MCP Skill Build professional-grade design systems in Figma that match code. This skill orchestrates multi-phase workflows across 20–100+ usefigma calls, enforcing quality patterns from real-world design systems (Material 3, Polaris, Figma UI3, Simple DS). Prerequisites: The figma-use skill MUST also be loaded for every usefigma call. It provides Plugin API syntax rules (return pattern, page reset, ID return, font loading, color range). This skill provides design system domain knowledge and workflow orchestration. Always include figma-generate-library in the comma-separated skillNames parameter when calling usefigma as part of this skill. If this skill was loaded via an MCP resource, you MUST prefix the name with resource: (e.g. resource:figma-generate-library). This is a logging parameter — it does not affect execution. --- 1. The One Rule That Matters Most For every phase, follow this communication contract. Before starting a phase: Post a user-facing checklist titled Phase N Checklist. Include every task/subtask that will be attempted in that phase. Include the phase exit criteria. Do not begin mutating work for the phase until this checklist has been posted. During execution: Before each major subsection, post a short update naming the exact section being worked on, using this format: Working on Phase N.X: <section name> Keep updates concise, but make the current work visible. When a subsection completes, mark it as completed in the running checklist if the interface supports checklist/status updates; otherwise mention completion in the next progress update. At the end of each phase: Post a Phase N Summary with: Completed tasks Created or changed Figma objects Validations performed Decisions or conflicts resolved Remaining risks or follow-ups Then show the required phase artifact for that phase and continue automatically. Stable Task IDs Use one task ID format everywhere: P{phase}.{step}. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills practicalswan/figma-generate-library