К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

figma — скилл для Claude: переносит макеты Figma в видео HyperFrames

Импортирует ассеты, токены бренда и компоненты из Figma в проект HyperFrames и собирает из кадров анимацию. Пригодится, когда нужно оживить макет, а не вставлять статичные картинки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add heygen-com/hyperframes --skill figma -a claude-code
Открыть на GitHub

Что делает figma

Скилл работает на этапе сборки: каждый импорт замораживает локальный файл, а источник записывается в .media/. Поэтому рендер не обращается к Figma, а повторный запуск команды переимпортирует только изменившееся. Ассеты, токены и компоненты тянутся через REST по токену. Данные о движении и шейдерах требуют коннектора Figma или нативного экспорта от вас.

Перед первой командой нужен FIGMA_TOKEN в оболочке или в .env проекта. Токен создаётся в figma.com → Settings → Security → Personal access tokens, с правами read-only на File content и File metadata, плюс Library content для tokens на планах без Enterprise. В чат его вставлять не надо. Слой или логотип забирает npx hyperframes figma asset, цвета и шрифты — npx hyperframes figma tokens, кадр как редактируемый HTML — npx hyperframes figma component.

Кадры в сториборде скилл читает как ключевые состояния, а не как слайды: элемент анимируется между состояниями, а не проигрывается подряд. Шейдеры Figma отдаёт сплющенными до базового цвета, поэтому нужен нативный экспорт кадра. Ставьте, если делаете видео из макетов и готовы завести токен. Если Figma в проекте не участвует, скилл ни к чему.

Какие задачи решает

  • забрать логотип и иконки из Figma в SVG
  • вытащить цвета и шрифты бренда в переменные композиции
  • собрать кадр макета в редактируемый HTML с точной геометрией
  • превратить соседние кадры сториборда в анимацию элемента
  • сверить отрендеренный компонент с пикселями Figma

Примеры запросов агенту

  • вот ссылка на макет, собери из него видео
  • возьми логотип из этого фрейма и положи в композицию
  • сделай из этих кадров анимацию, а не слайды

Как установить figma

1Через Skills CLI (Vercel)

npx skills add heygen-com/hyperframes --skill figma -a claude-code

2Вручную: положить файлы

~/.claude/skills/figma/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/figma/

Из того же набора14

Весь набор →
hyperframes heygen-com Скилл задаёт агенту правила рендера HTML-кода в видео через HyperFrames. Помогает собирать проморолики, эксплейнеры и титры прямо в коде проекта. Claude Code CX Codex Cursor +1 1 200 000установок hyperframes-cli heygen-com Управляет проектами HyperFrames через терминал: собирает таймлайн, проверяет контраст кадров, запускает предпросмотр и рендерит видео локально или в облаке. Claude Code CX Codex Cursor +1 1 200 000установок media-use heygen-com Находит и генерирует ассеты для видео в HyperFrames — музыку, дикторский голос, аватары и эффекты. Сохраняет всё локально в assets. Claude Code CX Codex Cursor +1 1 100 000установок hyperframes-registry heygen-com Находит и добавляет в проект около 450 готовых визуальных блоков HyperFrames — от титров до шейдеров. Пригодится, когда видеоэффект проще взять из базы, чем верстать с нуля. Claude Code CX Codex Cursor +1 1 000 000установок remotion-to-hyperframes heygen-com Конвертирует код Remotion или видеофутажи в HyperFrames с покадровой проверкой оригинала через SSIM. Claude Code CX Codex Cursor +1 504 900установок slideshow heygen-com Собирает интерактивные презентации HyperFrames со слайдами, фрагментами, переходами и заметками докладчика. Подходит для живого показа, а не рендера в видео. Claude Code CX Codex Cursor +1 415 500установок frost-sequence-camera-orbit heygen-com Скилл собирает 22.5-секундную сцену: камера облетает ледяной логотип, он рассыпается, собирается в два текста и растворяется. Claude Code CX Codex Cursor +1 9 800установок orbit-card heygen-com Скилл для встраивания готового 10-секундного 3D-блока HyperFrames: карточка фичи облетает сферу из точек по траектории камеры из Blender. Claude Code CX Codex Cursor +1 9 800установок

