Communitygithub.com

openai/figma

Nutze den Figma MCP-Server, um Designkontext, Screenshots, Variablen und Assets aus Figma abzurufen und Figma-Knoten in produktionsbereiten Code zu übersetzen. Wird aktiviert, wenn eine Aufgabe Figma-URLs, Node-IDs, Design-to-Code-Implementierung oder Figma MCP-Setup und Fehlerbehebung umfasst.

Was ist figma?

Dieses Skill verbindet KI-Agenten (wie Claude Code, Cursor, Codex) mit der Figma-Designplattform über den Model Context Protocol (MCP). Es ermöglicht das Abrufen von Design-Kontext, Screenshots, Variablen und Assets direkt aus Figma-Dateien sowie die Übersetzung von Figma-Knoten (z. B. Ebenen, Komponenten) in produktionsbereiten Frontend-Code. Es unterstützt Entwickler dabei, Design-to-Code-Workflows zu automatisieren und manuelle Übergaben zu vermeiden. Der Skill erkennt automatisch Figma-URLs und Node-IDs in Aufgaben und liefert relevante Designinformationen. Außerdem bietet er Anleitungen zur Einrichtung und Fehlerbehebung des Figma MCP-Servers, einschließlich Token-Management und Konfiguration.

Funktioniert mit~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/openai/skills/tree/main/skills/figma

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht figma?

Nutze den Figma MCP-Server, um Designkontext, Screenshots, Variablen und Assets aus Figma abzurufen und Figma-Knoten in produktionsbereiten Code zu übersetzen. Wird aktiviert, wenn eine Aufgabe Figma-URLs, Node-IDs, Design-to-Code-Implementierung oder Figma MCP-Setup und Fehlerbehebung umfasst.

Funktionen

  • Designkontext abrufen: Hole dir Textinhalte, Maße, Füllungen und andere Eigenschaften von Figma-Knoten.
  • Screenshots generieren: Erstelle visuelle Vorschauen von Frames oder Komponenten.
  • Variablen abrufen: Greife auf Figma-Variablen zu (z. B. Farben, Abstände, Typografie).
  • Assets exportieren: Exportiere SVGs, PNGs oder andere Formate aus ausgewählten Knoten.
  • Figma-Knoten in Code übersetzen: Konvertiere Designelemente in HTML, CSS, React oder andere Frameworks.

Voraussetzungen

  • Figma Personal Access Token: Muss als Umgebungsvariable FIGMA_ACCESS_TOKEN gesetzt sein.
  • Figma MCP-Server: Muss im Projekt installiert und konfiguriert sein (siehe Setup unten).

Setup

  1. Token erstellen: Gehe zu Figma Settings > Personal Access Tokens und erstelle ein neues Token.

  2. Token setzen: Füge in deiner .env-Datei oder Systemumgebung folgende Variable hinzu:

    FIGMA_ACCESS_TOKEN=figd_xxxxxxxxxxxxxxxxxxxx
    
  3. MCP-Server installieren: Führe in deinem Projekt aus:

    npm install -g @anthropic/firebase-mcp
    # oder für andere Setups siehe Dokumentation
    
  4. Konfiguration: Stelle sicher, dass der MCP-Server läuft und die Figma-Integration aktiviert ist.

Verwendung

Beispiel: Designkontext abrufen

Von einer Figma-URL den Textinhalt des Headers extrahieren.

Beispiel: Code generieren

Übersetze den Knoten mit der ID '123:456' in eine React-Komponente mit Tailwind CSS.

Beispiel: Asset exportieren

Exportiere das Symbol 'icon-search' als SVG.

Fehlerbehebung

  • Token-Fehler: Überprüfe, ob der Token korrekt gesetzt und nicht abgelaufen ist.
  • Knoten nicht gefunden: Stelle sicher, dass die Node-ID existiert und du Zugriff auf die Datei hast.
  • MCP-Verbindungsfehler: Prüfe, ob der MCP-Server läuft und die Umgebungsvariable korrekt ist.

Individual skills in this repo

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

openai/aspnet-core

Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.

openai/chatgpt-apps

Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.

openai/cli-creator

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

openai/cloudflare-deploy

Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.

openai/develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with render_game_to_text.

openai/doc

Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.

openai/figma-code-connect-components

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`.

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

openai/figma-create-new-file

Create a new blank Figma file. Use when the user wants to create a new Figma design or FigJam file, or when you need a new file before calling use_figma. Handles plan resolution via whoami if needed. Usage — /figma-create-new-file [editorType] [fileName] (e.g. /figma-create-new-file figjam My Whiteboard)

openai/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'. This is the preferred workflow skill whenever the user wants to build or update a full page, screen, or view in Figma from code or a description. Discovers design system components, variables, and styles via search_design_system, imports them, and assembles screens incrementally section-by-section using design system tokens instead of hardcoded values.

openai/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, 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.

openai/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`.

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

openai/frontend-skill

Use when the task asks for a visually strong landing page, website, app, prototype, demo, or game UI. This skill enforces restrained composition, image-led hierarchy, cohesive content structure, and tasteful motion while avoiding generic cards, weak branding, and UI clutter.

openai/gh-address-comments

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

openai/gh-fix-ci

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.

openai/hatch-pet

Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.

openai/imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

openai/jupyter-notebook

Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.

openai/linear

Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.

Verwandte Skills