Communitygithub.com

Army161/OpenMontage

既存のRemotion(React)コンポジションをHyperFrames HTMLに移植します。ユーザーが明示的にRemotionソースの移植・変換・移行を依頼した場合にのみ使用します。

OpenMontage とは?

このスキルは、Remotion(Reactベース)の動画コンポジションをHyperFrames(HTML + GSAP)形式に変換するための専用ツールです。RemotionのAPIやパターンをHyperFramesの同等機能に機械的にマッピングし、約80%の典型的なコンポジションは正確に変換できます。変換できないパターン(useState、useEffect、async calculateMetadata、サードパーティReactライブラリなど)は自動的に検出してブロックし、代わりにランタイム相互運用パターンを推奨します。逆方向(HyperFrames→Remotion)やAfter Effectsなどの非Remotionソースからの変換は対応外です。変換品質はSSIM指標で評価され、検証済みのベースラインと比較して自動テストが実行されます。このスキルは、Claude CodeやCursorなどのAIエージェント環境で動作し、Remotionプロジェクトの移行パスを決定する際の明確なガードレールを提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Army161/OpenMontage/tree/HEAD/.agents/skills/remotion-to-hyperframes

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

RemotionからHyperFramesへ

構築前にルートを確認してください。 これは既存の Remotion (React) コンポジションのソースをHyperFramesに移植するためだけに使用します。新しいコンポジションを作成する場合(Remotion動画にインスパイアされたものでも)→ 作成ワークフロー /general-video を使用してください。対応外 (一方通行、Remotion専用): 逆方向のエクスポート(HyperFrames → Remotion、または他のフレームワーク)は不可。非Remotionソース(After Effects、Framer Motion、プレーンなReact / CSS)には変換元のRemotionソースが存在しないため、/general-video で再作成してください。不明な場合、またはRemotionに軽く言及しただけの場合?最初に /hyperframes をお読みください。

概要

Remotion(Reactベース)の動画コンポジションをHyperFrames(HTML + GSAP)コンポジションに変換します。ほとんどのRemotionイディオムには直接的なHyperFramesの同等機能があり、典型的なコンポジションの約80%は機械的に変換可能です。このスキルはマッピングをコード化し、損失の大きい20%に対しては、HFのシーク駆動モデルに適合しないパターンの変換を拒否し、代わりにPR #214のランタイム相互運用パターンを推奨することで保護します。

このスキルには段階的テストコーパス(T1~T4、計4フィクスチャ)が付属しており、変換結果を測定されたSSIMしきい値と比較して評価します。評価を実行せずに変換しないでください。「正しく見える」変換でも、検証済みベースラインよりもSSIMが0.05低い場合は、暗黙のうちに誤っています。

使用するタイミング

このスキルは、ユーザーがRemotionからの移行を明示的に依頼した場合にのみ使用してください。 トリガーフレーズの例:

  • 「RemotionプロジェクトをHyperFramesに移植して」
  • 「このRemotionコードをHyperFramesに変換して」
  • 「Remotionから移行したい」
  • 「このRemotionコンポを翻訳して」
  • 「これをHyperFrames HTMLとして書き直して」

以下の場合はこのスキルを使用しないでください:

  • (a) ユーザーが新しいHyperFramesコンポジションを作成している場合(類似のRemotion動画を持っている、またはA/Bテストしている場合でも)
  • (b) ユーザーが移行を依頼せずに、Remotionに軽く言及しただけの場合
  • (c) ユーザーが変換を依頼するのではなく、参考資料としてRemotionコードを共有している場合
  • (d) ユーザーがソースの移行を明示的に依頼せずに「Remotionの動画と同じものを」と依頼した場合 — 新しいHyperFramesビルドとして扱います

サポート外(辞退 — このスキルの機能ではありません):

  • 逆方向。 HyperFramesコンポジションをRemotion(または他のフレームワーク)にエクスポートするのはワークフローではありません — 変換はRemotion → HyperFramesのみです。その旨を明確に伝えてください。
  • 非Remotionソース。 After Effectsプロジェクト(.aep)、Framer Motion / プレーンReact / CSSアニメーション、またはその他のツールのソースはRemotionコンポジションではありません — 変換元のRemotionソースが存在しません。/general-video でネイティブに再作成するか、HyperFramesで表現できない場合は辞退してください。

迷った場合は、/general-video(一般的なHyperFrames作成フロー)を使用してネイティブのHyperFramesコンポジションを作成することをデフォルトにしてください。

ワークフロー

ステップ1: ソースのリント

Remotionソースディレクトリに対して scripts/lint_source.py を実行します。リントは、クリーンに変換できないパターンを検出します:

  • ブロッカー(拒否 + 相互運用を推奨): useState、useReducer、空でない依存関係を持つ useEffect / useLayoutEffect、非同期 calculateMetadata、サードパーティReact UIライブラリ(MUI、Chakra、Mantine、antd、shadcn、Radix、NextUI)
  • 警告(該当する構文を削除して変換): @remotion/lambda 設定、delayRender、useCallback、useMemo、カスタムフック
  • 情報(注釈付きで変換): staticFile、interpolateColors

ブロッカーが発生した場合は停止してください。references/escape-hatch.md を読み、推奨メッセージを表示します。警告は変換を停止しません — ステップ3で問題のある構文を削除し、TRANSLATION_NOTES.md にギャップを記録します。@remotion/lambda 設定は標準的な警告ケースです: スキルはインポートと renderMediaOnLambda(...) 呼び出しを削除しますが、コンポジションの残りの部分は変換します。

