Communitygithub.com

vijayahnlu/reels

HyperFrames 컴포지션 계약 — 렌더링 가능한 프로젝트 하나를 구축합니다. 컴포지션 구조, `data-*` 타이밍 속성, `class="clip"`, 트랙, 서브 컴포지션, 변수, 프레임워크 소유 미디어 재생, 결정적 렌더 규칙, 유효성 검사에 사용합니다. 컴포지션 HTML을 작성하기 전에 읽어야 합니다.

reels란 무엇인가요?

이 스킬은 HyperFrames 프레임워크의 핵심 컴포지션 계약을 정의합니다. 개발자는 이 가이드를 따라 HTML 기반의 비디오 컴포지션을 구축할 수 있으며, 여기에는 `data-*` 속성을 통한 타이밍 선언, GSAP 애니메이션, 미디어 재생, 서브 컴포지션, 결정적 렌더링 규칙이 포함됩니다. Claude Code, Cursor, Codex와 같은 AI 코딩 도구에서 사용할 수 있으며, 컴포지션 구조 설계, 트랙 및 클립 구성, 미디어 변수 설정, 린트 규칙 준수, 유효성 검사 명령 실행을 지원합니다. 이 스킬은 HyperFrames의 다른 스킬(`hyperframes-animation`, `hyperframes-creative`, `hyperframes-cli` 등)과 함께 사용되어 완전한 비디오 제작 워크플로우를 제공합니다. 특히 중요한 것은 결정적 렌더링을 위한 규칙(예: `Math.random` 사용 금지, 클립 가시성 제어)과 일반적인 함정(GSAP과 CSS transform 충돌, 미디어 `crossorigin` 설정 오류 등)을 사전에 방지하는 방법을 상세히 설명한다는 점입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vijayahnlu/reels/tree/HEAD/.claude/skills/hyperframes-core

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

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

문서

플러그인 설치: 설정 또는 freshness 명령 전에, 이 스킬이 HyperFrames 플러그인 내부에 있을 경우 플러그인 설치 규칙을 따릅니다. 독립형 설치는 아래 업데이트 지침을 유지합니다.

HyperFrames 코어

에이전트 주의사항 (먼저 읽으세요):

  • flex/inset으로 중앙 정렬하고, 이후 GSAP x/y를 적용할 노드에 CSS transform: translate(-50%,-50%)을 사용하지 마세요. 린트: gsap_css_transform_conflict. fromTo 또는 xPercent/yPercent를 사용하세요.
  • 장면 종료 시 tl.set(..., {visibility:"hidden"})를 추가하지 마세요. 런타임은 이미 시간 제한 클립을 숨깁니다. 내부 노드의 불투명도 페이드(또는 .clip의 opacity)로 충분합니다. 캡션 하드킬은 별도 규칙입니다.
  • window.__timelines["id"]는 루트 data-composition-id와 일치해야 합니다.
  • render 후, 요약의 두 번째 줄(beginframe vs screenshot, GPU 모드, 스테이지 타이밍)을 읽으세요. Linux에서 screenshot + software gpu는 느린 경로입니다.

HyperFrames는 HTML에서 비디오를 렌더링합니다. 컴포지션은 DOM이 data-* 속성으로 타이밍을 선언하고, 애니메이션 런타임이 탐색 가능하며, 미디어 재생이 프레임워크에 의해 소유되는 HTML 파일입니다.

이 스킬은 기술 계약입니다 — 하나의 hyperframes 프로젝트를 구축하는 방법입니다. 아래 본문은 빌드 가이드이며, 주제별 세부 사항은 references/에 있습니다(색인은 다음). 필요할 때 읽으세요. 프로세스 문서(브리프, 스토리보드, 리뷰, 프로덕션, 디스패치, 프레임 워커)는 /hyperframes → references/에 있습니다. 다른 문제는 형제 도메인 스킬(hyperframes-animation, hyperframes-creative, media-use, hyperframes-cli, hyperframes-registry)에 있습니다. /hyperframes의 기능 맵은 각 스킬이 다루는 내용을 설명합니다.

참조

