Communitygithub.com

phamthanhnghia/remotion-agent-skills

用于程序化 Remotion 视频创建的智能体技能套件,基于 HyperFrames 模式构建。

remotion-agent-skills 是什么?

该技能套件提供了一套用于将基于 HyperFrames 的 HTML 视频模板迁移到纯 React Remotion 代码的完整工作流。它通过一个概念映射表,详细说明了如何将 HyperFrames 中的 GSAP 时间线、剪辑片段和媒体元素等概念,转换为 Remotion 中对应的 `useCurrentFrame()`、`spring()`、`interpolate()`、`<Sequence>` 和 `<OffthreadVideo>` 等 React 组件和函数。该技能对于希望利用 Remotion 的确定性渲染、React 组件化和高度可编程性的视频制作团队尤为有用。它支持在 Remotion Studio 中直接验证输出,并指导开发者逐步完成解析、重建场景、替换插值和验证的完整迁移流程。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add phamthanhnghia/remotion-agent-skills

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

HyperFrames 到 Remotion 迁移工作流

将遗留或现有的 HyperFrames HTML 组合迁移到纯 React Remotion 代码。

概念映射表

HyperFrames 概念Remotion 等价概念
GSAP 时间轴 .to() / .from()useCurrentFrame() + spring() / interpolate()
<div class="clip" data-start data-end><Sequence from={start} durationInFrames={duration}>
<video> 元素<OffthreadVideo src={staticFile('...')} />
<audio> 元素<Audio src={staticFile('...')} />
npx hyperframes rendernpx remotion render src/index.ts MyComp out/video.mp4

迁移步骤

  1. 解析 HyperFrames HTML 结构和时间线值。
  2. 将场景布局重新创建为 React <AbsoluteFill> 组件。
  3. 将 GSAP 插值替换为基于帧的确定性 Remotion spring() 和 interpolate() 原语。
  4. 在 Remotion Studio 中验证输出。

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相关技能