Communitygithub.com

oliverhees/hermes-motion-pack

步驟 4 的 motion-pack。根據 STORYBOARD.md 和 STYLE.md 建立 HyperFrames 專案 — 每個 beat 一個 HTML 場景,搭配 GSAP 編排、確定性計時、真實素材,然後 lint → 草稿渲染。在 mp-storyboard 之後使用,或當使用者說「bau das」、「build」、「render」、「Szene ändern」、「HyperFrames」、「GSAP」、「animiere」時使用。

hermes-motion-pack 是什麼?

這是一個 AI Agent 技能,屬於 motion-pack 工作流程的第四步,名為 mp-build。其核心功能是將故事板(STORYBOARD.md)和風格指南(STYLE.md)轉換為可運行的 HyperFrames 專案。它會為故事板中的每個 beat 產生一個獨立的 HTML 場景,並使用 GSAP 動畫庫來編排精確的動態,確保時間完全由組合時鐘驅動,避免使用 setTimeout 或未種子化的隨機數。該技能支援 HyperFrames 平台,並透過執行初始化腳本、處理素材(如 SVG、字型)、建立共享設計系統(_ds.css)以及執行 lint 和草稿渲染來完成整個建置流程。它嚴格遵循非妥協規則,例如每個場景只能有一個主角、必須設計退出動畫、保持閒置動畫(如呼吸縮放)以避免靜止畫面超過 0.8 秒。最終產出是可供 mp-audio 或 mp-critique 後續處理的檔案。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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. 先處理素材:Logo SVG、字型(自行託管;Google Fonts 透過 fonts/ 資料夾)、螢幕截圖或 npx hyperframes capture <url>。渲染時不得使用外部 URL。
  3. 建立共享設計系統:根據 STYLE.md 建立 scenes/_ds.css(CSS 變數用於顏色、字體比例、緩動函數、安全區域)。每個場景都會匯入它。
  4. 為每個故事板 beat 編寫一個場景(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 時間軸只建立一次、暫停,並由播放器進行 seek。永遠不要在載入時播放。
  • 文字是真實文字(已載入字型),絕不柵格化。使用 font-display: block。
  • 每個場景一個主角。輔助元素在主角之後進入,更小、更暗。
  • 不使用預設緩動。使用 _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 } 並將 viewport meta 設為相同尺寸。
  • 片段(任何在一段時間內出現的內容):class="clip" data-start="<s>" data-duration="<s>" data-track-index="<n>"。相同索引的軌道不得重疊(lint 會檢測到)。
  • 時間軸:const tl = gsap.timeline({ paused: true }); ... window.__timelines["main"] = tl; tl.seek(0); — 渲染器會 seek,絕不播放。
  • GSAP 由脚手架載入(來自 jsDelivr 的 [email protected]);字型、圖片、音訊必須是 assets/ / fonts/ / audio/ 下的本地檔案。
  • 場景 = 每個 beat 在軌道 0 上的一個 .clip 包裝器(data-start = beat 開始時間,data-duration = beat 長度),內部包含其自己的元素;在主時間軸上以絕對時間動畫化它們。將每個 beat 的標記放在有清楚註解的部分(或放在 scenes/sNN-*.html 片段中,由 scripts/assemble.sh 串接到 index.html)。巢狀的 data-composition-id 區塊和目錄區塊:遵循已安裝的 HyperFrames 技能。

場景區段骨架

<!-- ===== s02 · 2.5–6.0 秒 · 畫布出現,第一筆畫出 ===== -->
<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>
// 在主時間軸中,絕對時間 = beat 開始時間 + 偏移
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。評論:標準。最終:--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.

相關技能