Похожие

slack-gif-creator официальный anthropics Скилл помогает создавать анимированные GIF для Slack и проверять их параметры. Подходит для эмодзи и GIF в сообщениях. Claude Code Claude.ai 75 256установок shadcn shadcn-ui Скилл помогает добавлять и настраивать shadcn/ui в проекте, соблюдая его структуру и правила компонентов. Пригодится при работе с интерфейсами, пресетами и чатами. Claude Code CX Codex Cursor +1 122 100установок emil-design-eng emilkowalski Скилл задаёт правила для полировки интерфейсов, компонентов и анимаций. Пригодится, когда UI работает, но требует более точных состояний и переходов. Claude Code CX Codex Cursor +1 385 500установок review-animations emilkowalski Проверяет код интерфейсных анимаций по принципам Эмиля Ковальски. Помогает убрать дерганые переходы, медленный ease-in и лишнюю нагрузку на процессор. Claude Code CX Codex Cursor +1 254 100установок apple-design emilkowalski Переносит принципы физического интерфейса Apple с докладов WWDC в веб на CSS, Pointer Events и Motion. Пригодится при верстке жестов, шторки и прерываемых пружин. Claude Code CX Codex Cursor +1 242 100установок frontend-design официальный anthropics Скилл задаёт осмысленное визуальное направление для новых интерфейсов и редизайна. Подойдёт, когда стандартный шаблонный UI не устраивает. Claude Code Claude.ai 1 025 790установок grill-me Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну, чтобы найти пробелы и уточнить решения. Подойдёт перед началом разработки. Claude Code 1 424 476установок design-taste-frontend Leonxlnx Скилл задаёт арт-дирекцию для публичных страниц и рабочих экранов, а затем проверяет результат в браузере по скриншотам. Нужен, когда интерфейс выглядит шаблонным или недоработанным. Claude Code CX Codex Cursor +1 673 100установок

Вопросы о figma

Как установить figma в Claude?

Команда npx skills add heygen-com/hyperframes --skill figma -a claude-code. Файл скилла окажется в ~/.claude/skills/figma/SKILL.md.

Что делает скилл figma?

Импортирует ассеты, токены бренда и компоненты из Figma в проект HyperFrames и переводит кадры сториборда в анимацию. Импорт идёт на этапе сборки, рендер к Figma не обращается.

Что нужно, чтобы скилл заработал?

Токен FIGMA_TOKEN в оболочке или .env проекта с правами read-only на File content и File metadata. Для движения и шейдеров понадобится коннектор Figma или нативный экспорт кадра.

Исходный текст

SKILL.md · Apache-2.0
---
name: figma
description: Bring Figma into a HyperFrames video - rendered assets, brand tokens, components, storyboard frames as reconstructed motion (frames read as states, not slides), shaders and connector-assisted motion. Use when the person pastes a figma.com link or asks to use a Figma design, frame, logo or brand.
---

**Plugin installs:** Before setup or freshness commands, follow [plugin execution rules](../hyperframes/references/plugin-installation.md) when this skill is inside a HyperFrames plugin.

# Figma → HyperFrames

Every import happens at build time and freezes a local file with its source recorded under `.media/`, so renders never call Figma and re-running a command re-imports only what changed. Assets, tokens and components go over REST with a token; motion and shader data need a Figma connector, or a native export from the person.

## Access

`FIGMA_TOKEN` in the shell or the project `.env`. Check it exists before the first command; if not, tell the person how to make one and stop: figma.com → Settings → Security → Personal access tokens, read-only **File content** and **File metadata**, plus **Library content** for `tokens` on non-Enterprise plans. They set it themselves; never ask them to paste it into the chat.

| Error | Meaning |
| --- | --- |
| `BAD_TOKEN` (401) | Expired or revoked: make a new one |
| `FORBIDDEN` (403) | The message names the missing scope, or the file isn't visible to the account |
| `REQUIRES_ENTERPRISE` (403, variables) | Not a failure: the published-styles fallback already ran |
| `RATE_LIMITED` (429) | Already retried with backoff; wait a minute or import fewer nodes per call |

## Commands