파일읽을 때
references/minimal-composition.md가장 작은 렌더링 가능한 컴포지션 골격부터 시작하려면
references/composition-patterns.md모놀리식 vs 모듈식 선택; 모듈식 index.html 구성; 서브 컴포지션 아키타입 선택
references/data-attributes.md모든 data-*(루트 / 클립 / 서브 컴포지션 호스트 / 레거시 별칭) 조회; class="clip" 사용
references/tracks-and-clips.mddata-track-index가 제어하는 것(그리고 제어하지 않는 것), z-index, 다른 클립에 상대적인 클립 시간 이해; npx hyperframes timeline으로 모든 트랙과 클립 나열
references/creator-editing-recipes.md정확한 컷/트림/재정렬/재시간/프리즈/카메라/마스크/크로스페이드/오디오 편집 레시피와 그 한계 복사
references/sub-compositions.md서브 컴포지션 연결(호스트 속성, <template>, 인스턴스별 변수) 및 내부 애니메이션
references/variables-and-media.md변수 선언; <video>/<audio> 배치, 볼륨 설정, 트림
references/determinism-rules.md탐색 가능한 타임라인 구축; 결정론 금지; 레이아웃 / 텍스트 맞춤
references/full-screen-motion.md공유 배경으로 전체 프레임 모션 작성
references/tailwind.mdTailwind v4 프로젝트에서 작업(init --tailwind; 런타임 계약은 Studio의 v3와 다름)

애니메이션 런타임 세부 사항(GSAP API, Lottie, Three.js 등)은 hyperframes-animation → adapters/<runtime>.md로 이동하세요.

컴포지션 구축

두 가지 루트 형태 (상호 교환 불가)

  • 독립형(최상위 index.html): 루트 <div data-composition-id="…">가 <body>에 직접 위치, <template> 래퍼 없음. 독립형 루트를 래핑하면 모든 콘텐츠가 숨겨지고 lint가 거부합니다(standalone_composition_wrapped_in_template, 오류).
  • 서브 컴포지션(data-composition-src로 로드): 루트를 <template>으로 래핑합니다. 이것이 작성할 형태입니다. 로더는 일반 전체 문서도 허용하고 <body>로 폴백하지만, 예제와 도구는 템플릿 형식을 가정합니다.

⚠ 전송 규칙: 템플릿화된 서브 컴포지션의 경우 어셈블러는 파일 자체의 <head> <style>/<script>를 삭제하므로(packages/core/src/compiler/compositionAssembly.ts, hasTemplate 게이트), <style>/<script>를 템플릿 내부에 넣으세요. <link>는 어떤 경우든 호이스트됩니다. ⚠ 호스트 ID 규칙: 호스트 슬롯, 내부 템플릿, window.__timelines["<id>"] 키에 동일한 ID를 부여하세요. 다른 로컬 ID도 지원되지만(어셈블러가 파일의 첫 번째 루트로 폴백), 불일치는 조용히 넘어가므로 특별한 이유가 없다면 일치시키세요.

파일 모양, 호스트 배선, 사전 렌더링 체크리스트 → references/sub-compositions.md.

루트는 크기가 지정되어야 함 (무음 레이아웃 버그)

독립형 루트는 width/height: 100%를 사용합니다. 캔버스 크기는 data-width/data-height입니다. 런타임은 해당 픽셀을 컴포지션 루트에 적용합니다. #root에 1920px/1080px를 하드코딩하지 마세요. 골격 → references/minimal-composition.md.

하나의 일시 중지된 타임라인

각 컴포지션은 window.__timelines["<id>"]에 정확히 하나의 gsap.timeline({ paused: true })를 등록합니다(키 = 루트 data-composition-id). 비동기 콜백(document.fonts.ready) 내부에서 빌드하는 것도 지원됩니다. 중요한 것은 빌드 완료 후에만 등록하는 것입니다. 렌더링 길이는 루트의 data-duration이며, 타임라인 길이가 아닙니다. 타임라인이 더 길면 잘리고, 더 짧으면 마지막 프레임을 유지합니다. 루트 data-duration을 생략하면 길이가 추론됩니다(타임라인, 미디어 윈도우 또는 어댑터). window.__timelines = window.__timelines || {}는 필요하지 않습니다. 런타임이 인라인 스크립트 실행 전에 레지스트리를 생성하며, lint는 더 이상 요구하지 않습니다. 서브 타임라인을 호스트에 수동으로 중첩하지 마세요. 런타임이 등록된 하위 타임라인을 자동으로 중첩합니다. 전체 계약(GSAP 외 런타임 포함) → references/determinism-rules.md + hyperframes-animation/adapters/.

