Communitygithub.com

Army161/OpenMontage

HyperFrames CLI 개발 루프입니다. npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, remove-background 명령어 실행 시 또는 HyperFrames 빌드/렌더 환경 문제 해결 시 사용하세요. AWS Lambda 클라우드 렌더링(`hyperframes lambda deploy / render / progress / destroy / policies`)의 진입점입니다.

OpenMontage란 무엇인가요?

Army161/OpenMontage 스킬은 HyperFrames CLI의 포괄적인 개발 루프를 제공하는 AI 에이전트용 도구입니다. 이 스킬은 npx hyperframes 명령어를 통해 비디오 프로젝트를 스캐폴딩, 작성, 린트, 검증, 미리보기 및 렌더링하는 전체 워크플로우를 안내합니다. 주요 기능으로는 프로젝트 초기화, HTML 컴포지션 작성, 정적 분석(lint, validate, inspect), 타임라인 편집기 Studio를 통한 미리보기, 로컬 및 AWS Lambda 기반 클라우드 렌더링 지원 등이 있습니다. 이 스킬은 특히 AI 에이전트를 염두에 두고 설계되어 --json 플래그를 통한 기계 판독 가능 출력, TTY 감지를 통한 비대화형 모드 자동 전환, CI/CD 파이프라인에 최적화된 --strict 플래그를 제공합니다. 사용자는 lint, validate, inspect를 먼저 실행한 후 미리보기로 전환하며, 사용자 승인 후에만 렌더링이 진행되는 '사용자 게이트' 원칙을 따릅니다. 또한 서브-컴포지션을 사용하는 프로젝트에서는 snapshot 명령어로 시각적 스모크 테스트를 수행하여 정적 분석이 놓칠 수 있는 크로스 파일 마운트 오류를 조기에 발견할 수 있습니다. 이 스킬은 Cursor, Claude Code, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Army161/OpenMontage/tree/HEAD/.agents/skills/hyperframes-cli

즐겨 사용하는 AI에게 물어보기

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

문서

HyperFrames CLI

모든 작업은 프로젝트 지침에서 로컬 래퍼를 지정하지 않는 한 npx hyperframes를 통해 실행됩니다. 로컬 래퍼가 있다면 이를 정확히 따라야 합니다. Node.js >= 22 및 FFmpeg가 필요합니다.

워크플로우

  1. 스캐폴딩 — npx hyperframes init my-video (또는 URL에서 capture). init은 설치된 스킬을 GitHub의 최신 버전과 비교하여 구버전이 있으면 전역 스킬 세트를 업데이트합니다. --skip-skills 플래그는 현재 무력화되어 있으며(임시, skills.sh 레지스트리가 따라잡을 때까지), 따라서 모든 init이 이 검사를 실행하고 최신 스킬을 항상 가져옵니다.
  2. 작성 — HTML 컴포지션 작성 (hyperframes-core 스킬 참조)
  3. 린트 — npx hyperframes lint
  4. 검증 — npx hyperframes validate (런타임 오류 + 대비)
  5. 시각적 검사 — npx hyperframes inspect
  6. 미리보기 — npx hyperframes preview는 Studio(타임라인 편집기)를 엽니다. 사용자는 여기서 비디오를 볼 뿐만 아니라 어떤 항목이든 수동으로 편집할 수 있습니다. 여기서 검토한 후 렌더링하기 전에 사용자에게 물어보세요.
  7. 렌더링 — 변형 선택:
    • 반복: npx hyperframes render --quality draft
    • 최종 제출: npx hyperframes render --quality high --output out.mp4
    • CI / 교차 호스트 재현: npx hyperframes render --docker --strict --output out.mp4
    • 클라우드 (긴/대용량): npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (아래 Lambda 참조)

미리보기 전에 lint, validate, inspect를 실행하세요. lint는 누락된 data-composition-id, 겹치는 트랙, 등록되지 않은 타임라인을 잡아냅니다. validate는 헤드리스 Chrome에서 컴포지션을 로드하여 런타임 콘솔 오류와 WCAG 대비 문제를 보고합니다. inspect는 타임라인을 탐색하며 버블/컨테이너 밖으로 또는 캔버스 밖으로 넘치는 텍스트를 보고합니다. 또한 *.motion.json 사이드카 파일이 있는 경우, 동일하게 탐색된 타임라인을 기준으로 모션 의도(탐색 시 입장 트리거, 스태거 순서, 프레임 내 존재, 활성 상태)를 검증합니다.

모션 작업이 많은 경우, 스냅샷 기반 반복과 *.motion.json 사이드카 사용을 선호하세요. 규율 및 모션 검증 사양은 references/lint-validate-inspect.md를 참조하세요.

에이전트 규칙

모든 명령어에 적용되는 횡단 규칙:

  • --json은 render, preview, play를 제외한 모든 명령어에서 사용 가능합니다. 지원되는 명령어의 에이전트/CI 호출에 사용하세요. 출력에는 _meta 봉투(CLI 버전, 최신 버전, 업데이트 조언)가 포함됩니다. render는 stdout과 종료 코드로만 상태를 보고합니다. 아래 사후 렌더링 검사로 성공을 확인하세요. preview/play는 서버이므로 JSON이 없습니다.
  • doctor --json은 환경이 손상된 경우에도 항상 0으로 종료됩니다. 페이로드의 ok 필드로 판단하세요: npx hyperframes doctor --json | jq -e '.ok' > /dev/null. 이는 파이프라인이 CLI 릴리스 변경으로부터 격리되도록 합니다.
  • 비-TTY 모드는 자동 감지됩니다. stdout이 TTY가 아닌 경우(CI, 에이전트, 파이프 출력) CLI가 자동으로 비대화형 모드로 전환됩니다. init은 이때 --example이 필요합니다. TTY에서도 이 모드를 강제하려면 --non-interactive를 전달하세요.
  • CI 게이팅(렌더링): --strict는 린트 오류 시 실패, --strict-all은 경고도 실패, --strict-variables는 선언되지 않은 --variables 키에 대해 실패합니다.
  • --json의 경로는 수정 처리됩니다. — $HOME이 리터럴 $HOME이 되어 버그 보고서나 에이전트 컨텍스트에 붙여넣어도 안전합니다.
  • 렌더링은 사용자 게이트입니다. 검사 통과 후 자동으로 렌더링하지 마세요. preview에서 멈추고, 비디오가 Studio에서 편집 가능하다고 사용자에게 알린 후, 사용자가 승인할 때만 렌더링하세요.
  • 사후 렌더링 검증. render가 종료 코드 0을 반환한 후, 출력 파일이 존재하고 적절한 크기인지 확인한 후에만 성공을 보고하세요: [ -s "$OUTPUT" ] || echo "렌더 출력물이 없습니다". CLI는 성공 시 ◇ <path>를 출력합니다. 긴 렌더링의 경우 ffprobe -i "$OUTPUT" -show_format -v error로 재생 시간을 확인하는 것도 좋습니다.

라우팅

