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.

Больше skills от 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-to-code. Требуется подключение к серверу 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`.