All skills
figma avatar

/figma-create-new-file

@38308b7 official
by figmafigma/mcp-server-guide2k stars
194

Always use this skill when the user wants to create a new Figma Design, FigJam, or Slides file. You MUST invoke this skill BEFORE every `create_new_file` tool call.

Use this Skill: https://skilld.dev/gh/figma/mcp-server-guide/figma-create-new-file

This session only. Nothing lands on disk.

SKILL.md

≈47 tokens always: the name and description. ≈298 when used: this 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 plan and product

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.
  • Multiple plans: show the available plans, ask the user to select one and then use that plan's key.

Infer the product (Design, FigJam, or Slides) from the task. If unclear, ask the user to specify.

Step 2: Call create_new_file

  • Call the create_new_file tool with the planKey and product from Step 1.
    • Use a concise name for the new file if the user doesn't provide one.
  • 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.

Source: SKILL.md on GitHub

No alerts5d4 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides standard procedural instructions for an AI agent to create new Figma, FigJam, or Slides files using integrated tools. No security risks were detected.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 38308b7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 2 weeks ago
disable-model-invocation
false

README badge

README badge for figma/mcp-server-guide/figma-create-new-file

This skill prepares an agent to create new Figma files (design, FigJam, or Slides) by resolving the team/plan context and encoding the `create_new_file` tool contract. It must be loaded before any `create_new_file` call and handles planKey resolution via `whoami` if needed, then returns the file key and URL for downstream tools like `use_figma`.

Generated from the current SKILL.md.

Do I need to load this skill before calling create_new_file?
Yes. This is mandatory. You must load this skill before every create_new_file tool call.
What editor types are supported?
Three types: design (default), figjam, and slides.
What happens if I don't provide a planKey?
The skill calls whoami to retrieve available plans. If there is one plan, it uses that automatically. If multiple plans exist, it asks you to choose which team or organization to create the file in.
Where is the new file created?
The file is created in the drafts folder for the selected plan.
What should I know about newly created Slides files?
New slides files start empty with zero slides. If your follow-up use_figma script expects at least one slide, call createSlide() first or guard for the empty case.

Generated from the current SKILL.md. These answers refresh after source changes.