figma
Fungsinya
Skill ini menghubungkan desain Figma dengan video HyperFrames. Skill ini untuk desainer dan pembuat video yang ingin aset Figma, warna merek, atau frame mereka ada di dalam video.
Kapan dipakai
- โSaat Anda menempelkan tautan Figma dan ingin desainnya dipakai dalam video.
- โSaat Anda ingin warna merek, logo, atau komponen dari Figma ada di video Anda.
- โSaat Anda ingin storyboard Figma diubah menjadi adegan yang dianimasikan.
Link skill
https://github.com/heygen-com/hyperframes/blob/main/skills/figma/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โPakai logo dan warna merek dari tautan Figma ini di video saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengunduh aset, warna, dan komponen Figma yang dipilih ke berkas lokal saat build, sehingga video tidak memanggil Figma ketika dirender. Anda perlu membuat token akses pribadi sendiri, dan agent tidak akan meminta Anda menempelkannya ke obrolan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya perlu token Figma?
Ya. Anda membuat token baca-saja di pengaturan Figma dan menyimpannya sebagai FIGMA_TOKEN. Agent tidak akan meminta Anda menempelkannya ke obrolan.
Apakah video memanggil Figma saat dirender?
Tidak. Setiap impor membekukan salinan lokal, sehingga render tidak pernah memanggil Figma.
Apakah animasi diambil langsung dari Figma?
Tidak selalu. Data gerak dan shader memerlukan konektor Figma atau ekspor native dari Anda.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 78k
- Peringkat
- #1739
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
captions-overlay
78kMemandu agent Anda menambahkan caption ke video sebagai overlay, dengan memutuskan baris ucapan mana yang dibuang, ditampilkan di rail, atau disorot.
cut-the-curve
78kMengajari agent Anda transisi yang dipakai dalam video HyperFrames, seperti potongan adegan yang mulus, zoom-through, dan entri teks yang bertahap.
motion-doctrine
78kMemberi agent Anda aturan inti untuk membuat video multi-adegan terasa seperti satu gerakan kamera yang berkesinambungan, bukan slide yang terpisah.
oversized-cursor
78kMengajari agent Anda menambahkan penunjuk besar yang bergerak ke video untuk memandu mata penonton dan membuat klik terasa seperti pemicu aksi berikutnya.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.