- A layer, logo or image: `npx hyperframes figma asset '<url or fileKey:nodeId>' [more refs] --format svg|png --scale 2 --description "<what it is>" [--entity "<brand mark>"]`. SVG for vectors and logos, PNG at 2x for raster. Several nodes of one file in one call render in a single request; `--entity` lets `/media-use` find a brand mark later.
- Brand colours and type: `npx hyperframes figma tokens <fileKey>`. Run it before `component` and paste the printed entries into `data-composition-variables`. Without Enterprise it falls back to published styles. A connector can supply variables there instead: cache its raw response in `.media/figma-cache/` and write the bindings to `.media/figma-bindings.jsonl` (`{kind:"binding", figmaId, sourceFileKey, compositionVariableId:"figma:<name>", version}`).
- A frame as editable HTML at exact geometry: `npx hyperframes figma component '<url or fileKey:nodeId>'`, packaged under `compositions/components/<name>/`. A fill bound to an imported token comes out as `var(--slug, #literal)`, so one variable re-brands every import; an unknown token stays a literal marked `data-figma-unresolved`: import that library's tokens and re-import. Ask once which file a library is; never match by hex.
- Check hero components against Figma's pixels (`figma asset <same node> --format png`). Text drift is the usual cause; report drift you can't fix instead of hand-tweaking the import.

## Motion (connector)

Usage beacon: these phases have no CLI touchpoint, so run `npx hyperframes events --skill=figma-motion` when you begin and `npx hyperframes events --skill=figma-motion --event=skill_completed --outcome=success|error` when done. Same for shaders (`figma-shaders`) and storyboards (`figma-storyboard`).

1. Fetch motion context for the parent frame in one recursive request; cache the raw JSON in `.media/figma-cache/`.
2. Normalise with `motionContextToDocs(raw, { selectorFor, repeat })` from `@hyperframes/core/figma`, never by transcribing keyframes. It reads the motion.dev snippets (the CSS snippets stretch durations), drops loop-wrap tail keyframes and keeps bezier eases. `selectorFor` returns the ids from the component import.
3. `motionToGsap(doc)` → `emitTimelineScript(spec)`, injected after the GSAP and CustomEase tags: paused, finite, a literal `window.__timelines` key. Named eases outside the mapped set fall back to linear; say so.
4. Verify against Figma's own export: `node <SKILL_DIR>/scripts/verify-motion.mjs --reference <export.mp4> --render <render.mp4> --crop WxH+X+Y`. It compares motion between samples, so static drift cancels out, and fails under 15 dB (faithful ≈ 20+, diverging ≈ 5). Measure `--crop` from the render's card edges. A fail means fix the translation, not the threshold.
5. A track that won't translate: export it, freeze the MP4 and place it as `<video class="clip">`.

## Shaders

Figma's export path flattens shaders to their base colour, and shader source is only reachable for library-published styles. Ask the person for a native export of that frame (PNG or MP4) and place it as an asset or clip.

## Storyboards: frames are KEYFRAMES, not slides

Two frames holding the same element describe that element's state through time: animate the element between the states. Playing the frames back to back as stills is the failure mode.

1. Scenes are every frame-sized node in the section, named frames and loose full-frame rectangles alike: filter by size, not type or name. Order by `absoluteBoundingBox.x`.
2. Match children across neighbouring frames by name first, then by similar size and position. Tween geometry between states; crossfade two exports in place when the pixels changed. Export one asset per element, not one still per frame. Unmatched children enter or exit at their scene's beat.
3. Text nodes below the strip are motion notes for the scene above them, not on-screen copy. A note about motion inside a scene ("lines reveal one after another") means import that frame as a component and animate it.
4. Export in batches of about 4 scene frames per call: past about 12 ids `/v1/images` times out.
5. Frames that are one product UI in successive states: rebuild the UI as live DOM: code what changes state, freeze what doesn't, and treat each frame change as an interaction to perform (the cursor moves, clicks, the screen responds), not a tween to apply.
6. Stills are the fallback, only for frames with no shared elements.

Never leave a Figma URL in the composition.

© heygen-com · Apache-2.0 · heygen-com/hyperframes

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой