hyperframes
Skill này làm gì
Đây là hướng dẫn chính để làm video với HyperFrames. Nó dành cho người muốn làm phim giới thiệu, video giải thích, thẻ tiêu đề, biểu đồ hoặc clip có phụ đề được dựng từ mã web.
Khi nào nên dùng
- ✓Khi bạn muốn làm một video mới với HyperFrames, như phim giới thiệu hoặc video giải thích.
- ✓Khi bạn muốn chỉnh sửa hoặc tạo hoạt họa cho một video HyperFrames có sẵn.
- ✓Khi bạn cần render video để mỗi lần đều cho ra cùng các khung hình.
Liên kết skill
https://github.com/heygen-com/hyperframes/blob/main/skills/hyperframes/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.
📦 Skill này nằm trong các gói sau
Ví dụ cách nhờ AI
“Làm một video giới thiệu 30 giây cho ứng dụng của chúng tôi, có tiêu đề, ba cảnh tính năng và phụ đề.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dựng video thành HTML, với một file chính liệt kê các cảnh. Nó làm việc với dự án theo từng bước, kiểm tra kết quả và render video cuối để mỗi lần render đều giống hệt nhau.
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.
HyperFrames
HyperFrames renders HTML to video by seeking a paused timeline frame by frame, so every render is identical; the person edits the same files in the Studio preview. Use it unless another framework or a plain browser recording is asked for. Run the CLI as npx hyperframes <command> (/hyperframes-cli); at the start of a new video, npx hyperframes usage --json reports the person's remaining plan usage (say "unknown" when it is).
index.html is the root composition: it declares the video's variables and mounts one scene per sub-composition from compositions/. Media and fonts live in assets/. A new project: npx hyperframes init <dir>. A website as the subject: npx hyperframes capture <url> --json.
Build what was asked: no voiceover or captions and no new aspect ratio unless the request or the source calls for them; a film over ~15 s that tells something gets music and sound on its visible actions unless the person asked for silence (references/sound.md). A new video is 1920×1080 at 30 fps. A question, a hold or a loose idea gets an answer or a proposal, not an edit. Before hand-writing a named effect, transition, caption style, chart or card, search the registry (/hyperframes-registry). Any media (a presenter or avatar, footage, voice, music): /media-use, which says when HeyGen is needed and what is free. Show real things from their source (the product's screens, the brand's logo, a real place's imagery); draw only what has none.
Contract
npx hyperframes check --json reports most violations with a Fix: line.
- Every timed element has
class="clip",data-startanddata-durationin seconds, and shows over[start, start + duration): land an end state just before its end.data-track-indexis only a Studio lane; paint order isz-index. - The video's length is the root's
data-duration: overrun is cut, an early end holds the last frame. - Each composition builds one paused timeline and registers it after its tweens:
window.__timelines["<data-composition-id>"] = tl. - No
Date.now(), unseededMath.random(), network fetches, timers orrepeat: -1. Everything visible is a function of timeline time. - Never tween
display,visibilityorautoAlphaon a.clip; animate a child. - No CSS
transformon an element GSAP transforms; animate transforms, notleft/top/width/height. - Never
play(),pause()or seek media. A<video>keeps its sound withdata-has-audio="true", else it ismuted; music, voice, replacement sound and J/L cuts are a separate<audio>. - Every
<audio>has anidor it is left out of the mix. Nocrossoriginon media. Time a<video>or its wrapper, never both. - Only the bundled fonts (
references/format.md) resolve by name; any other family needs@font-faceto a file inassets/fonts/. - Asset paths:
assets/...(no leading/), in sub-compositions too. - Grades, grain, blur and vignettes on footage go through
npx hyperframes media-treatment(/media-use), never CSS filters. - A scene file puts its styles, markup and scripts inside
<template>and styles its root as#root. Intended overflow or overlap:data-layout-allow-overflow,data-layout-allow-overlap.
Keep it editable
Studio edits the tags you write.
- One scene per sub-composition, short readable ids; the root holds only scene hosts, media and audio.
- Timed elements are written in the HTML, not made by script, each with a stable
id. - Copy, brand colours and swappable media are variables (
data-var-text,data-var-src,var(--id)). - One kind per track:
data-track-kind="graphics"on scene and overlay hosts,captionson the one host that holds every caption group. - Content stays inside the 90% action-safe box, captions and key text inside 80% title-safe; Studio draws the guides, never add them.
Work loop
- An existing project:
npx hyperframes timeline --jsonshows what plays when; before any change,npx hyperframes history --since mine --who <you>shows what the person changed since your last turn: build on it (/hyperframes-cli). - A new film over ~15 s that tells something: its type's file (below), then
references/story.md: three storylines that are three different films, in words only; the person picks unless they asked for the file or n
Câu hỏi thường gặp
Video có định dạng gì?
Video mới là 1920 x 1080 ở 30 khung hình mỗi giây, trừ khi bạn yêu cầu khác.
Mọi video đều có nhạc và phụ đề không?
Không. Phụ đề và lời thuyết minh chỉ được thêm khi yêu cầu hoặc nguồn cần đến.
Tôi có cần viết mã không?
Video được dựng từ file HTML, nên có một chút mã, nhưng agent làm phần lớn công việc.
Chi tiết
Mô tả gốc của tác giả
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
repo: heygen-com/hyperframes
Độ phổ biến
- Sao GitHub
- 78k
- Vị trí xếp hạng
- #1742
- 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ự
taste-application
280kGiúp agent tạo video theo phong cách cụ thể: sao chép nhịp dựng từ video mẫu, tạo cảnh mới, chỉnh màu và ghép với các đoạn có sẵn.
taste-distillation
280kGiúp agent phân tích video để tạo style pack gồm màu sắc, nhịp cắt và yếu tố hình ảnh, tái sử dụng để tạo video mới cùng phong cách.
ui-demo
280kGiúp agent ghi lại video demo giao diện chỉn chu. Hữu ích để tạo hướng dẫn hoặc cho thấy một ứng dụng web hoạt động ra sao.