첫 번째 패스 린트 함정 (보장된 첫 빌드 실패)

lint가 실제로 잡아내지만, 사후에만 잡아내는 규칙입니다. 처음부터 올바르게 작성하세요:

  • CSS 초기 transform과 동일한 속성에 대한 GSAP 트윈을 절대 쌍으로 사용하지 마세요. CSS 값과 트윈의 시작값이 충돌하여 lint가 gsap_css_transform_conflict로 거부합니다. CSS transform: translateX(-40px) 대신 gsap.fromTo(el, { x: -40 }, { x: 0 })를 사용하여 트윈 내부에서 초기 상태를 설정하세요.
  • <video>/<audio>에 crossorigin을 절대 넣지 마세요. lint는 media_crossorigin_breaks_preview(오류)로 무조건 거부합니다. 캔버스/WebGL/WebAudio 읽기 포함. 억제 방법이 없습니다.
  • data-start가 있는 <video>에 data-start도 있는 조상을 절대 부여하지 마세요. lint는 video_nested_in_timed_element(오류)로 거부합니다. 래퍼 또는 비디오 중 하나에만 타이밍을 설정하세요. 둘 다 하지 마세요.
  • 모든 <audio>에는 id가 필요합니다. lint는 media_missing_id로 거부하며, ID가 없는 <audio>는 믹서에서 절대 선택되지 않으므로 렌더링이 무음입니다.
  • .clip을 autoAlpha 또는 visibility로 트윈하지 마세요. lint는 gsap_animates_clip_element로 거부합니다. 대신 하위 요소를 애니메이션하세요.
  • 명명된 CSS font-family는 제공된 로컬 파일에 대한 @font-face가 파일 내에 있어야 합니다. 그렇지 않으면 lint가 font_family_without_font_face를 발생시킵니다.
  • 서브 컴포지션 #root는 width/height: 100%(또는 inset: 0)를 사용하고, 하드코딩된 1920px/1080px를 사용하지 마세요. 캔버스 크기는 data-width/data-height입니다.

린트 오류는 레이아웃 및 대비 감사도 비활성화합니다. check는 0 sample(s) 및 0/0 text checks를 보고하는데, 이는 깨끗한 파일처럼 보이지만 아무것도 실행되지 않았음을 의미합니다. 해당 숫자를 신뢰하기 전에 린트 오류를 해결하세요.

불가침 규칙 (자동 게이트가 놓칠 수 있는 무음 버그)

