figma
できること
このスキルは Figma のデザインを HyperFrames 動画につなぎます。Figma のアセット、ブランドカラー、フレームを動画の中で使いたいデザイナーや動画制作者向けです。
使う場面
- ✓Figma のリンクを貼り付けて、そのデザインを動画で使いたいとき。
- ✓Figma のブランドカラー、ロゴ、コンポーネントを動画で使いたいとき。
- ✓Figma の絵コンテを、アニメーションのシーンに変えたいとき。
スキルのリンク
https://github.com/heygen-com/hyperframes/blob/main/skills/figma/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この Figma リンクのロゴとブランドカラーを、私の動画で使ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、選んだ Figma のアセット、色、コンポーネントを、ビルドの時点でローカルのファイルとしてダウンロードします。そのため、動画はレンダリングのたびに Figma を呼び出しません。トークンは、あなた自身が設定する必要があります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Plugin installs: Before setup or freshness commands, follow plugin execution rules 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;--entitylets/media-usefind a brand mark later. - Brand colours and type:
npx hyperframes figma tokens <fileKey>. Run it beforecomponentand paste the printed entries intodata-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 undercompositions/components/<name>/. A fill bound to an imported token comes out asvar(--slug, #literal), so one variable re-brands every import; an unknown token stays a literal markeddata-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).
- Fetch motion context for the parent frame in one recursive request; cache the raw JSON in
.media/figma-cache/. - 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.selectorForreturns the ids from the component import. motionToGsap(doc)→emitTimelineScript(spec), injected after the GSAP and CustomEase tags: paused, finite, a literalwindow.__timelineskey. Named eases outside the mapped set fall back to linear; say so.- 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--cropfrom the render's card edges. A fail means fix the translation, not the threshold. - 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 hold
よくある質問
Figma のトークンは必要ですか?
はい。Figma の設定で読み取り専用のトークンを作成し、FIGMA_TOKEN として保存してください。エージェントがチャットへの貼り付けを求めることはありません。
動画のレンダリング時に Figma を呼び出しますか?
いいえ。取り込みのたびにローカルのコピーが固定されるため、レンダリングが Figma を呼び出すことはありません。
アニメーションは Figma から直接取り込まれますか?
いつもそうとは限りません。動きやシェーダーのデータには、Figma のコネクターか、あなたによるネイティブのエクスポートが必要です。
詳細
作者による元の説明
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.
repo: heygen-com/hyperframes
人気
- GitHubのスター
- 78k
- ランキング
- #1739
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
captions-overlay
78k動画に字幕をオーバーレイとして付ける方法をガイドします。どの話し言葉を削除し、どれを字幕の帯に表示し、どれを強調するかを決めます。
cut-the-curve
78kHyperFrames 動画で使われるトランジションを教えます。滑らかなシーンの切り替え、ズームスルー、ずらして表示するテキストの動きなどを含みます。
motion-doctrine
78k複数のシーンからなる動画を、別々のスライドではなく、ひとつながりのカメラの動きのように感じさせるための基本ルールをエージェントに与えます。
oversized-cursor
78k動画に大きく動くポインターを追加して、視聴者の視線を誘導し、クリックが次の動きの原因に見えるように演出するよう、エージェントに教えます。
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。