Communitygithub.com

phamthanhnghia/remotion-agent-skills

以程式設計方式建立 Remotion 影片的代理技能套件,基於 HyperFrames 模式。

remotion-agent-skills 是什麼?

這個技能套件提供了一個完整的工作流程,用於將舊版或現有的 HyperFrames HTML 編排轉換為純 React Remotion 程式碼。它透過一個清晰的對照表,將 GSAP Timeline、clip 元素、影音元素等 HyperFrames 概念,對應到 Remotion 的 `useCurrentFrame()`、`spring()`、`Sequence` 等核心 API。使用者可以按照三個步驟進行遷移:先解析 HyperFrames 的 HTML 結構與時間軸數值,然後將場景版面重建為 React `<AbsoluteFill>` 元件,最後以 Remotion 的 frame 確定性基本元件取代 GSAP 插值動畫。本技能支援 Remotion 平台,能有效幫助開發者將現有的 HyperFrames 專案無縫遷移到 Remotion,並在 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 Timeline .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. 以 frame 確定性的 Remotion spring() 與 interpolate() 基本元件取代 GSAP 插值動畫。
  4. 在 Remotion Studio 中驗證輸出結果。

Individual skills in this repo

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

相關技能