HyperFrames 主控技能(Logan 默认)
仓库: https://github.com/heygen-com/hyperframes
文档索引: https://hyperframes.heygen.com/llms.txt
CLI 文档: npx hyperframes docs <主题>
当用户需要视频 / 动效 / 字幕 / 动态产品故事时,默认使用 HyperFrames,除非用户明确指定其他堆栈。
始终从这里开始
- 在编写合成之前,先调用相关的 HyperFrames 技能。
- 路由技能:
hyperframes- 能力映射 + 选择哪个工作流。 - 仅凭通用 Web 知识,切勿自行编造 data-* 语义。
工作流路由
| 意图 | 工作流技能 |
|---|---|
| 产品 URL / SaaS 宣传 | product-launch-video |
| 从 URL 生成网站导览 | website-to-video |
| 纯文本主题,无网站 | faceless-explainer |
| 在讲话人视频上叠加字幕 | embedded-captions |
| 在讲话人视频上叠加图形遮罩 | talking-head-recut |
| GitHub PR 解说 | pr-to-video |
| 短动态图形 | motion-graphics |
| 音乐驱动 | music-to-video |
| 幻灯片 / 演示文稿 | slideshow |
| 自定义 / 回退 | general-video |
| Remotion → HyperFrames | remotion-to-hyperframes |
领域技能:hyperframes-core、hyperframes-animation、hyperframes-keyframes、hyperframes-creative、hyperframes-cli、hyperframes-media、media-use、hyperframes-registry、figma、gsap。
命令
npm run dev # 预览服务器 - 长时间运行,仅后台
npm run check # 代码检查 + 运行时 + 布局 + 动效 + 对比度
npm run render # 输出 MP4
npm run publish # 分享链接
npx hyperframes lint --verbose
npx hyperframes docs <主题>
npx hyperframes skills update # 当技能缺失或过时时刷新
关键合成规则
- 时间元素:
data-start、data-duration、data-track-index - 时间元素必须包含
class="clip" - GSAP 时间轴必须暂停并注册:
window.__timelines = window.__timelines || {}; window.__timelines["合成-id"] = gsap.timeline({ paused: true }); - 视频:需要时使用
muted视频 + 独立的<audio> - 子合成:
data-composition-src="compositions/file.html" - 仅确定性渲染 - 渲染路径中禁止使用
Date.now()、Math.random()、网络请求
编辑后
在声明完成之前,始终运行 npm run check。修复错误;审查警告。
堆栈搭配(Yuval / YUV.AI 默认)
- 运动视频优先使用 HyperFrames + GSAP
- 产品 UI 使用 React/Next - 但当交付物是视频时,仍通过 HyperFrames 工作流导出动效
- 除非用户特别要求,否则使用 html-to-canvas / HyperFrames 渲染管线而非临时的 ffmpeg 幻灯片