여기에 표시되며, 전체 근거는 링크된 참조에 있습니다. 위반하지 마세요:

  • 렌더링 시간 시계 / 시드되지 않은 Math.random / 네트워크 / 입력 상태 없음; repeat: -1은 유한한 루트 data-duration 하에서만 허용(클립을 내보내기 위해 사용하세요. 그렇지 않으면 유한 횟수 사용). → determinism-rules.md
  • .clip 요소에서 display, visibility 또는 autoAlpha를 절대 트윈하지 마세요. 프레임워크가 클립 가시성을 소유하며, lint가 거부합니다(gsap_animates_clip_element). 대신 하위 요소를 애니메이션하세요. → determinism-rules.md
  • 본문 텍스트에 <br> 사용 금지; 변환된 요소는 블록 레벨이면서 크기가 지정되어야 함; 펄스 절대 장식 요소는 피크 여유 공간 필요. → determinism-rules.md
  • <video>/<audio>는 평면 문서 쿼리로 찾아지므로, 프레임워크는 모든 중첩 깊이에서 검색 및 디코딩합니다(서브 컴포지션 <template> 또는 래퍼 내부 포함). 하나의 하드 제한: data-start가 있는 <video>가 data-start도 있는 다른 일반 요소 내부에 있으면 lint가 오류를 발생시키며, 실패는 실제입니다(잘못된 소스 프레임, 그런 다음 클립이 슬롯 중간에 사라짐). 따라서 타이밍을 래퍼나 비디오 중 하나에만 설정하고 둘 다에는 설정하지 마세요. 서브 컴포지션 호스트는 예외입니다. 서브 컴포지션 내부의 미디어는 올바르게 렌더링됩니다. 다른 주의 사항은 배치가 아닌 타임라인에 관한 것입니다. 서브 컴포지션 타임라인은 호스트 루트 요소를 애니메이션할 수 없습니다. → variables-and-media.md
  • 조립된 페이지 전체에서 모든 id를 고유하게 유지하세요(서브 컴포지션 ID를 컴포지션 ID로 접두사, #<id>-hero) 그래야 #id CSS 및 getElementById 호출이 확인됩니다. 프레임 주입은 더 이상 이에 의존하지 않습니다. 컴파일러는 모든 video[src]/audio[src]/img[src]에 문서 고유의 data-hf-render-id를 적용합니다. src 속성 대신 <source> 자식을 사용하는 미디어는 스탬프가 찍히지 않으므로 고유 ID가 여전히 중요합니다. → composition-patterns.md
  • 컴포지션 루트의 전체 화면 채움은 일반 렌더링에서는 괜찮습니다. 레이어드 컴포지트 경로(HDR 콘텐츠 또는 셰이더 전환을 사용하는 컴포지션)에서만 삭제되며, 엔진은 모든 컴포지션 루트를 투명하게 강제하여 아래 레이어가 보이도록 합니다. 컴포지션이 셰이더 전환이나 HDR 미디어를 사용하는 경우, 전체 블리드 하위 요소(position:absolute; inset:0)에 채움을 넣으세요. → composition-patterns.md

기존 컴포지션 편집

  • 먼저 파일을 읽으세요. 관련 없는 타이밍, 트랙, ID, 변수, 미디어 경로를 보존하세요.
  • 프로젝트 타임라인에 무엇이 있는지(트랙, 클립, 시작, 종료, 재생 내용) 확인하려면 모든 index.html 및 서브 컴포지션 파일을 읽는 대신 npx hyperframes timeline [--json]을 실행하세요.
  • 기존 컴포지션 ID 및 타임라인 키와 일치시키세요.
  • 클립 추가: 주변 클립과 의도적으로 data-start/data-duration을 설정하세요. data-track-index는 Studio 표시 레인일 뿐, 타이밍 제약이 아니므로 비어 있을 필요가 없습니다.
  • 루트 data-duration을 초과하여 끝나는 클립은 잘립니다. 동일한 편집에서 루트 data-duration을 클립 끝까지 확장하세요(lint는 clip_ends_past_root_duration 경고).
  • 모든 컴포지션 요소의 data-hidden은 미리보기와 렌더링 모두에서 해당 요소를 숨기고, 시간 윈도우를 재정의합니다. 비파괴/되돌릴 수 있으며 Studio 타임라인의 눈 아이콘으로 전환됩니다.
  • 서브 컴포지션 추가: 호스트를 배선하기 전에 내부 data-composition-id를 확인하세요.

유효성 검사

명령어 세부 사항은 hyperframes-cli 사용

  • npx hyperframes check 통과 (린트, 런타임, 레이아웃, 모션, 대비에서 0개의 발견 항목)
  • 서브 컴포지션이 있는 프로젝트: npx hyperframes snapshot --at <midpoints> 실행 및 각 프레임 육안 검사
  • npx hyperframes preview --background로 리뷰 (사용자는 Studio 타임라인에서 무엇이든 편집할 수 있으며 서버는 호출 명령 이후에도 유지됨)
  • 사용자 승인 후에만 npx hyperframes render 실행

Individual skills in this repo

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

vijayahnlu/reels

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). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

vijayahnlu/reels

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

vijayahnlu/reels

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

vijayahnlu/reels

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

vijayahnlu/reels

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

vijayahnlu/reels

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

vijayahnlu/reels

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

vijayahnlu/reels

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

vijayahnlu/reels

Agent Media OS for a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

관련 스킬