Communitygithub.com

oliverhees/hermes-motion-pack

运动包的第4步:根据STORYBOARD.md和STYLE.md构建HyperFrames项目——将每个节拍转化为附带GSAP编排、确定性时序和真实资源的HTML场景,随后进行lint检查并生成草稿渲染。在mp-storyboard之后使用,或当用户说出“bau das”、“build”、“render”、“Szene ändern”、“HyperFrames”、“GSAP”、“animiere”时使用。

hermes-motion-pack 是什么?

mp-build技能是HyperFrames工作流程中的关键环节,负责将叙事节拍(STORYBOARD.md)和视觉风格(STYLE.md)转化为可运行的HTML场景。它通过脚本初始化项目结构,优先处理资源(SVG、字体、截图),并建立共享设计系统(_ds.css)。每个节拍对应一个独立的场景文件,包含GSAP时间线,确保动画基于确定性时序(使用组合时钟,而非随机数),并包含精心设计的入场、主体动画和出场过渡。渲染前必须通过lint检查,支持草稿、标准和高品质输出。该技能适用于Claude Code、HyperFrames官方技能环境,要求用户先安装HyperFrames基础技能。无妥协项包括:严格的时间函数(禁止setTimeout、Date.now)、GSAP时间线必须暂停并由播放器seek、文本必须真实加载字体、每场景文件不超过250行等。

兼容平台~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、字体(自托管;通过 fonts/ 文件夹使用 Google Fonts)、截图或 npx hyperframes capture <url>。渲染时不得使用外部 URL。
  3. 构建共享设计系统:从 STYLE.md 生成 scenes/_ds.css(关于颜色、字体比例、缓动函数、安全区域的 CSS 变量)。每个场景都要导入它。
  4. 为故事板中的每个节拍编写一个场景(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 设置为相同尺寸。
  • Clip(任何在时间跨度内出现的元素):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/ 下的本地文件。
  • 场景 = 每个节拍一个 .clip 包裹器,位于轨道 0 上(data-start = 节拍开始时间,data-duration = 节拍长度),内部包含自己的元素;在主时间线上以绝对时间对它们进行动画处理。将每个节拍的标记放在有清晰注释的部分(或放在 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>
// 在主时间线上,绝对时间 = 节拍开始时间 + 偏移量
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.

相关技能