ステップ2: 変換計画の作成

references/api-map.md — すべてのRemotion APIとそのHF相当機能、またはトピックごとのリファレンスの索引 — を読んでください。ソースで使用されているものに基づいて、必要なトピックリファレンスを特定します:

ソースに含まれるものロードするリファレンス
Composition、defaultProps、schema、calculateMetadataparameters.md
Sequence、Series、Loop、AbsoluteFill、Freezesequencing.md
useCurrentFrame、interpolate、spring、Easing、interpolateColorstiming.md
Audio、Video、Img、IFrame、staticFile、delayRendermedia.md
TransitionSeries、@remotion/transitionstransitions.md
@remotion/lottielottie.md
@remotion/google-fonts/<Family>、Font.loadFont、@font-facefonts.md

すべてをロードしないでください — 特定のソースに必要なものだけをロードします。

ステップ3: HFコンポジションの生成

index.html を以下の内容で出力します:

  • ルート <div id="stage"> に、コンポジションの data-composition-id、data-start="0"、data-duration(秒単位)、data-fps、data-width、data-height、およびスカラープロップごとに1つの data-* を付与
  • data-start / data-duration / data-track-index を持つシーンdivのフラットリスト
  • レイアウト用のインライン <style>。CSSはすべてのアニメーションプロパティの from 状態を設定
  • 下部に1つの <script> タグ。その中に1つのポーズされた gsap.timeline({paused: true}) を含む。すべてのRemotion useCurrentFrame() 派生は、このタイムライン上の適切なオフセットでのトゥイーンになります
  • window.__timelines["<composition-id>"] = tl; でタイムラインをHFランタイムに登録

カスタムReactサブコンポーネントは、プロップインターフェースをテンプレートとして使用して、インラインでHTMLとして繰り返します(インスタンスごとの data-* パターンについては parameters.md を参照)。

ステップ4: 検証

評価ハーネスを実行します — 完全なガイドは references/eval.md を参照。クイックパス:

# Remotionベースラインのレンダリング(フィクスチャでnpm installした後)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# HF変換のレンダリング
cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4

# SSIM差分
../../scripts/render_diff.sh ./remotion-src/out/baseline.mp4 ./hf.mp4 ./diff

しきい値: ソースの複雑さティアの p05 より約0.02低い値(eval.md の検証済みしきい値テーブルを参照)。差分が失敗した場合は、scripts/frame_strip.sh を実行してどのフレームが乖離したかを確認し、関連するタイミング/シーケンス/メディアリファレンスを再読してください。

重要: 両方のレンダリングで一致するピクセル形式を使用する必要があります。Remotionソースの remotion.config.ts で Config.setVideoImageFormat("png") + Config.setColorSpace("bt709") を設定してください — そうしないと、差分は変換の忠実度ではなくエンコーダーの違い(SSIMで約0.05の低下)を測定します。

ステップ5: ギャップの文書化

クリーンに変換されなかったもの(削除されたボリュームランプ、近似されたカスタムプレゼンテーション、代替されたフォント)は、HF出力の隣に TRANSLATION_NOTES.md として書き出します。形式については references/limitations.md を参照してください。

このスキルが明示的に行わないこと

  • Reactステートマシンの変換。 useState + useEffect を介してアニメーションを駆動するコンポジションは、HyperFramesのシーク駆動モデルにおける決定論的なフレームキャプチャターゲットではありません。ランタイム相互運用パターンを推奨します。
  • HyperFramesと並行したRemotionのレンダリングパイプラインの実行。 それは PR #214 のランタイム相互運用パターンです — このスキルのリントに失敗するコンポジションのための別のソリューションです。

(@remotion/lambda はブロッカーではありません — Lambda設定はデプロイメントであり、アニメーションではありません。スキルは警告としてそれを削除し、残りを変換します。references/escape-hatch.md を参照。)

自分の変換を評価する方法

テストコーパスオーケストレーターを実行します:

./assets/test-corpus/run.sh

T1、T2、T3(レンダリング + 差分)とT4(リント検証)を実行し、ティアごとの合格/不合格テーブルを表示し、集約JSONレポートを出力します。これを使用して、クリーンチェックアウトでスキルがエンドツーエンドで動作することを確認し、リファレンスを編集した後の回帰チェックとしても使用します。

検証済みベースライン(2026-04-27時点):

ティアコンポジション形状平均SSIMしきい値
T1単一要素フェードイン0.9740.95
T2マルチシーン + スプリング + オーディオ + 画像0.9850.95
T3データ駆動、カスタムサブコンポーネント、カウントアップ0.9530.90
T4エスケープハッチ(8リントケース)8/8合格n/a

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Army161/OpenMontage

Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax). Supports two gateways: HeyGen API and fal.ai API.

Army161/OpenMontage

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Army161/OpenMontage

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Army161/OpenMontage

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Army161/OpenMontage

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Army161/OpenMontage

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Army161/OpenMontage

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Army161/OpenMontage

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Army161/OpenMontage

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Army161/OpenMontage

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

Army161/OpenMontage

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Army161/OpenMontage

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Army161/OpenMontage

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Army161/OpenMontage

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Army161/OpenMontage

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Army161/OpenMontage

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Army161/OpenMontage

Best practices for Remotion - Video creation in React

Army161/OpenMontage

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

Army161/OpenMontage

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

Army161/OpenMontage

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

関連スキル