figma-generate-library
Build or update a professional-grade design system in Figma from a codebase.
Skill by lightspeedwp
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lightspeedwp-figma-generate-library
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, design, frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
figma-generate-library- Description
- 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.
- License
- GPL-3.0
- Instructions
- 375 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (17)
- SKILL.md
- code-connect-setup.md · references/
- component-creation.md · references/
- discovery-phase.md · references/
- documentation-creation.md · references/
- error-recovery.md · references/
- naming-conventions.md · references/
- token-creation.md · references/
- bindVariablesToComponent.js · scripts/
- cleanupOrphans.js · scripts/
- createComponentWithVariants.js · scripts/
- createDocumentationPage.js · scripts/
- createSemanticTokens.js · scripts/
- createVariableCollection.js · scripts/
- inspectFileStructure.js · scripts/
- rehydrateState.js · scripts/
- validateCreation.js · scripts/
SKILL.md (first lines)
# 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+ `use_figma` 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 `use_figma` 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 `use_figma` 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.
- If the phase requires explicit approval, ask for approval after the checklist and wait.
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.
- Only ask for explicit approval after Phase 0 or if a genuine decision fork arises (see [Section 6](#6-decision-forks)). For Phases 1–4, the default is to continue automatically after the summary.
### Stable Task IDs
Use one task ID format everywhere: `P{phase}.{step}`.
Rules:
- Use lettered step IDs only: `P0.a`, `P0.b`, `P1.a`, `P3.d`.
- Do not use plain bullet points for task lists.
- Every phase checklist, progress update, validation note, and phase summary MUST reference the same task IDs
**No setup exception:** Creating a new Figma file, importing a library, creating pages, variables, collections, styles, or components all count as creation/mutation. Do not treat any of them as harmless setup.
**This is NEVER a one-shot task.** Building a design system requires 20–100+ `use_figma` calls across multiple phases, with mandatory progress between them. Any attempt to create everything in one call WILL produce broken, incomplete, or unrecoverable results. Break every operation to the smallest useful unit, validate, get feedback, proceed.
---
## 2. Mandatory Workflow
Work through the phases in order. Do not move to the next phase until the current phase's required actions and acceptance checks are complete. If a phase cannot pass, stop and report the blocker. Do not approximate, skip, or defer a failed phase unless the user explicitly approves the limitation. No best-effort substitutions. No quiet approximations. No handoff with missing source truth, missing visual truth, fake assets, approximate typography, broken interactions, or unverified states.
### Phase 0: DISCOVERY (always first — no `use_figma` writes yet)
- [ ] 0a. Analyze codebase → extract tokens, components, naming conventions
- [ ] 0b. Inspect Figma file → pages, variables, components, styles, existing conventions
- [ ] 0c. Search subscribed libraries → use `search_design_system` for reusable assets
- [ ] 0d. Lock v1 scope → exact token set + component list recorded before any creation
- [ ] 0e. Map code → Figma → every conflict (code disagrees with Figma) resolved and recorded
- [ ] 0f. Print a **gap analysis** to chat: what exists in code but not Figma, what exists in Figma but not code, and every conflict from 0e with its resolution
### Phase 1: FOUNDATIONS (tokens first — always before components)
- [ ] 1a. Create variable collections and modes
- [ ] 1b. Create primitive variables (raw values, 1 mode)
- [ ] 1c. Create semantic variables (aliased to primitives, mode-aware)
- [ ] 1d. Set scopes on ALL variables (never `ALL_SCOPES`)
- [ ] 1e. Set code syntax on ALL variables
- [ ] 1f. Create effect styles (shadows) and text styles (typography)
- [ ] 1g. Print a **variable summary** to chat: N collections, M variables, K modes, broken down by collection
- [ ] 1h. Print the **style list** to chat: every effect style and text style created, with names
- [ ] Exit criteria met: every token from the agreed plan exists, all scopes set, all code syntax set
### Phase 2: FILE STRUCTURE (before components)
- [ ] 2a. Create page skeleton: Cover → Getting Started → Foundations → --- → Components → --- → Utilities
- [ ] 2b. Create foundations documentation pages (color swatches, type specimens, spacing bars)
- [ ] 2c. Capture a `get_screenshot` of every foundations page and print the **page list** to chat alongside the screenshots
- [ ] Exit criteria met: all planned pages exist, foundations docs are navigable
### Phase 3: COMPONENTS (one at a time — never batch)
For EACH component (in dependency order: atoms before molecules), run the checklist below. Finish the current component before starting the next.
- [ ] 3a. Create dedicated page
- [ ] 3b. Build base component with auto-layout + full variable bindings
- [ ] 3c. Create all variant combinations (`combineAsVariants` + grid layout)
- [ ] 3d. Add component properties (TEXT, BOOLEAN, INSTANCE_SWAP)
- [ ] 3e. Link properties to child nodes
- [ ] 3f. Add page documentation (title, description, usage notes)
- [ ] 3g. Validate: `get_metadata` (structure) + `get_screenshot` (visual)
- [ ] 3h. Optional: lightweight Code Connect mapping while context is fresh
- [ ] Exit criteria met: variant count correct, all bindings verified, screenshot looks right
### Phase 4: INTEGRATION + QA (final pass)
- [ ] 4a. Finalize all Code Connect mappings
- [ ] 4b. Accessibility audit (contrast, min touch targets, focus visibility)
- [ ] 4c. Naming audit (no duplicates, no unnamed nodes, consistent casing)
- [ ] 4d. Unresolved bindings audit (no hardcoded fills/strokes remaining)
- [ ] 4e. Final review screenshots of every page
---
## 3. Critical Rules
**Plugin API basics** (from use_figma skill — enforced here too):
- Use `return` to send data back (auto-serialized). Do NOT wrap in IIFE or call closePlugin.
- Return ALL created/mutated node IDs in every return value
- Page context resets each call — always `await figma.setCurrentPageAsync(page)` at start. **Call it at most once per script**: each component or doc page is its own `use_figma` call. Never loop over `figma.root.children` and switch pages inside a mutating script — split that work into one focused call per target page (see [figma-use → gotchas.md → Set current page once per `use_figma` call](../figma-use/references/gotchas.md#set-current-page-once-per-use_figma-call--split-multi-page-work-across-calls))From lightspeedwp/.github, GPL-3.0.
More from lightspeedwp/.github
- 0.649score
google-drive
lightspeedwp
Use connected Google Drive as the single entrypoint for Drive, Docs, Sheets, and Slides work.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
lightspeed-ai-readiness-orchestrator
lightspeedwp
route lightspeed ai readiness client projects into the correct workflow, ask clarifying questions, enforce the sequence readiness, governance discovery…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
documents
lightspeedwp
Create, edit, redline, and comment on `.docx`, Word, and Google Docs-targeted document artifacts inside the container, with a strict render-and-verify workflow.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
google-docs
lightspeedwp
Connector-first Google Docs creation and editing in local Codex plugin sessions, with direct native create and batchUpdate workflows for simple docs…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
gmail
lightspeedwp
Manage Gmail inbox triage, mailbox search, thread summaries, action extraction, reply drafting, and email forwarding through connected Gmail data.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
google-sheets
lightspeedwp
Analyze and edit connected Google Sheets with range precision.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
content-collection-planner
lightspeedwp
create tailored content collection checklists, content gap reports, client request emails and downloadable folder structures for lightspeed website…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
ai-readiness-assessor
lightspeedwp
assess website ai readiness for lightspeed client projects using checklist answers, website urls, audit exports, discovery notes or uploaded evidence.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
gh-address-comments
lightspeedwp
Address actionable GitHub pull request review feedback.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
ai-chatbot-planner
lightspeedwp
plan bounded website chatbots for lightspeed client projects, including chatbot purpose, audience, approved sources, exclusion lists, behaviour rules…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
ai-governance-documentor
lightspeedwp
create ai governance discovery summaries, lightweight ai policies, operational governance guides, governance matrices, role maps and approved prompt templates…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
lightspeed-claim-register-auditor
lightspeedwp
validate proof, statistics, outcomes and marketing claims before publication for lightspeed wordpress, woocommerce, ai-readiness, publishing, tourism and…
SkillAFreshness: A★ 20Claude Code +9
Signals
- Stars
- 20
- Forks
- 3
- Open issues
- 1,176
- Last commit (this folder)
- Sep 27, 2026 (1 month ago)
- Last release
- Aug 18, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/lightspeedwp/.github
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.831score
figma-generate-library
figmaOfficial
Build or update a professional-grade design system in Figma from a codebase.
SkillAFreshness: A★ 2.1KClaude Code +9 - 0.434score
figma-generate-library
figmaOfficial
Build or update a professional-grade design system in Figma from a codebase.
SkillAFreshness: A★ 2.1KClaude Code +9 - 0.315score
figma-generate-library
Moliboy5000
Build or update a professional-grade design system in Figma from a codebase.
SkillBFreshness: BClaude Code +9 - 0.285score
figma-generate-library
Moliboy5000
Build or update a professional-grade design system in Figma from a codebase.
SkillCFreshness: CClaude Code +9 - 0.285score
figma-generate-library
TechsioCZ
Build or update a professional-grade design system in Figma from a codebase.
SkillCFreshness: CClaude Code +9 - 0.282score
figma-generate-library
uset82
Build or update a professional-grade design system in Figma from a codebase.
SkillCFreshness: CClaude Code +9
More from lightspeedwp
- 0.649score
ai-governance-documentor
lightspeedwp
create ai governance discovery summaries, lightweight ai policies, operational governance guides, governance matrices, role maps and approved prompt templates…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
ai-chatbot-planner
lightspeedwp
plan bounded website chatbots for lightspeed client projects, including chatbot purpose, audience, approved sources, exclusion lists, behaviour rules…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
content-collection-planner
lightspeedwp
create tailored content collection checklists, content gap reports, client request emails and downloadable folder structures for lightspeed website…
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
documents
lightspeedwp
Create, edit, redline, and comment on `.docx`, Word, and Google Docs-targeted document artifacts inside the container, with a strict render-and-verify workflow.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
ai-readiness-assessor
lightspeedwp
assess website ai readiness for lightspeed client projects using checklist answers, website urls, audit exports, discovery notes or uploaded evidence.
SkillAFreshness: A★ 20Claude Code +9 - 0.649score
gh-address-comments
lightspeedwp
Address actionable GitHub pull request review feedback.
SkillAFreshness: A★ 20Claude Code +9
Cite this page
figma-generate-library skill. Agent Mart. https://agentmart.dev/skills/lightspeedwp-figma-generate-library (last updated 2026-10-24)