hyperframes
Skill này làm gì
Skill này để AI viết một video hoạt hình ngắn từ bố cục HTML, như biểu đồ, thẻ chữ hoặc clip có thương hiệu. Skill dành cho người làm video giải thích và video mạng xã hội từ dữ liệu hoặc văn bản.
Khi nào nên dùng
- ✓Khi bạn muốn biến biểu đồ, bảng điều khiển hoặc giải thích dữ liệu thành video hoạt hình.
- ✓Khi bạn muốn một thẻ trích dẫn, đồng hồ đếm ngược hoặc clip chữ hoạt hình.
- ✓Khi bạn muốn một clip mạng xã hội dọc từ một bố cục bạn mô tả, thay vì cảnh quay chân thực.
Liên kết skill
https://github.com/spinabot/brigade/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.
Ví dụ cách nhờ AI
“Làm một video dọc 15 giây có biểu đồ cột hoạt hình về ba sản phẩm bán chạy nhất của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI viết một tệp HTML duy nhất với một dòng thời gian điều khiển từng phần chuyển động. Công cụ render đi qua dòng thời gian từng khung hình và mã hóa các khung thành MP4, nên cùng đầu vào cho cùng một 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 → deterministic MP4
The render_video tool renders an HTML composition you write into a pixel-exact
MP4. A headless Chrome steps a GSAP master timeline frame by frame, captures one
image per frame, and FFmpeg encodes them — so the same HTML always produces the same
video. This is the right tool for anything programmatic and data-driven; reach for
generate_video only when you need photoreal/AI-generated footage.
Great fits: animated bar/line/donut charts, KPI dashboards, "N facts about X" explainers, quote/announcement cards, kinetic typography, countdowns, before/after reveals, branded intros/outros, vertical social clips.
The composition contract (this is what makes or breaks a render)
Write ONE self-contained HTML document. Two things are mandatory and non-obvious:
- A paused GSAP timeline registered to
window.__timelines[<composition-id>]. HyperFrames seeks this timeline to render each frame. Total video duration =tl.duration()— you do NOT set duration with an attribute. data-*attributes on the root and on every timed element.
Root composition element — required: data-composition-id (must match the
window.__timelines key), data-width, data-height, data-start; plus
data-track-index.
Timed children — data-start + data-track-index on every one; visible
elements (<img>, text/graphic <div>s) also need class="clip"; <img> also
takes data-duration. Do not put data-duration on the root/composition — its
duration comes from the timeline.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<!-- Load GSAP (see "GSAP + assets" below). -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
<style>
body { margin: 0; }
.stage { width: 1080px; height: 1920px; position: relative; overflow: hidden;
background: #0b0b12; color: #fff; font-family: system-ui, sans-serif; }
.title { position: absolute; top: 220px; left: 80px; font-size: 96px;
font-weight: 800; opacity: 0; transform: translateY(24px); }
</style>
</head>
<body>
<div class="stage"
data-composition-id="promo"
data-width="1080" data-height="1920"
data-start="0" data-track-index="0">
<div class="title clip" data-start="0" data-duration="4" data-track-index="0">
Ship faster.
</div>
</div>
<script>
// A PAUSED timeline — HyperFrames drives playback by seeking it per frame.
const tl = gsap.timeline({ paused: true });
tl.to(".title", { opacity: 1, y: 0, duration: 0.7, ease: "power2.out" }, 0.4)
.to(".title", { opacity: 0, duration: 0.5, ease: "power2.in" }, 3.5);
// Register under the SAME id as data-composition-id. This is mandatory.
window.__timelines = window.__timelines || {};
window.__timelines["promo"] = tl;
</script>
</body>
</html>
- Vertical
1080×1920for TikTok/Reels/Shorts,1920×1080for landscape,1080×1080for square feed posts. - Frame rate is an engine default (the tool doesn't expose an fps flag) — author for smooth motion at 30fps.
GSAP + assets
The tool renders a single standalone index.html (no project scaffold), so the
composition must bring its own GSAP and assets:
- GSAP: load it via a
<script src="…gsap.min.js">(CDN as above) or paste the minified source inline. It must be defined before your timeline script runs. - Assets: embed images/fonts as
data:URIs so nothing depends on external files. - Determinism: never drive motion from
Date.now(),Math.random(),setTimeout, or a hand-rolledrequestAnimationFrameloop — put all motion on the GSAP timeline. Off-timeline animation desyncs from the frame stepper.
Workflow
- Write the composition to the contract above with real data/text (never lorem).
- Call
render_videowith{ html, output_name?, lint? }. It lints, renders in an isolated subprocess (a real render legitimately takes a minute or more), and returns a saved MP4 as aMEDIA:<path>line. - Deliver it with
send_media({ path }). - Handle failures by
errorType:composition_invalid— read the lint message, fix the HTML, retry.render_failed— read the stderr excerpt (bad timeline id, missing GSAP, etc.).render_timeout— the composition is too heavy; simplify or shorten it.render_unavailable— the
Câu hỏi thường gặp
Đây có dành cho cảnh do AI tạo không?
Không. Với cảnh chân thực hoặc do AI tạo, một skill tạo video riêng là lựa chọn tốt hơn.
Cùng một đầu vào có luôn cho cùng video không?
Có. Vì dòng thời gian được render từng khung hình, đầu ra là xác định.
Độ dài video được đặt như thế nào?
Độ dài đến từ dòng thời gian bên trong tệp, nên dòng thời gian quyết định tổng thời lượng.
Chi tiết
Mô tả gốc của tác giả
Author HTML compositions that the `render_video` tool turns into deterministic MP4 video — animated charts and dashboards, data explainers, text/quote cards, kinetic typography, product teasers, and branded short-form social clips. Use when the user asks Brigade to make, render, animate, or produce a video from data, text, or a layout (NOT photoreal/AI footage — that's `generate_video`).
repo: spinabot/brigade
Độ phổ biến
- Sao GitHub
- 11k
- Vị trí xếp hạng
- #11724
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
1password
11kDạy agent của bạn cài đặt công cụ dòng lệnh 1Password và đăng nhập an toàn, sau đó đọc hoặc chèn các bí mật đã lưu khi cần.
apple-reminders
11kCho phép agent của bạn xem, thêm, sửa, hoàn thành và xóa Apple Reminders từ terminal, gồm danh sách và bộ lọc theo ngày.
bluebubbles
11kCho phép agent của bạn gửi và quản lý iMessage qua BlueBubbles, gồm tin nhắn, tệp đính kèm, biểu cảm tapback, chỉnh sửa và cài đặt nhóm.
camsnap
11kCho phép agent của bạn chụp ảnh, quay clip ngắn hoặc theo dõi chuyển động từ các camera an ninh mạng mà bạn đã thiết lập.
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.