Communitygithub.com

oliverhees/hermes-motion-pack - mp-build: 씬을 코드로 작성하기

mp-build는 STORYBOARD.md와 STYLE.md를 기반으로 HyperFrames 프로젝트를 구축합니다. 각 스토리보드 비트(beat)를 하나의 HTML 씬으로 만들고 GSAP 타임라인으로 안무하며, 확정적 타이밍과 실제 자산을 사용한 후 린트 검사를 거쳐 드래프트 렌더링을 수행합니다. mp-storyboard 이후 또는 사용자가 'bau das', 'build', 'render', 'Szene ändern', 'HyperFrames', 'GSAP', 'animiere'라고 말할 때 실행하세요.

hermes-motion-pack - mp-build: 씬을 코드로 작성하기란 무엇인가요?

mp-build는 HyperFrames 기반 모션 그래픽 프로젝트의 제작 단계를 자동화하는 AI 에이전트 스킬입니다. 이 스킬은 STORYBOARD.md(스토리보드)와 STYLE.md(스타일 가이드) 파일을 입력으로 받아 각 비트(beat)를 개별 HTML 씬(scene)으로 생성하고 GSAP 타임라인을 통해 정밀한 애니메이션을 적용합니다. 주요 특징으로는 확정적 시간 처리(타임라인 기반, setTimeout/Date.now() 사용 금지), 실제 폰트 자체 호스팅, 외부 URL 없는 에셋 관리, 디자인된 출현/퇴장 동작, 안전 영역 준수, 아이들 모션(숨쉬기 효과 등)이 있습니다. 이 스킬은 Claude Code, Cursor, Codex 등 AI 터미널 에이전트와 함께 사용되며, `hermes skills install official/creative/hyperframes`로 사전 설치된 HyperFrames 공식 스킬을 전제로 합니다. mp-build는 씬 코드 작성 후 `npx hyperframes lint`로 오류를 수정하고 `npx hyperframes render --quality draft --output out/draft.mp4`로 드래프트 렌더링한 후, 결과물을 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에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

mp-build — 씬을 코드로 작성하기(Write scenes as code)

전제 조건: 공식 HyperFrames 스킬이 구성 형식(data-composition-id, 타임라인, 트랙)을 알고 있어야 합니다. 한 번 설치하세요: hermes skills install official/creative/hyperframes 또는 npx hyperframes init 실행 (프로젝트에 스킬을 설치합니다). 파일 형식은 해당 스킬을 참조하고, 이를 프리미엄급으로 만드는 방법은 이 스킬을 참조하세요. API 세부 사항이 확실하지 않으면 npx hyperframes docs를 실행하거나 https://hyperframes.heygen.com/llms.txt를 읽으세요. 속성을 임의로 만들지 마세요.

단계(Steps)

  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, 폰트(자체 호스팅; fonts/ 폴더를 통해 Google Fonts), 스크린샷 또는 npx hyperframes capture <url>. 렌더링 시 외부 URL은 사용하지 않음.
  3. 공유 디자인 시스템 구축: scenes/_ds.css를 STYLE.md로부터 생성(CSS 변수: 색상, 글꼴 크기 척도, 이징, 안전 영역). 모든 씬에서 이 파일을 가져옴(import).
  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)로 전달합니다.

씬 작성 시 절대 규칙(Non-negotiables while writing scenes)

  • 시간은 함수입니다: 모든 것은 컴포지션 클록(composition clock)에서 파생되며, setTimeout, Date.now() 또는 시드되지 않은 Math.random()에서 파생되지 않습니다. 난수는 고정된 숫자로 시드합니다.
  • GSAP 타임라인은 한 번 빌드되고, 일시 정지(paused)된 상태로 플레이어가 탐색(seek)합니다. 로드 시 재생(play)하지 마십시오.
  • 텍스트는 실제 텍스트(폰트 로드됨)이며, 래스터화되지 않습니다. font-display: block을 사용하세요.
  • 씬당 하나의 주인공(hero)입니다. 지원 요소는 주인공 이후에, 더 작고 더 어둡게 진입합니다.
  • 기본 이징(ease)을 사용하지 마십시오. _ds.css에 정의된 이징을 사용하세요(--ease-enter: back.out(1.6) 등).
  • 퇴장은 설계되어 있습니다. 모든 요소는 다음 씬의 주인공이 진입하기 전에 떠나거나, 전환 효과가 이를 가려야 합니다.
  • STYLE.md의 안전 영역을 준수하세요. 9:16 비율: 하단 20%(플랫폼 UI)와 상단 10%에는 중요한 콘텐츠를 배치하지 마십시오.
  • 유지(hold) 구간의 아이들 모션: 숨쉬기 스케일 ±1%, 느린 시차(parallax), 깜빡이는 커서 — 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); — 렌더러는 재생하지 않고 탐색(seek)합니다.
  • GSAP은 스캐폴드에서 로드됩니다([email protected], jsDelivr에서); 폰트, 이미지, 오디오는 assets/ / fonts/ / audio/ 아래의 로컬 파일이어야 합니다.
  • 씬 = 각 비트(beat)를 트랙 0에 하나의 .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); // 설계된 퇴장

렌더링 팁(Render tips)

  • 드래프트: --quality draft. 비평: 표준. 최종: --quality high --fps 30|60.
  • 끊김이나 크래시 발생 시 → --workers 1. 렌더링 시 폰트 누락 → 자체 호스팅 및 사전 로드.
  • 반복 작업 중에는 영향을 받는 초(초)만 다시 렌더링(단일 씬 컴포지션 렌더링), 마지막에 전체 렌더링.

이 스킬의 파일(Files in this 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.

관련 스킬