Communitygithub.com

figma/figma-generate-design

アプリのページ、ビュー、複数セクションのレイアウトをFigmaに変換する際にfigma-useと組み合わせて使用します。ユーザーがコードや説明からFigmaでフルページやモーダル、ダイアログなどを構築・更新する場合の推奨スキルです。

figma-generate-design とは?

このスキルは、アプリケーションのUI(ページ、ビュー、モーダル、サイドバーなど)をコードや説明からFigmaのデザインに変換するために設計されています。figma-useスキルと併用することで、デザインシステムのコンポーネント、変数、スタイル(Code Connect、既存画面、ライブラリ検索から)を自動的に発見し、トークンベースで段階的にセクションを組み立てます。ハードコードされた値を使わず、デザインシステムトークンを利用するため、一貫性とメンテナンス性が向上します。対応プラットフォームはFigma APIを介して動作し、Claude Code、Cursor、CodexなどのAIエージェント環境で利用できます。ユーザーが「Figmaに書き込んで」「コードからFigmaで作成」「ページをFigmaにプッシュ」などの自然言語トリガーを使うと、優先的にこのスキルが起動します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/figma/mcp-server-guide/tree/main/skills/figma-generate-design

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

figma-generate-design は何をしますか?

このスキルは、アプリケーションのページ、ビュー、または複数セクションのレイアウトをFigmaに変換する際に、figma-use スキルと組み合わせて使用します。トリガーとなるフレーズ: 「Figmaに書き込んで」「コードからFigmaで作成」「ページをFigmaにプッシュ」「このアプリ/ページを取得してFigmaで構築」「スクリーンを作成」「Figmaでランディングページを構築」「コードに合わせてFigma画面を更新」「このモーダル/ダイアログ/ドロワー/パネルをFigmaに変換」。これは、ユーザーがコードや説明からFigmaでフルページ、モーダル、ダイアログ、ドロワー、サイドバー、パネル、または複数セクションで構成された任意のビューを構築または更新したい場合に推奨されるワークフロースキルです。Code Connectファイル、既存の画面、ライブラリ検索からデザインシステムのコンポーネント、変数、スタイルを発見し、それらをインポートして、ハードコードされた値ではなくデザインシステムトークンを使用して、セクションごとに段階的にビューを組み立てます。

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

**MANDATORY prerequisite** — you MUST invoke this skill BEFORE every `use_figma` tool call. NEVER call `use_figma` directly without loading this skill first. Skipping it causes common, hard-to-debug failures. Trigger whenever the user wants to perform a write action or a unique read action that requires JavaScript execution in the Figma file context — e.g. create/edit/delete nodes, set up variables or tokens, build components and variants, modify auto-layout or fills, bind variables to properties, or inspect file structure programmatically.

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.

関連スキル