figma
Skill này làm gì
Skill này kết nối thiết kế Figma với video HyperFrames. Nó dành cho nhà thiết kế và người làm video muốn đưa tài sản Figma, màu thương hiệu hoặc khung hình vào video.
Khi nào nên dùng
- ✓Khi bạn dán một liên kết Figma và muốn dùng thiết kế đó trong video.
- ✓Khi bạn muốn màu thương hiệu, logo hoặc thành phần từ Figma có trong video.
- ✓Khi bạn muốn biến một storyboard Figma thành các cảnh hoạt họa.
Liên kết skill
https://github.com/heygen-com/hyperframes/blob/main/skills/figma/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dùng logo và màu thương hiệu từ liên kết Figma này trong video của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tải các tài sản, màu và thành phần Figma đã chọn về thành file cục bộ khi build, nên video không gọi Figma khi render. Nó cần một personal access token mà bạn tự thiết lập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần token Figma không?
Có. Bạn tạo một token chỉ đọc trong cài đặt Figma và lưu nó với tên FIGMA_TOKEN. Agent sẽ không yêu cầu bạn dán nó vào khung chat.
Video có gọi Figma khi render không?
Không. Mỗi lần nhập sẽ đóng băng một bản sao cục bộ, nên render không bao giờ gọi Figma.
Hoạt họa có được lấy trực tiếp từ Figma không?
Không phải lúc nào. Dữ liệu chuyển động và shader cần một connector Figma hoặc bạn xuất trực tiếp từ Figma.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 78k
- Vị trí xếp hạng
- #1739
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
captions-overlay
78kHướng dẫn agent của bạn thêm phụ đề vào video dưới dạng lớp phủ, quyết định câu nào nên bỏ, hiển thị trên thanh phụ đề hay được làm nổi bật.
cut-the-curve
78kDạy agent của bạn các kiểu chuyển cảnh dùng trong video HyperFrames, như chuyển cảnh mượt, zoom xuyên qua và chữ xuất hiện so le.
motion-doctrine
78kCho agent của bạn các quy tắc cốt lõi để làm một video nhiều cảnh trông như một cú máy liên tục, thay vì các slide rời rạc.
oversized-cursor
78kDạy agent của bạn thêm một con trỏ lớn, có hoạt họa vào video để dẫn mắt người xem và làm cho các cú nhấp trông như gây ra hành động kế tiếp.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.