Communitygithub.com

nikisge/claude-motion-kit

HyperFrames(HTML/GSAP/SVG/Three.jsコンポジション)を用いたモーショングラフィックス映像、スタイルフレーム、アニマティックの構築・確認・レンダリング時、HyperFramesプロジェクトのセットアップ時、またはバンディング、色味不良、黒背景、フレーム欠け、モーションブラー欠落などのレンダリング問題が発生した際に使用します。

claude-motion-kit とは?

このスキルは、モーションディレクター(`motion-director`)のワークフロー(進行、スタイル、批評)と、HeyGen公式のHyperFramesスキル(技術面)を橋渡しします。`motion-director`側で進行管理を行い、HyperFramesが本来持つブリーフィングループを置き換えますが、HyperFramesの技術ルールはそのまま適用されます。プロジェクトのセットアップ方法、利用すべきHyperFramesスキルのマッピング(コア、アニメーション、キーフレーム、CLI、レジストリ)、独自コンポーネントの作成推奨、`lint` / `check` / `snapshot` による確認手順、バンディング対策としてのロスレスレンダリングと10ビットマスタリングの手順、メモリ管理の注意点、モーションブラーの適用方法、そして多数の既知の落とし穴(背景、z-index、CSSアニメーション、ランダム、キャッシュなど)を詳細に解説します。主にClaude CodeまたはHyperFrames CLI上で動作し、開発者やAIエージェントが高品質なモーショングラフィックスを効率的に制作・レンダリングできるように設計されています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nikisge/claude-motion-kit/tree/HEAD/motion-kit/skills/motion-hyperframes

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

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

ドキュメント

Motion HyperFrames: ビルドモジュール

motion-director(進行、スタイル、批評)と、HeyGen公式のHyperFramesスキル(技術)との橋渡しを行います。進行管理はmotion-directorが担当します。 HyperFramesのワークフロー(/hyperframes、product-launch-video、motion-graphics …)には独自のブリーフィングループがありますが、それらはDirectorプロセスで置き換えられます。HyperFramesの技術ルールは完全に適用されます。

セットアップ(プロジェクトごと)

claude plugin marketplace add heygen-com/hyperframes   # 公式スキル(1回のみ)
claude plugin install hyperframes@hyperframes          # 代替:プラグイン未使用の場合は npx hyperframes skills update
cd projects/<name>
export HYPERFRAMES_NO_TELEMETRY=1
npx -y hyperframes@<version> init hf --non-interactive   # バージョンを固定し、プロジェクト途中で @latest は使用しない

どのHyperFramesスキルをいつ読むか

タスクスキル
コンポジション契約: data-*、クリップ、トラック、サブコンポジション、決定論hyperframes-core(最初のHTMLの前に)
モーション、GSAP、トランジション;Three.js(adapters/three.md);モーションブラーhyperframes-animation
カメラ、ズーム、パンチイン、マッチ/ホイップ、マスク、SVG描画hyperframes-keyframes
コマンド、レンダリングオプション、トラブルシューティングhyperframes-cli
ビルディングブロックの検索hyperframes-registry

音声はHyperFrames内では作成しません:ミックスは motion-sound から作成され、最後に追加されます。

独自コンポーネントを優先

映画ごとに独自のデザインを採用し、コンポーネントは自分でビルドします(hf/components/<name>.html)。カタログ(npx hyperframes catalog --query "<動き、英語>")は宝庫です:ソースコードを読み、技術を理解し、独自のデザインに翻訳してください。カタログの見た目を1:1で決してコピーしないでください。それはまさにすべてのAIビデオが持つルックです。

確認

npx hyperframes lint                      # 素早く、各大きなステップの後に
npx hyperframes check                     # 実行時、レイアウト/オーバーフロー、コントラスト(WCAG)
npx hyperframes snapshot --at 1.2,4.0,9.5 --describe false   # フレーム画像;--describe false を付けないと有料画像モデルが呼ばれる
npx hyperframes render --quality draft --output ../renders/draft.mp4   # アニマティック、素早い

その後、motion-director/references/rules.md のチェックを行います。

レンダリング + マスタリング(バンディング対策)

通常のMP4 = 8ビット:グラデーションやグローにバンディングが発生します。そのため、ロスレスでレンダリングし、10ビット+微細グレインでマスタリングします:

npx hyperframes render --format mov --quality delivery --output ../renders/master.mov
bash scripts/master_10bit.sh ../renders/master.mov ../renders/film.mp4 0.35 ../renders/mix.wav

このスクリプトは、カラーマトリックスを補正し(BT.601(タグなし)→ BT.709)、輝度に微細な10ビットグレインを適用し、音声を追加し、透明な画像がある場合は警告します。注意:10ビットH.264はQuickTimeで再生できません(VLC、mpv、ffplay、ブラウザでは再生可能)。配信用に8ビットコピー(-pix_fmt yuv420p -crf 18)を別途作成してください。

メモリ

3D、ガラス、または大きなレイヤーを使用したレンダリングには多くのRAMが必要です。そのため:一度に1つのレンダリング、バックグラウンドでのレンダリングループは禁止、まず1フレームをレンダリングしてメモリを監視、各辺4096ピクセルを超えるレイヤーは使用禁止。

モーションブラー

方法いつ制限
レジストリビルディングブロック motion-blur(中間フレーム、シャッター角)高速な単一要素transform のみ;大きなコンテナ上では負荷が高い
エンジンモーションブラー画像全体Producer API経由のみ;シェーダートランジションでは使用不可

読み取り動作(テキスト/ページ)では決して使用せず、目が読もうとしない場所でのみ使用します。

落とし穴(測定済み、またはIssueより、2026年10月時点)

  • 背景を<body>ではなくルートの[data-composition-id]に設定:MOVでは透明、MP4では黒くなる。
  • z-index: -1 はレンダリングされない。スクリプトがランタイムロード前に作成したアニメーションは1フレームずれる可能性がある;Shadow Root / 疑似要素内のCSSアニメーションも同様。
  • サイレントフォールバックで遅いスクリーンショットキャプチャに切り替わる:レンダリングサマリーを確認すること。
  • Math.random / Date.now はlintでブロックされる:乱数は常にシードする。無限repeatは禁止。
  • 大きなCSSブラーはパフォーマンスを著しく低下させる。アセットは再ビルド後、新しいファイル名で配置する(キャッシュはパスで管理)。

Individual skills in this repo

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

nikisge/claude-motion-kit

Use when a motion graphics piece needs real 3D (product shot, metal, glass, depth of field, macro, object that transforms or assembles, camera shot list) in HyperFrames via Three.js, or when 3D models should come from Blender (Blender MCP, headless Blender, glTF/GLB export). Trigger words: 3D, Produktfilm, Metall, Glas, Tiefenunschärfe, Bokeh, Three.js, Blender, GLB.

nikisge/claude-motion-kit

Use when making or revising any motion graphics piece (launch film, explainer animation, YouTube insert, whiteboard graphic, social/vertical clip, showreel, one-shot showcase) and before writing scene code; also when a motion piece looks like slides, a website or generic AI output, or feels static or slow. Trigger words: Motion Graphics, Animation, Launchvideo, Erklärvideo, Einblendung, Showcase, Stil, \"wie ein Motion Designer\".

nikisge/claude-motion-kit

Use when a motion graphics piece needs references or inspiration (launch videos, styles, camera moves), when a reference clip should be downloaded, studied or measured, or when a render is to be compared against a reference or checked for slide/slop patterns. Trigger words: Inspo, Referenz, whatships, Launchvideo-Beispiele, Stil finden, ref_metrics, motion_check, Kontaktbogen.

nikisge/claude-motion-kit

Use when a motion graphics film, animation or video insert needs sound (music choice, sound effects, cue list, ducking, loudness master) or when sounds are added to the local sound library. Trigger words: Sound, Ton, Musik, SFX, Geräusch, Whoosh, Cue-Liste, Mischung, LUFS.

関連スキル