hyperframes
它能做什么
它把视频写成带有定时动画的 HTML 合成内容,然后渲染为 MP4 或 WebM 文件。它适合制作动态图形、带字幕的旁白视频或社交视频叠加效果的创作者。
适用场景
- ✓你想制作带动画的标题卡、下三分之一字幕或产品导览视频的时候。
- ✓你想制作与音频同步的带字幕旁白视频的时候。
- ✓你想根据一个网站地址制作视频的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/hyperframes/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的应用制作一段简短的动画产品介绍,包含标题卡和字幕。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体编写一个带有计时属性的 HTML 页面,以及 GSAP 动画时间线。HyperFrames 引擎逐帧捕捉画面,并用 FFmpeg 编码生成最终视频。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 HyperFrames engine captures the page frame-by-frame and encodes to MP4/WebM with FFmpeg.
Complement to manim-video: Use manim-video for mathematical/geometric explainers (equations, 3B1B-style). Use hyperframes for motion-graphics, talking-head with captions, product tours, social overlays, shader transitions, and anything driven by real video/audio media.
When to Use
- User asks for a rendered video from text, a script, or a website
- Animated title cards, lower thirds, or typographic intros
- Captioned narration video (TTS + captions synced to waveform)
- Audio-reactive visuals (beat sync, spectrum bars, pulsing glow)
- Scene-to-scene transitions (crossfade, wipe, shader warp, flash-through-white)
- Social overlays (Instagram/TikTok/YouTube style)
- Website-to-video pipeline (capture a URL, produce a promo)
- Any HTML/CSS/JS animation that must render deterministically to a video file
Do not use this skill for:
- Pure math/equation animation (→
manim-video) - Image generation or memes (→
meme-generation, image models) - Live video conferencing or streaming
Quick Reference
npx hyperframes init my-video # scaffold a project
cd my-video
npx hyperframes lint # validate before preview/render
npx hyperframes preview # live-reload preview (long-lived server, port 3002)
npx hyperframes render --output final.mp4 # render to MP4
npx hyperframes doctor # diagnose environment issues
preview is a long-lived Next.js server that holds Chrome render workers open. Always stop it when done (see Cleanup) — a forgotten preview keeps idle chrome-headless-shell workers alive that, on GPU-less hosts (WSL, containers, CI), spin a CPU core each indefinitely via software WebGL (swiftshader).
Render flags: --quality draft|standard|high · --fps 24|30|60 · --format mp4|webm · --docker (reproducible) · --strict.
Full CLI reference: references/cli.md.
Setup (one-time)
bash "$(dirname "$(find ~/.hermes/skills -path '*/hyperframes/SKILL.md' 2>/dev/null | head -1)")/scripts/setup.sh"
The script:
- Verifies Node.js >= 22 and FFmpeg are installed (prints fix instructions if not).
- Installs the
hyperframesCLI globally (npm install -g hyperframes@>=0.4.2). - Pre-caches
chrome-headless-shellvia Puppeteer — required for best-quality rendering via Chrome'sHeadlessExperimental.beginFramecapture path. - Runs
npx hyperframes doctorand reports the result.
See references/troubleshooting.md if setup fails.
Procedure
1. Plan before writing HTML
Before touching code, articulate at a high level:
- What — narrative arc, key moments, emotional beats
- Structure — compositions, tracks (video/audio/overlays), durations
- Visual identity — colors, fonts, motion character (explosive / cinematic / fluid / technical)
- Hero frame — for each scene, the moment when the most elements are simultaneously visible. This is the static layout you'll build first.
Visual Identity Gate (HARD-GATE). Before writing ANY composition HTML, a visual identity must be defined. Do NOT write compositions with default or generic colors (#333, #3b82f6, Roboto are tells that this step was skipped). Check in order:
DESIGN.mdat project root? → Use its exact colors, fonts, motion rules, and "What NOT to Do" constraints.User named a style (e.g. "Swiss Pulse", "dark and techy", "luxury brand")? → Generate a minimal
DESIGN.mdwith## Style Prompt,## Colors(3-5 hex with roles),## Typography(1-2 families),## What NOT to Do(3-5 anti-patterns).None of the above? → Ask 3 questions before writing any HTML:
- Mood? (explosive / cinematic / fluid / technical / chaotic / warm)
- Light or dark canvas?
- Any brand colors, fonts, or visual references?
Then generate a
DESIGN.mdfrom the answers. Every composition must trace its palette and typography back toDESIGN.mdor explicit user direction.
2. Scaffold
npx hyperframes init my-video --non-interactive
Templates: blank, warm-grain, play-mode, swiss-grid, vignelli, decision-tree, kinetic-type, product-promo, `n
常见问题
什么时候应当改用 manim-video?
技能建议对于带有公式的数学或几何解说,使用 manim-video。
它使用哪些工具?
基于 Node 的 HyperFrames 命令、用于动画的 GSAP,以及用于编码的 FFmpeg。
它能把网站转换为视频吗?
可以。技能描述了一条流程,可以捕捉网址并生成宣传视频。
详情
热度
- GitHub 星标
- 260k
- 排名
- #467
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。