id: "figma-generate-library"
kind: "skill"
name: "figma-generate-library"
title: "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."
category: "design"
source:
  repository: "figma/mcp-server-guide"
  path: "skills/figma-generate-library/SKILL.md"
  commit: "43a06ff1738935ad5c3d9b0437b5373aaf45cdc3"
  url: "https://github.com/figma/mcp-server-guide/tree/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library"
license:
  spdx: "NONE"
  redistributable: false
stars: 2218
updated_at: "2026-11-18T09:00:36Z"
score: 0.8808
rank: 40
files_count: 16
bytes: 223048
has_scripts: true
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:56:51Z"
  model: "claude-sonnet-5-5"
  score: 0.8808
  signals:
    tier: 1.0
    rubric: 0.91
    judge: 0.9067
    smoke: "not_run"
    popularity: 0.5269
  rubric:
    score: 0.91
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 0.1
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 4
    instructions: 5
    safety: 4
    injection: 5
    references: 5
    overall: 9
    verdict: "feature"
    rationale: "The description is specific about when to use it and how it pairs with figma-use. The scope contract separates token-only, single-component, full-library and reconciliation work, so the agent doesn't over-build. The instructions are concrete: variable scopes, var() code syntax, aliasing, idempotency, a state ledger, and helper scripts. The safety rules ban destructive cleanup by fuzzy lookup and parallel mutations. I saw no injection. The listed references and scripts all exist. The scope is broad but coherent."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: ["node"]
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
  - client: "chat-mcp"
    status: "no"
    reasons: ["runs-bundled-code"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 24944
    sha256: "65ee2aa9fd565b47bf627b773986f3c121616825d01c9ded78ea314532f5d10c"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/SKILL.md"
  - path: "references/code-connect-setup.md"
    bytes: 13334
    sha256: "878ebecb9f274e172835951b8ffec4dccd51914f09dc95c4f8d16cf925973648"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/code-connect-setup.md"
  - path: "references/component-creation.md"
    bytes: 38754
    sha256: "dbb955c20d4d041832369c0e086ef31352f9b46c92d12ea2a449695a83166ba9"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/component-creation.md"
  - path: "references/discovery-phase.md"
    bytes: 21839
    sha256: "61dc150ac47ea4d227eb78d3e8720e21d51f18bc060c7af3c2f2baeceb8c3e0e"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/discovery-phase.md"
  - path: "references/documentation-creation.md"
    bytes: 29037
    sha256: "16559b87b5922d249611087e3063f0e64c7b593e34d353f63979630f0bb5c932"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/documentation-creation.md"
  - path: "references/error-recovery.md"
    bytes: 16250
    sha256: "d78ff587d288391ad0811024f9ea0db25bc411c5ba83a0a8cea3ba65f423abfc"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/error-recovery.md"
  - path: "references/naming-conventions.md"
    bytes: 18994
    sha256: "eae21ca0c6b8d2fa2452d359f3b76a1112cf081cf0096cc29e48fbd60c860369"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/naming-conventions.md"
  - path: "references/token-creation.md"
    bytes: 32717
    sha256: "15b3d4c84d2c677ff6a340e232b8142b7553962ccaf9664226b4b2e64d7118f4"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/references/token-creation.md"
  - path: "scripts/bindVariablesToComponent.js"
    bytes: 4026
    sha256: "f6492ad075b38bab0ae9a7a0dfb60c58e23a4258f67261f1b166098df58f115c"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/bindVariablesToComponent.js"
  - path: "scripts/cleanupOrphans.js"
    bytes: 2204
    sha256: "525583dc4a560cfd7f725685140210e649dd1c73c7fd076a5ce03fe9e17fddaa"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/cleanupOrphans.js"
  - path: "scripts/createComponentWithVariants.js"
    bytes: 4679
    sha256: "3a97251335e4bb5dd833acdd86c1a158d1e4ad2b6780587f1bc453d88aa53d31"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/createComponentWithVariants.js"
  - path: "scripts/createDocumentationPage.js"
    bytes: 4738
    sha256: "28cb9b86c2c26ed91b3fdb688d18e07928c7abc073e1b72dd6c0f0995225381d"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/createDocumentationPage.js"
  - path: "scripts/createSemanticTokens.js"
    bytes: 3688
    sha256: "e390eb77e996cddcf62fb889eb146cb37f83407c4c83659297d4d1a34c26020f"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/createSemanticTokens.js"
  - path: "scripts/createVariableCollection.js"
    bytes: 1408
    sha256: "7fed413cd2d09acdb80e9a92e20a9afd581aeba4d4754d605862926df8b146d0"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/createVariableCollection.js"
  - path: "scripts/inspectFileStructure.js"
    bytes: 3718
    sha256: "d4c73a074cfef2bfe6dc31998b3e9fb4861bfd4e0ae61bcda6165ab05c9f3118"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/inspectFileStructure.js"
  - path: "scripts/validateCreation.js"
    bytes: 2718
    sha256: "dae970b4d80c4d0994f14c89ad01c04115604444b916a0b8fc342ed262fdfa97"
    url: "https://raw.githubusercontent.com/figma/mcp-server-guide/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills/figma-generate-library/scripts/validateCreation.js"
alternates:
  - name: "figma-generate-library"
    repository: "figma/mcp-server-guide"
    path: "skills-figquery/figma-generate-library/SKILL.md"
    commit: "43a06ff1738935ad5c3d9b0437b5373aaf45cdc3"
    url: "https://github.com/figma/mcp-server-guide/tree/43a06ff1738935ad5c3d9b0437b5373aaf45cdc3/skills-figquery/figma-generate-library"
    license: "NONE"
    stars: 2218
    score: 0.8724
    similarity: 1.0
    reason: "same cluster"
  - name: "figma-generate-library"
    repository: "openai/skills"
    path: "skills/.curated/figma-generate-library/SKILL.md"
    commit: "49f948faa9258a0c61caceaf225e179651397431"
    url: "https://github.com/openai/skills/tree/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/figma-generate-library"
    license: "LicenseRef-see-file"
    stars: 28845
    score: 0.8431
    similarity: 1.0
    reason: "same name"
  - name: "figma-generate-library"
    repository: "openai/plugins"
    path: "plugins/figma/skills/figma-generate-library/SKILL.md"
    commit: "981b02c0c44058b595f3b4180002c3ae3c806d40"
    url: "https://github.com/openai/plugins/tree/981b02c0c44058b595f3b4180002c3ae3c806d40/plugins/figma/skills/figma-generate-library"
    license: "NONE"
    stars: 8039
    score: 0.632
    similarity: 1.0
    reason: "same name"
  - name: "figma-generate-library"
    repository: "ChatAndBuild/chatchat-skills"
    path: "skills/figma-generate-library/SKILL.md"
    commit: "52985ad3a503d0dd6bf3696833be0e86eea232d6"
    url: "https://github.com/ChatAndBuild/chatchat-skills/tree/52985ad3a503d0dd6bf3696833be0e86eea232d6/skills/figma-generate-library"
    license: "LicenseRef-see-file"
    stars: 460
    score: 0.5536
    similarity: 1.0
    reason: "identical content"
icon: "https://versatile.sh/avatars/figma.png"
