figma-code-workflows
БесплатноБез исполняемых скриптовНе проверенUse this skill to bring an existing local project, HTML file, or GitHub repo into Figma as code, or to pull GitHub updates into linked Figma code. It covers…
от figma★ 2 252 звезды на GitHubОб этом скилле
Import a project into Figma
Only use this workflow for an explicitly requested Figma output (standalone Code/Make, runnable Code Layer, or editable Design layers), or a Figma file key/link given as its destination. Generic “make a code project” or “create a code component” requests, and Figma Code/Make names alone, do not specify that output. If output intent is unclear, ask whether the user wants local code or a Figma output, then wait before starting this workflow.
Preserve the user's project. Use each tool's current description and schema for prerequisites and parameters.
If the request includes publishing to Gallery, load share-to-figma-gallery first. When the current tool schema offers upfront review, complete it before any import or sync; otherwise follow that skill’s legacy publishing flow.
Keep the user updated at the main stages: preparing and validating the project, uploading the archive, and completing the import in Figma. Report pending imports, recovery work and blockers as they occur; do not describe an unconfirmed stage as complete.
1. Choose the output and destination
Identify the user's intended output, then load the appropriate skill according to the table below. If the output is unclear, ask the user before proceeding.
| Input | User's requested output | Next action |
|---|---|---|
| Running app or static HTML | Unspecified — just put/import it in Figma | Ask "Editable design layers or a code layer?" and end your turn. Wait for the answer. |
| Running app | Editable Design layers | Load figma-generate-design, then call generate_figma_design in a Design file. |
| Static HTML | Editable Design layers | Call html_to_figma in a Design file. |
| Running app | Runnable Code Layer or standalone Code/Make | Continue with this skill and call send_code_to_figma. |
| Static HTML | Runnable Code Layer or standalone Code/Make | Continue with this skill and call send_code_to_figma. |
An HTML project with working buttons is still ambiguous when the user has not chosen the output. A Design link only chooses the destination, not the output.
Before choosing a runnable destination, call whoami. Only choose or import a Design Code Layer when whoami.code_layers_enabled is true; otherwise use standalone Code/Make, or explain the limitation and ask before changing an explicitly supplied Design destination.
Honor an explicit code-layer or standalone request before applying the screen-count heuristic. For runnable code with a Design link, use a Code Layer. For a standalone Code link, use standalone. With no destination or explicit code-layer/standalone choice, estimate screens: fewer than 10 or unknown → Code Layer; 10 or more → standalone. Never ask Code Layer versus standalone or ask the user to count screens. Explicit destinations and links take precedence after the output choice.
Before creating a runnable destination, reuse the selected original source's .figma/entity_refs.json mapping when available, unless the user supplied another explicit destination. Match the correct project/loose-file source and retain its fileKey, componentGuid and canvas nodeId; ask if several destinations remain. The file is local memory, not proof of current Gallery state. A missing/stale artifact ID or a web-created target does not establish that it is unpublished. Do not require local metadata for an existing Figma target or a GitHub-only workflow.
Use the supplied file URL. If a new file is needed, use create_new_file with the selected destination type and the user's chosen plan.
Create a Design file for a requested code layer when no destination is provided.
Keep the confirmed output choice fixed; do not ask the user to choose again after creating the file.
For editable Design layers, follow the selected tool's instructions: generate_figma_design captures the running app's rendered page; html_to_figma converts a self-contained static HTML document. Inspect the resulting layers and share the Design link. Continue below only for runnable code output.
Check Gallery before sending updates
Resolve the selected source/transport and finish the requested local app changes and known import/deploy files before generating review content. If the user explicitly requests code sync without Gallery work, honor that scope and skip the Gallery check and continuation. Otherwise, do the check below before any outgoing code push or sync.
For an existing runnable target whose owning plan has Gallery M2 enabled, when publish_to_gallery offers upfrontReview, call it with action: "prepare" and upfrontReview: "if_published" before any git push or GitHub sync. Use the exact file and Code Layer canvas nodeId; standalone Makes omit nodeId. This checks authoritative Gallery state without opting an unlinked import into Gallery. If the response returns an upfront review for an active Gallery target, load share-to-figma-gallery, generate the changelog from the known local changes, and finish its
Установить figma-code-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл figma-code-workflows?
Use this skill to bring an existing local project, HTML file, or GitHub repo into Figma as code, or to pull GitHub updates into linked Figma code. It covers editable Design layers, runnable Code Layers, standalone Code/Make files, and fixing imported previews. Use it when the user says which Figma output they want, either by naming the type or by describing it. Wanting to run, click through, or interact with the imported app in Figma counts as asking for runnable code. Also use it when they give a Figma file link or key as the destination. Don't use it when the main goal is to publish or share to Figma Gallery; the gallery-sharing skill handles that. Also skip it for writing new code components, building local projects, or vague requests to "make a code project" that don't say where the code should go in Figma. In those cases, ask about the output first.
Как установить скилл figma-code-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл figma-code-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic