figma-create-new-file

作成者: Figma

新しい空のFigmaファイルを作成します。ユーザーが新しいFigmaデザインやFigJamファイルを作成したい場合、またはuse_figmaを呼び出す前に新しいファイルが必要な場合に使用します。必要に応じてwhoami経由でプラン解決を処理します。使用法 — /figma-create-new-file [editorType] [fileName](例:/figma-create-new-file figjam My Whiteboard)

npx skills add https://github.com/figma/mcp-server-guide --skill figma-create-new-file

Create a new file in Figma

Steps to create a new Figma Design, FigJam, or Slides file using the create_new_file MCP tool.

Step 1: Resolve the planKey and editorType

Use the planKey the user provided or selected for this task. Otherwise, call whoami and inspect the returned plans.

  • No plans: inform the user that file creation cannot proceed.
  • One plan: use its key as planKey.
  • Multiple plans: show the available plans, ask the user to select one and then use that plan's key as planKey.

Infer editorType from the requested file type by choosing from the tool's advertised input enum. If unclear, ask the user to specify the file type.

Step 2: Call create_new_file

Call the create_new_file tool with all three required arguments:

  • fileName: Required. Choose a concise name if the user does not provide one.
  • planKey: Required. Use the planKey resolved in Step 1.
  • editorType: Required. Use the editorType selected in Step 1.
  • projectId: Optional. Set it to create the file in a specific project.
{
  "fileName": "Quarterly planning",
  "planKey": "team::1234567890",
  "editorType": "design"
}
  • Use the file_key from the create_new_file tool response for subsequent tool calls like use_figma.

Step 3: (Slides only) Handle the empty grid

A new Slides file contains no slides: figma.getSlideGrid() returns []. Before reading properties such as theme tokens from a slide, call figma.createSlide() or handle the empty case. The first createSlide() call automatically creates row 0 and inserts the slide.

Figmaのその他のスキル

figma-generate-design
Figma
このスキルをfigma-useと併用してください。タスクがアプリケーションページ、ビュー、または複数セクションのレイアウトをFigmaに変換する場合に使用します。トリガー: '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'。これは、ユーザーがコードや説明からFigmaでフルページ、画面、またはビューを構築または更新したい場合に推奨されるワークフロースキルです。search_design_systemを介してデザインシステムのコンポーネント、変数、スタイルを検出し、それらをインポートし、ハードコードされた値ではなくデザインシステムトークンを使用して、セクションごとに段
figma-generate-library
Figma
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, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. 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-implement-design
Figma
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-use
Figma
**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-create-design-system-rules
Figma
ユーザーのコードベース用にカスタムデザインシステムルールを生成します。「デザインシステムルールを作成」「プロジェクトのルールを生成」「デザインルールを設定」「デザインシステムガイドラインをカスタマイズ」とユーザーが言った場合や、Figmaからコードへのワークフロー向けにプロジェクト固有の規約を確立したい場合に使用します。Figma MCPサーバー接続が必要です。
figma-code-connect-components
Figma
Connects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map this component", "link component to code", "create code connect mapping", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.