Communitygithub.com

oliverhees/hermes-motion-pack: mp-build

Step 4 of motion-pack: STORYBOARD.md と STYLE.md から HyperFrames プロジェクトを構築し、各ビートを HTML + GSAP タイムラインで実装、リンター、ドラフトレンダリングを実行します。mp-storyboard の後、または「bau das」「build」「render」「Szene ändern」「HyperFrames」「GSAP」「animiere」などのユーザー入力時に使用します。

hermes-motion-pack: mp-build とは?

このスキルは HyperFrames プロジェクトにおいて、ストーリーボードの各ビートを実際のコード(HTML と GSAP タイムライン)に変換する「ビルド」フェーズを担当します。STORYBOARD.md と STYLE.md を読み取り、シェアードデザインシステム(_ds.css)を生成し、各シーンを個別の HTML ファイル+GSAP アニメーションとして書き出します。時間経過は常にコンポジションクロックに基づき、すべてのアニメーションは一度構築されポーズされた後、レンダラーがシークすることで制御されます。テキストはラスタライズせず実際のフォントとして表示し、各シーンには単一の主役要素を配置。安全領域や専用のイージング、アイドル時の微動(呼吸スケール・パララックスなど)も徹底。最終的に `npx hyperframes lint` でエラー修正後、`npx hyperframes render --quality draft` でドラフトレンダリングを行い、後続の音声・批評スキルに引き継ぎます。Claude Code / Cursor / Codex 対応。

対応~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/oliverhees/hermes-motion-pack/tree/HEAD/skills/mp-build

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

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

ドキュメント

mp-build — シーンをコードとして記述する

前提条件: 公式の HyperFrames スキルが合成フォーマット(data-composition-id、タイムライン、トラック)を認識していること。一度インストール: hermes skills install official/creative/hyperframes または npx hyperframes init を実行(プロジェクトにスキルをインストール)。ファイルフォーマットについてはそのスキルを参照し、このスキルはプレミアムに見せる方法を記述しています。 API の詳細が不明な場合は npx hyperframes docs を実行するか https://hyperframes.heygen.com/llms.txt を読んでください。属性を勝手に発明しないこと。

手順

  1. bash <skill-dir>/scripts/init_project.sh <project-dir> <w> <h> <fps> <duration> → npx hyperframes init --non-interactive でスキャフォールディングし、/scenes、/assets、/fonts、/audio、/out を追加。
  2. アセットを先に用意: ロゴ SVG、フォント(セルフホスト;Google Fonts は fonts/ フォルダ経由)、スクリーンショットまたは npx hyperframes capture <url>。レンダリング時は外部 URL を使用しない。
  3. 共有デザインシステムを構築: scenes/_ds.css を STYLE.md から生成(色、タイプスケール、イージング、安全領域の CSS 変数)。すべてのシーンがこれをインポートする。
  4. 各ストーリーボードビートに対して 1 つのシーン(HTML + GSAP タイムライン)を記述。状態リストを文字通り使用: 開始状態を設定 → 終了状態へトゥイーン → 退出。references/motion-rules.md と references/gsap-cookbook.md を参照。
  5. マスタータイムライン上でシーンをストーリーボードのタイムスタンプで合成。トランジションは references/transitions.md から。
  6. npx hyperframes lint → すべてのエラーを修正。その後 npx hyperframes render --quality draft --output out/draft.mp4。
  7. mp-audio に引き継ぐ(サイレントの場合は直接 mp-critique へ)。

シーン記述時の絶対ルール

  • 時間は関数: すべてはコンポジションクロックから導出され、setTimeout、Date.now()、シードなしの Math.random() は使用しない。乱数は固定値でシードする。
  • GSAP タイムラインは一度構築されポーズされ、プレイヤーがシークする。ロード時に再生してはならない。
  • テキストは実際のテキスト(フォント読み込み済み)、ラスタライズしない。font-display: block を使用。
  • 各シーンに 1 つの主役。サポート要素は主役の後に入場し、小さく、暗く。
  • デフォルトのイージングは使わない。_ds.css のイージングを使用(--ease-enter: back.out(1.6) など)。
  • 退出は設計されている。すべての要素は次のシーンの主役が入場する前に退出するか、トランジションでカバーされる。
  • STYLE.md の安全領域を守る。9:16: 下部 20%(プラットフォーム UI)と上部 10% には重要なものを配置しない。
  • ホールド時のアイドルモーション: 呼吸スケール ±1%、ゆっくりしたパララックス、点滅カーソル — 0.8 秒以上の静止フレームは不可。
  • 各シーンファイルは 250 行未満に保つ。共有コンポーネントは scenes/_components.js に配置。

合成フォーマット(npx hyperframes init スキャフォールドで確認済み)

  • ルート: <div id="root" data-composition-id="main" data-start="0" data-duration="30" data-width="1920" data-height="1080">。html, body { width: 1920px; height: 1080px } とビューポートメタを同じサイズに設定。
  • クリップ(一定時間表示されるもの): class="clip" data-start="<s>" data-duration="<s>" data-track-index="<n>"。同じインデックスのトラックは重なってはならない(リンターが検出)。
  • タイムライン: const tl = gsap.timeline({ paused: true }); ... window.__timelines["main"] = tl; tl.seek(0); — レンダラーはシークし、再生しない。
  • GSAP はスキャフォールドによって読み込まれる([email protected] from jsDelivr); フォント、画像、オーディオは assets/ / fonts/ / audio/ 配下のローカルファイルであること。
  • シーン = 各ビートをトラック 0 上の 1 つの .clip ラッパー(data-start = ビート開始、data-duration = ビート長)とその内部要素で表現し、マスタータイムライン上で絶対時間でアニメートする。各ビートのマークアップは明確にコメントされたセクション(または scripts/assemble.sh が index.html に結合する scenes/sNN-*.html フラグメント)に保つ。ネストされた data-composition-id ブロックとカタログブロック: インストールされた HyperFrames スキルに従う。

シーンセクションの骨格

<!-- ===== s02 · 2.5–6.0 s · キャンバスが表示、最初のストロークが描かれる ===== -->
<div class="clip scene" id="s02" data-start="2.5" data-duration="3.5" data-track-index="0">
  <div class="canvas" id="cv"></div>
  <svg class="stroke" viewBox="0 0 800 400"><path id="p1" d="M..." /></svg>
</div>
// マスタータイムライン上、絶対時間 = ビート開始 + オフセット
const len = document.getElementById('p1').getTotalLength();
gsap.set('#p1', { strokeDasharray: len, strokeDashoffset: len });
tl.fromTo('#cv', { scale: .9, opacity: 0 }, { scale: 1, opacity: 1, duration: .6, ease: 'expo.out' }, 2.5)
  .to('#p1', { strokeDashoffset: 0, duration: 1.1, ease: 'power2.inOut' }, 2.85)
  .to('#s02', { opacity: 0, y: -40, duration: .3, ease: 'power2.in' }, 5.7); // 設計された退出

レンダリングのヒント

  • ドラフト: --quality draft。批評: standard。最終: --quality high --fps 30|60。
  • スタッターやクラッシュ → --workers 1。レンダリング時にフォントが欠ける → セルフホストしてプリロード。
  • 反復中は影響を受ける秒のみ再レンダリング(単一シーンコンポジションをレンダリング)、最後にフルレンダリング。

このスキルのファイル

  • references/gsap-cookbook.md
  • references/motion-rules.md
  • references/transitions.md
  • scripts/assemble.sh
  • scripts/init_project.sh

Individual skills in this repo

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

oliverhees/hermes-motion-pack

Studio-grade motion graphics and cinematic highlight videos built as code with HyperFrames (HTML + GSAP → MP4) plus ffmpeg edits of real or AI footage. ALWAYS use for any video, spot, reel, teaser, trailer, intro, logo sting, kinetic typography, product film, social clip, highlight/recap/aftermovie/montage, "mach mir ein Video", "Motion Graphics", "Werbespot", "Reel", "Cinematic", "Animation" — even if the user does not say HyperFrames. Interviews the user first, then chains mp-brief → mp-style → mp-storyboard → (mp-footage | mp-genclip) → mp-build / mp-highlight → mp-audio → mp-critique → mp-ship with approval gates.

oliverhees/hermes-motion-pack

Step 5 of motion-pack. Produces the audio layer — voice-over via ElevenLabs (API key only from the ELEVENLABS_API_KEY environment variable), music bed, SFX on hits, sidechain ducking and two-pass loudness normalisation (voice -16 LUFS, music 12 LU under, mix -14 LUFS, true peak -1 dBTP). Use after mp-build, or when the user mentions "Stimme", "Voice-over", "Musik", "Sound", "LUFS", "zu leise", "zu laut", "ElevenLabs".

oliverhees/hermes-motion-pack

Step 1 of motion-pack. Runs a short, tap-friendly interview (max 2 rounds × 3 questions) and writes BRIEF.md for a motion graphics video — goal, audience, hook, format, length, must-show, sources, audio wishes. Use whenever a video is requested and no BRIEF.md exists yet, or the user says "Briefing", "interview me", "was brauchst du von mir".

oliverhees/hermes-motion-pack

Step 6 of motion-pack. Makes the agent look at its own render — contact sheet, phone-size sheet, 12-frame strips around fast moments, loop-seam check, determinism check — then scores 8 criteria 1–10 as a harsh motion director, lists the 3 biggest problems with timestamps, and loops back to mp-build until every score is ≥ 8. Use after any render, or when the user says "sieht mid aus", "check das Video", "Kritik", "QC", "warum wirkt das billig".

oliverhees/hermes-motion-pack

Ingests the user's own footage (clips, gameplay, events, vlogs, screen recordings) for a highlight video — makes proxies, detects scene cuts, scores every second by motion, loudness and speech, transcribes, and writes SHOTLIST.json with the best candidate moments. Use when the user hands over video files/folders, says "aus meinem Material", "Footage", "beste Momente", "Highlights rausziehen", "schneid mir das zusammen", or before mp-highlight when real footage is the basis.

oliverhees/hermes-motion-pack

Generates AI video clips (Seedance, Veo, Kling via the kie.ai MCP server) and AI still frames (gpt-image, nano-banana) as the basis for cinematic highlight videos and trailers — shot-by-shot prompts from the storyboard, consistent look via reference frames and seeds, download, registration in SHOTLIST.json. Use when the user has no footage but wants cinematic shots, says "generier mir Clips", "KI-Video", "Seedance", "Veo", "B-Roll erzeugen", or when mp-highlight needs shots that do not exist.

oliverhees/hermes-motion-pack

Cuts cinematic highlight videos, trailers/teasers and event recaps from real footage (mp-footage), AI clips (mp-genclip) or pure code — beat-synced edit plan, speed ramps, cinematic grade (teal-amber, bleach, film grain, letterbox), kinetic titles, glitch and light-leak overlays, data overlays, all composited in HyperFrames on top of an ffmpeg base cut. Use for "Highlight-Video", "Cinematic", "Trailer", "Recap", "Aftermovie", "Best-of", "Montage", "auf den Beat schneiden", "episch".

oliverhees/hermes-motion-pack

Step 7 of motion-pack. Final render in every requested format (16:9, 9:16, 1:1, 4:5, GIF/WebM), writes DELIVERY.md (files, specs, loudness, sources, unverified claims, next steps), optionally packages the finished pipeline as a reusable skill so the next video is one sentence. Use when critique is green, or the user says "export", "final", "liefern", "alle Formate", "fertig machen".

oliverhees/hermes-motion-pack

Step 3 of motion-pack. Writes STORYBOARD.md — beats with timestamps, a state list per beat (what is on screen, where, what changes), voice lines, SFX hits and transitions — from BRIEF.md and STYLE.md. Use after mp-style, or when the user asks for "Storyboard", "Beats", "Ablauf", "Szenen", "timing".

oliverhees/hermes-motion-pack

Step 2 of motion-pack. Turns BRIEF.md into STYLE.md — a reference-driven design doc with palette, typography, motion language, sound character and a forbidden list. Offers 8 built-in style presets (clean-product, editorial-brutal, neo-glass, kinetic-type, hand-drawn, cinematic-dark, data-minimal, retro-print). Use when a video needs a look, the user says "Style", "Look", "Design", "wie soll es aussehen", or after mp-brief.

関連スキル