원하는 작업참고 자료
프로젝트 스캐폴딩 (init, capture, skills)references/init-and-scaffold.md
정확성 확인 (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
미리보기 또는 렌더링 (preview, play, render, publish)references/preview-render.md
환경 진단 (doctor, browser)references/doctor-browser.md
AWS Lambda 클라우드 렌더링 (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
기타 (info, upgrade, compositions, docs, benchmark, telemetry, 에셋 전처리)references/upgrade-info-misc.md

스킬 간 핸드오프

  • Tailwind 프로젝트 (init --tailwind) → 클래스나 테마 토큰을 수정하기 전에 hyperframes-core(Tailwind 참조)를 사용하세요.
  • 레지스트리 블록/컴포넌트 (hyperframes add, hyperframes catalog) → 설치 경로, 서브 컴포지션 연결, 스니펫 병합을 위해 hyperframes-registry를 사용하세요.
  • 에셋 전처리 (tts, transcribe, remove-background) → 음성 선택, Whisper 모델 규칙, 캡션, TTS-캡션 체인을 위해 hyperframes-media를 사용하세요.
  • 매개변수화된 렌더링 (--variables) → <html>의 data-composition-variables로 선언합니다. 전체 스키마는 hyperframes-core를 참조하세요.

Lambda (클라우드 렌더링)

hyperframes lambda는 분산 렌더링을 AWS Lambda에 배포하고 노트북이나 CI에서 렌더링을 실행합니다. 전체 과정은 세 가지 명령어입니다:

npx hyperframes lambda deploy                                             # SAM 스택 프로비저닝 (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # 제거 (S3 버킷은 유지됨)

렌더링이 단일 호스트에서 너무 길거나 큰 경우(수분 비디오, 4K, 대규모 병렬 배치) AWS 자격 증명이 설정되어 있으면 Lambda를 사용하세요. 개발 루프 반복의 경우 로컬 render를 계속 사용하세요.

필수 조건, 6가지 하위 명령어(deploy, sites create, render, progress, destroy, policies), IAM 정책 검증, 상태 파일, 비용/정리 규칙은 references/lambda.md를 참조하세요.

최소 완료 게이트

정적 게이트

npx hyperframes lint
npx hyperframes validate

레이아웃에 민감한 작업에는 inspect를 추가하고, CI에서 린트 오류 시 실패하려면 render --strict를 추가하세요.

시각적 스모크 테스트 — 프로젝트가 서브-컴포지션을 사용하는 경우 필수

lint / validate / inspect는 각 컴포지션을 격리된 상태에서 평가합니다. index.html을 로드하고 data-composition-src를 통해 서브-컴포지션을 마운트하지 않으므로, 파일 간 마운트 실패를 잡을 수 없습니다(hyperframes-core → references/sub-compositions.md, "일반적인 함정" 참조). 이를 잡을 수 있는 유일한 게이트는 실제로 index.html을 로드하고 타임라인을 탐색하는 게이트입니다.

hyperframes snapshot을 사용하세요. 이는 render와 동일한 방식으로 프로젝트를 로드하므로(동일한 마운트 경로를 사용) 전체 렌더링 대신 초 단위로 요청한 타임스탬프만 캡처합니다:

# 각 서브-컴포지션의 중간 지점에서 프레임 하나를 캡처합니다.
# 중간 지점 = index.html의 각 호스트 슬롯에 대해 data-start + data-duration/2 입니다.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# 또는 장면별 타겟팅이 필요 없다면 균등 간격 샘플:
npx hyperframes snapshot --frames 9

출력은 snapshots/frame-NN-at-Xs.png에 저장됩니다. 각 프레임을 장면 계획과 비교하여 육안으로 확인하세요.

프레임별 위험 신호 (각각 정적 게이트가 놓치는 특정 실패 모드를 나타냄):

보이는 현상근본 원인
텍스트가 왼쪽 상단에 아주 작고 스타일 없이 나타남<style> 블록이 <template> 외부의 <head>에 남아 있음 (함정 1) — CSS가 라이브 DOM에 도달하지 못함
SVG/아이콘 요소가 캔버스 크기로 확대됨위와 동일 — 너비/높이 제약이 적용되지 않음
장면의 핵심 요소가 완전히 누락되고 배경 + 워터마크만 보임호스트 ID ≠ 템플릿 ID (함정 2) — 타임라인이 실행되지 않아 초기 상태의 프레임이 캡처됨
스냅샷 명령어 로그에 서브-컴포지션 타임라인이 45000ms 후에도 등록되지 않음함정 2 — 직접적인 확인

snapshots/는 육안 확인 후 삭제할 수 있습니다. 최종 사용자용 렌더링은 npx hyperframes render로 별도 실행됩니다.

Individual skills in this repo

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

Army161/OpenMontage

Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax). Supports two gateways: HeyGen API and fal.ai API.

Army161/OpenMontage

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Army161/OpenMontage

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Army161/OpenMontage

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Army161/OpenMontage

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Army161/OpenMontage

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Army161/OpenMontage

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Army161/OpenMontage

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Army161/OpenMontage

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Army161/OpenMontage

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Army161/OpenMontage

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Army161/OpenMontage

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Army161/OpenMontage

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Army161/OpenMontage

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Army161/OpenMontage

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Army161/OpenMontage

Best practices for Remotion - Video creation in React

Army161/OpenMontage

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

Army161/OpenMontage

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

Army161/OpenMontage

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

Army161/OpenMontage

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

관련 스킬