Communitygithub.com

figma/figma-use

**強制必要前置技能** — 在每次呼叫 `use_figma` 工具之前,您必須先載入此技能。切勿在未載入此技能的情況下直接呼叫 `use_figma`。略過此步驟會導致常見且難以除錯的失敗。當使用者想要在 Figma 檔案環境中執行寫入動作或需要執行 JavaScript 的特定讀取動作時觸發。

figma-use 是什麼?

此技能是與 Figma 檔案互動並對其進行程式化變更的強制性前置步驟。在呼叫 `use_figma` 工具之前,必須先載入此技能,因為它會設定必要的 JavaScript 執行環境,以防止常見的、難以除錯的錯誤。此技能支援任何需要寫入操作(例如建立、編輯或刪除節點)、設定變數或權杖、建構元件和變體、修改自動佈局或填充、將變數繫結到屬性,或程式化檢查檔案結構的案件。它也涵蓋需要執行 JavaScript 來檢索獨特資訊的特定讀取操作。此技能是 Claude Code 等 AI 代理器的圖形設計工作流程的基礎,可確保所有 Figma 互動可靠且可預測。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/figma/mcp-server-guide/tree/main/skills/figma-use

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

figma-use 是做什麼的?

強制必要前置技能 — 在每次呼叫 use_figma 工具之前,您必須先載入此技能。切勿在未載入此技能的情況下直接呼叫 use_figma。略過此步驟會導致常見且難以除錯的失敗。當使用者想要在 Figma 檔案環境中執行寫入動作或需要執行 JavaScript 的特定讀取動作時觸發——例如建立/編輯/刪除節點、設定變數或權杖、建構元件和變體、修改自動佈局或填充、將變數繫結到屬性,或程式化檢查檔案結構。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

figma/code-connect-components

Connects Figma design components to code components using Code Connect. Use when user says "code connect", "connect this component to code", "connect Figma to code", "map this component", "link component to code", "create code connect mapping", "add code connect", "connect design to code", or wants to establish mappings between Figma designs and code implementations. Requires Figma MCP server connection.

figma/create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

figma/figma-code-connect

Creates and maintains Figma Code Connect template files that map Figma components to code snippets. Use when the user mentions Code Connect, Figma component mapping, design-to-code translation, or asks to create/update .figma.ts or .figma.js files.

figma/figma-create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

figma/figma-create-new-file

**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `create_new_file` tool call. NEVER call `create_new_file` directly without loading this skill first. Trigger whenever the user wants a new blank Figma file — a new design, FigJam, or Slides file — or when you need a fresh file before calling `use_figma`. Usage — /figma-create-new-file [editorType] [fileName] (e.g. /figma-create-new-file figjam My Whiteboard, /figma-create-new-file slides Q3 Review)

figma/figma-generate-design

Use this skill alongside figma-use when the task involves translating an application page, view, or multi-section layout into Figma. Triggers: 'write to Figma', 'create in Figma from code', 'push page to Figma', 'take this app/page and build it in Figma', 'create a screen', 'build a landing page in Figma', 'update the Figma screen to match code', 'convert this modal/dialog/drawer/panel to Figma'. This is the preferred workflow skill whenever the user wants to build or update a full page, modal, dialog, drawer, sidebar, panel, or any composed multi-section view in Figma from code or a description. Discovers design system components, variables, and styles from Code Connect files, existing screens, and library search, then imports them and assembles views incrementally section-by-section using design system tokens instead of hardcoded values.

figma/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.

figma/figma-implement-design

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.

figma/implement-design

Translates Figma designs into production-ready code with 1:1 visual fidelity. Use when implementing UI from Figma files, when user mentions "implement design", "generate code", "implement component", "build Figma design", provides Figma URLs, or asks to build components matching Figma specs. Requires Figma MCP server connection.

相關技能