Communitygithub.com

hermes/motion-pack/mp-build

Construye el proyecto HyperFrames a partir de STORYBOARD.md y STYLE.md: una escena HTML por beat con coreografía GSAP, temporización determinista, activos reales, luego lint → render borrador.

¿Qué es motion-pack/mp-build?

mp-build es el corazón del Motion Pack para HyperFrames. Toma el guion gráfico (STORYBOARD.md) y el estilo (STYLE.md) y genera un proyecto completo de HyperFrames: una escena HTML por cada beat del storyboard, cada una con su propia línea de tiempo GSAP. El asistente escribe el código de las escenas usando temporización determinista (todo deriva del reloj de la composición, no de setTimeout o Date.now()), activos reales (fuentes auto-hospedadas, SVGs locales, capturas de pantalla) y transiciones diseñadas. Después de escribir, ejecuta el linter de HyperFrames y soluciona todos los errores antes de generar un borrador de render (out/draft.mp4). Es útil para desarrolladores y creadores de contenido que quieren producir animaciones web de alto rendimiento con GSAP, siguiendo reglas estrictas de calidad: una sola heroína por escena, movimientos de respiro en pausas, salidas diseñadas, y sin fotogramas congelados de más de 0.8 s. Funciona en cualquier proyecto HyperFrames y se activa con frases como "bau das", "build", "render", "Szene ändern", "HyperFrames", "GSAP" o "animiere".

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

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

mp-build – escribir escenas como código

Requisito previo: la skill oficial de HyperFrames conoce el formato de composición (data-composition-id, líneas de tiempo, pistas). Instálala una vez: hermes skills install official/creative/hyperframes, o ejecuta npx hyperframes init (instala sus skills en el proyecto). Lee esa skill para el formato de archivo; lee esta skill para saber cómo hacer que se vea premium. Si no estás seguro sobre un detalle de la API, ejecuta npx hyperframes docs o lee https://hyperframes.heygen.com/llms.txt — nunca inventes atributos.

Pasos

  1. bash <skill-dir>/scripts/init_project.sh <project-dir> <w> <h> <fps> <duration> → crea el andamiaje mediante npx hyperframes init --non-interactive, añade /scenes, /assets, /fonts, /audio, /out.
  2. Primero los activos: logo SVG, fuentes (auto-hospedadas; Google Fonts mediante la carpeta fonts/), capturas de pantalla o npx hyperframes capture <url>. Sin URLs externas en tiempo de render.
  3. Construir el sistema de diseño compartido: scenes/_ds.css a partir de STYLE.md (variables CSS para colores, escala tipográfica, easing, área segura). Cada escena lo importa.
  4. Para cada beat del storyboard escribe una escena (HTML + una línea de tiempo GSAP). Usa la lista de estados literalmente: establecer estado inicial → interpolación hasta estado final → salida. Consulta references/motion-rules.md y references/gsap-cookbook.md.
  5. Componer las escenas en la línea de tiempo maestra con las marcas de tiempo del storyboard. Transiciones desde references/transitions.md.
  6. npx hyperframes lint → corregir todos los errores. Luego npx hyperframes render --quality draft --output out/draft.mp4.
  7. Entregar a mp-audio (o directamente a mp-critique si es silencioso).

No negociables al escribir escenas

  • El tiempo es una función: todo deriva del reloj de la composición, nada de setTimeout, Date.now() o Math.random() sin semilla. Siembra la aleatoriedad con un número fijo.
  • Las líneas de tiempo GSAP se construyen una vez, se pausan y el reproductor las busca. Nunca reproducir al cargar.
  • El texto es texto real (fuentes cargadas), nunca rasterizado. font-display: block.
  • Una heroína por escena. Los elementos de apoyo entran después de la heroína, más pequeños, más tenues.
  • Sin easings por defecto. Usa los easings en _ds.css (--ease-enter: back.out(1.6) etc.).
  • Las salidas están diseñadas. Cada elemento sale antes de que entre la heroína de la siguiente escena, o la transición lo cubre.
  • Áreas seguras de STYLE.md. 9:16: nada importante en el 20 % inferior (UI de plataforma) o 10 % superior.
  • Movimiento en reposo durante las pausas: escala de respiración ±1 %, paralaje lento, cursor parpadeante — nunca un fotograma congelado > 0.8 s.
  • Mantén cada archivo de escena < 250 líneas. Los componentes compartidos van a scenes/_components.js.

Formato de composición (verificado contra el andamiaje de npx hyperframes init)

  • Raíz: <div id="root" data-composition-id="main" data-start="0" data-duration="30" data-width="1920" data-height="1080">. Establece html, body { width: 1920px; height: 1080px } y la meta viewport del mismo tamaño.
  • Clips (cualquier cosa que aparezca durante un intervalo de tiempo): class="clip" data-start="<s>" data-duration="<s>" data-track-index="<n>". Las pistas en el mismo índice no deben superponerse (el lint lo detecta).
  • Líneas de tiempo: const tl = gsap.timeline({ paused: true }); ... window.__timelines["main"] = tl; tl.seek(0); — el renderizador busca, nunca reproduce.
  • GSAP es cargado por el andamiaje ([email protected] desde jsDelivr); las fuentes, imágenes, audio deben ser archivos locales bajo assets/ / fonts/ / audio/.
  • Escenas = un envoltorio .clip por beat en la pista 0 (data-start = inicio del beat, data-duration = duración del beat) con sus propios elementos dentro; anímalos en la línea de tiempo maestra en tiempos absolutos. Mantén el marcado de cada beat en una sección claramente comentada (o en fragmentos scenes/sNN-*.html que scripts/assemble.sh concatena en index.html). Bloques data-composition-id anidados y bloques de catálogo: sigue la skill de HyperFrames instalada.

Esqueleto de sección de escena

<!-- ===== s02 · 2.5–6.0 s · aparece el lienzo, se dibuja el primer trazo ===== -->
<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>
// en la línea de tiempo maestra, tiempos absolutos = inicio del beat + desplazamiento
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); // salida diseñada

Consejos de render

  • Borrador: --quality draft. Crítica: estándar. Final: --quality high --fps 30|60.
  • Si tartamudea o falla → --workers 1. Si faltan fuentes en el render → auto-hospedar y precargar.
  • Re-renderizar solo los segundos afectados mientras iteramos (renderizar una composición de una sola escena), render completo al final.

Archivos en esta skill

  • 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.

Skills relacionados