figma-use
Qué hace
Esta habilidad permite que un agente haga cambios en un archivo de Figma mediante la API de plugins de Figma. Es para diseñadores y desarrolladores que necesitan que el agente edite, organice o revise contenido de Figma.
Cuándo usarla
- ✓Cuando quieres que un agente cree, edite o elimine capas, marcos o componentes en Figma.
- ✓Cuando necesitas configurar variables, estilos o elementos de un sistema de diseño en un archivo de Figma.
- ✓Cuando quieres que un agente lea detalles de un archivo de Figma que requieren ejecutar código.
Link de la skill
https://github.com/openai/skills/blob/main/skills/.curated/figma-use/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Por favor, crea un marco en mi archivo de Figma y añade tres rectángulos de colores dentro de él.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente escribe código de plugin que sigue las reglas de la habilidad sobre valores devueltos, reinicios de página, carga de fuentes y colores, y luego lo ejecuta mediante la conexión con Figma.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
use_figma — Figma Plugin API Skill
Use use_figma MCP to execute JavaScript in Figma files via the Plugin API. All detailed reference docs live in references/.
Always pass skillNames: "figma-use" when calling use_figma. This is a logging parameter used to track skill usage — it does not affect execution.
If the task involves building or updating a full page, screen, or multi-section layout in Figma from code, also load figma-generate-design. It provides the workflow for discovering design system components via search_design_system, importing them, and assembling screens incrementally. Both skills work together: this one for the API rules, that one for the screen-building workflow.
Before anything, load plugin-api-standalone.index.md to understand what is possible. When you are asked to write plugin API code, use this context to grep plugin-api-standalone.d.ts for relevant types, methods, and properties. This is the definitive source of truth for the API surface. It is a large typings file, so do not load it all at once, grep for relevant sections as needed.
IMPORTANT: Whenever you work with design systems, start with working-with-design-systems/wwds.md to understand the key concepts, processes, and guidelines for working with design systems in Figma. Then load the more specific references for components, variables, text styles, and effect styles as needed.
1. Critical Rules
- Use
returnto send data back. The return value is JSON-serialized automatically (objects, arrays, strings, numbers). Do NOT callfigma.closePlugin()or wrap code in an async IIFE — this is handled for you. - Write plain JavaScript with top-level
awaitandreturn. Code is automatically wrapped in an async context. Do NOT wrap in(async () => { ... })(). figma.notify()throws "not implemented" — never use it 3a.getPluginData()/setPluginData()are not supported inuse_figma— do not use them. UsegetSharedPluginData()/setSharedPluginData()instead (these ARE supported), or track node IDs by returning them and passing them to subsequent calls.console.log()is NOT returned — usereturnfor output- Work incrementally in small steps. Break large operations into multiple
use_figmacalls. Validate after each step. This is the single most important practice for avoiding bugs. - Colors are 0–1 range (not 0–255):
{r: 1, g: 0, b: 0}= red - Fills/strokes are read-only arrays — clone, modify, reassign
- Font MUST be loaded before any text operation:
await figma.loadFontAsync({family, style}) - Pages load incrementally — use
await figma.setCurrentPageAsync(page)to switch pages and load their content (see Page Rules below) setBoundVariableForPaintreturns a NEW paint — must capture and reassigncreateVariableaccepts collection object or ID string (object preferred)layoutSizingHorizontal/Vertical = 'FILL'MUST be set AFTERparent.appendChild(child)— setting before append throws. Same applies to'HUG'on non-auto-layout nodes.- Position new top-level nodes away from (0,0). Nodes appended directly to the page default to (0,0). Scan
figma.currentPage.childrento find a clear position (e.g., to the right of the rightmost node). This only applies to page-level nodes — nodes nested inside other frames or auto-layout containers are positioned by their parent. See Gotchas. - On
use_figmaerror, STOP. Do NOT immediately retry. Failed scripts are atomic — if a script errors, it is not executed at all and no changes are made to the file. Read the error message carefully, fix the script, then retry. See Error Recovery. - MUST
returnALL created/mutated node IDs. Whenever a script creates new nodes or mutates existing ones on the canvas, collect every affected node ID and return them in a structured object (e.g.return { createdNodeIds: [...], mutatedNodeIds: [...] }). This is essential for subsequent calls to reference, validate, or clean up those nodes. - Always set
variable.scopesexplicitly when creating variables. The defaultALL_SCOPESpollutes every property picker — almost never what you want. Use specific scopes like `["FRAME_FILL"
Preguntas frecuentes
¿Hace falta esta habilidad antes de cada escritura en Figma?
Sí. La habilidad indica que debe cargarse antes de cada llamada a use_figma, porque contiene reglas que evitan fallos comunes.
¿Cómo encuentra el agente los métodos correctos de la API de plugins?
Usa archivos de referencia y tipados incluidos para buscar los métodos que necesita antes de escribir el código.
¿Cubre también los sistemas de diseño?
Sí. Para el trabajo con sistemas de diseño, remite a una guía aparte que debe leerse primero.
Detalles
Descripción original del autor
**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.
repo: openai/skills
Popularidad
- Estrellas en GitHub
- 28 mil
- Posición en el ranking
- #9854
- Licencia
- —
- Actualizada
- 28/10/2026
Comentarios
- …
Más skills de este repositorio
aspnet-core
28 milAyuda a tu agente a construir, revisar o actualizar apps web de ASP.NET Core, eligiendo el tipo de app adecuado y siguiendo la guía vigente de Microsoft para .NET.
chatgpt-apps
28 milAyuda a tu agente a construir una app de ChatGPT con un servidor MCP y una interfaz de widget, incluyendo herramientas, recursos de UI y configuración local.
cli-creator
28 milAyuda a tu agente a convertir una API, una especificación o scripts existentes en una herramienta de línea de comandos reutilizable que devuelve JSON estable.
define-goal
28 milAyuda a tu agente a convertir una intención vaga en un objetivo claro y medible, con criterios de éxito, alcance y condición de parada antes de empezar.
Skills parecidas
canvas
394 milPermite que tu agente muestre un widget visual alojado en un panel de Mac conectado y después ocultar el panel o moverlo a otra página.
control-ui
394 milAyuda a tu agente a organizar y resolver problemas de la interfaz de control de OpenClaw, incluidas las sesiones, los paneles y las Gateways conectadas.
diagram-maker
394 milAyuda a tu agente a crear diagramas claros en SVG, HTML o Excalidraw editable para procesos, arquitectura de sistemas y bocetos de pizarra.