hyperframes
Skill này làm gì
Tạo video ngắn, hoạt ảnh, phụ đề và lời thuyết minh bằng mã HTML. Giống như xây dựng một video từ các khối kỹ thuật số.
Khi nào nên dùng
- ✓Khi tạo video ngắn cho mạng xã hội.
- ✓Khi thêm phụ đề đồng bộ vào video.
- ✓Khi tạo lời thuyết minh cho video.
Liên kết skill
https://github.com/nexu-io/open-design/blob/main/design-templates/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.
Ví dụ cách nhờ AI
“Tạo video 10 giây giới thiệu sản phẩm, có phụ đề và lời thuyết minh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ dùng mã đặc biệt gọi là HTML, cùng với hoạt ảnh và kiểu dáng, để lắp ráp video. Bạn mô tả điều mình muốn, và công cụ sẽ xây dựng video.
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.
HyperFrames
HTML is the source of truth for video. A composition is an HTML file with data-* attributes for timing, a GSAP timeline for animation, and CSS for appearance. The framework handles clip visibility, media playback, and timeline sync.
OpenDesign integration (load-bearing for this surface)
When this skill runs inside OpenDesign (i.e. $OD_PROJECT_DIR is set), the
output flow is fixed: only the rendered .mp4 should land in the project
root. Composition source files (hyperframes.json, meta.json,
index.html, assets) belong inside a hidden cache directory so they don't
clutter the user's FileViewer or the chat's "produced files" chips.
Render workflow inside OD — fast path:
For most OD requests ("test video", "5s product reveal", "demo clip"), do NOT write the composition HTML from scratch. Use Open Design's deterministic scaffold and edit only what the prompt actually changes. The "author from scratch" path costs minutes of model output and silent chat-tool time; the scaffold path costs seconds.
# 1. Pick a hidden cache slot. Dotfile prefix → OD's project file
# listing skips it, so the source files never clutter the chat.
COMP_REL=".hyperframes-cache/$(date +%s)-$(openssl rand -hex 2)"
COMP="$OD_PROJECT_DIR/$COMP_REL"
# 2. Get an immediately-renderable scaffold (hyperframes.json,
# meta.json, index.html with GSAP CDN + window.__timelines.main
# already registered). Open Design writes these files itself; it does
# not run `hyperframes init`, consult an npx cache, or install global skills.
"$OD_NODE_BIN" "$OD_BIN" media scaffold \
--project "$OD_PROJECT_ID" \
--composition-dir "$COMP_REL"
# 3. Edit ONLY $COMP/index.html — change `data-duration` on the root
# if you need a non-default length, swap the placeholder palette
# in <style>, add 1–3 clip <div>s for text/imagery, and append the
# matching GSAP tweens inside the existing
# `window.__timelines["main"] = gsap.timeline({paused:true})` block.
# Keep edits minimal; the scaffold is already valid HF.
# 4. Dispatch render through the OD daemon. Do NOT run HyperFrames
# `render` from this shell — the daemon runs it for you in an
# unsandboxed process. (Many agent CLIs, Claude Code in particular,
# wrap Bash in macOS sandbox-exec under which puppeteer's Chrome
# subprocess hangs partway through frame capture. The daemon process
# is unsandboxed, so renders complete reliably.)
#
# The dispatcher returns within ~1s with a {taskId}; drive the
# render to completion by looping `"$OD_NODE_BIN" "$OD_BIN" media wait <taskId>` calls.
# Each call long-polls up to 25s (well under your shell tool's
# default 30s cap) and exits 0/2/5 to signal done/running/failed.
out=$("$OD_NODE_BIN" "$OD_BIN" media generate \
--project "$OD_PROJECT_ID" \
--surface video \
--model hyperframes-html \
--output "<descriptive-name>.mp4" \
--composition-dir "$COMP_REL")
ec=$?
task_id=$(printf '%s\n' "$out" | tail -1 | jq -r '.taskId // empty')
since=$(printf '%s\n' "$out" | tail -1 | jq -r '.nextSince // 0')
while [ "$ec" -eq 2 ] && [ -n "$task_id" ]; do
out=$("$OD_NODE_BIN" "$OD_BIN" media wait "$task_id" --since "$since")
ec=$?
since=$(printf '%s\n' "$out" | tail -1 | jq -r '.nextSince // '"$since")
done
[ "$ec" -ne 0 ] && { echo "$out" >&2; exit "$ec"; }
Each generate and each wait call lasts at most ~25s, so the agent
shell tool's default ~30s cap never fires. Progress lines from HF
(Capturing frame N/M) stream to stderr live throughout the loop.
When the render finishes, the last stdout line is
{"file": { "name": "<output>", "size": …, "kind": "video", … }} —
quote file.name in your reply so the user knows what was produced.
Skip the Visual Identity Gate inside OD. The HARD-GATE section below (under "Approach") tells you to read DESIGN.md / visual-style.md or stop and ask 3 mood questions before writing any composition. That gate is for standalone HF projects. OD projects already have their own design-system layer — the user picked their visual direction at project creation time. For an OD test render, default to: dark canvas (#0b0b0f), one warm accent (#ffb76b), one cool accent (#7da4ff), restrained motion. Only ask for stylistic input if the user's prompt is too vague to even pick a subject (very rare).
When to skip the scaffold and write from scratch: only when the user explicitly asks for something the blank template clearly can't host
…
Câu hỏi thường gặp
Tôi có cần biết lập trình để dùng không?
Không. Bạn chỉ cần mô tả điều mình muốn bằng tiếng Anh. Công cụ sẽ lo phần kỹ thuật.
Tôi có thể dùng hình ảnh và âm thanh của riêng mình không?
Có. Bạn có thể đưa các tệp đa phương tiện của mình vào video.
“HTML compositions” là gì?
Đó là các dự án video được làm bằng mã HTML, trong đó mỗi phần (văn bản, hình ảnh, hoạt ảnh) được xác định bằng lệnh.
Chi tiết
Mô tả gốc của tác giả
Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker swee
repo: nexu-io/open-design
Độ phổ biến
- Sao GitHub
- 101k
- Vị trí xếp hạng
- #930
- Giấy phép
- Apache-2.0
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
sample-plugin
101kGiúp agent của bạn tạo một tệp metadata cho các bài kiểm thử. Nó giúp đảm bảo mã nguồn chạy đúng trong nhiều tình huống khác nhau.
aster-atelier
101kGiúp agent của bạn tạo một website nghệ thuật theo phong cách cổ điển. Nó dùng hình ảnh tinh tế, bầu trời xanh và phông chữ serif để tạo cảm giác điện ảnh.
audio-jingle
101kGiúp agent của bạn tạo âm thanh như nhạc hiệu và hiệu ứng âm thanh. Nó có thể tạo nhạc và giọng nói, rồi lưu kết quả thành tệp âm thanh.
blog-post
101kGiúp agent của bạn viết bài báo dài hoặc bài blog. Có chỗ dành cho hình ảnh, trích dẫn và thông tin tác giả.
Skill tương tự
blender-motion-state-inspection
280kCho phép kiểm tra chi tiết trong hoạt ảnh 3D. Hữu ích để kiểm tra tư thế, chuyển động và độ thẳng hàng của nhân vật trong hoạt ảnh.
manim-video
280kGiúp agent tạo video giải thích hoạt hình. Dùng Manim để tạo biểu đồ và sơ đồ rõ ràng cho các khái niệm kỹ thuật.
remotion-video-creation
280kHướng dẫn agent tạo video bằng React với thư viện Remotion. Bao gồm các thực hành tốt nhất về hoạt ảnh, âm thanh, phụ đề và các yếu tố hình ảnh khác.