Communitygithub.com

sandeshrajbhandari/hyperframes-instruct

HyperFrames 구성 계약 — 하나의 렌더링 가능 프로젝트를 빌드합니다. 구성 구조, `data-*` 타이밍 속성, `class="clip"`, 트랙, 하위 구성, 변수, 프레임워크 소유 미디어 재생, 결정론적 렌더링 규칙 및 검증에 사용됩니다. 구성 HTML을 작성하기 전에 읽으세요.

hyperframes-instruct란 무엇인가요?

이 스킬은 HyperFrames 비디오 렌더링 프레임워크의 핵심 기술 계약으로, HTML 구성을 올바르게 빌드하기 위한 규칙과 모범 사례를 정의합니다. 일반적인 함정(예: CSS transform과 GSAP 트윈 충돌, 씬 종료 시 visibility 숨기기 등)과 이를 피하는 방법을 설명합니다. 또한 구성의 두 가지 기본 형태(독립형 vs 하위 구성), 루트 요소 크기 조정, 정확히 하나의 일시 중지된 타임라인 등록, lint 검증, 간과하기 쉬운 비협상 규칙(결정론적 제한, 미디어 배치, ID 고유성 등)을 다룹니다. 이 스킬은 Cursor, Windsurf, Claude Code, Codex, Cline, Copilot, Aider와 같은 주요 AI 코딩 어시스턴트와 호환되며, agent 개발자에게 HyperFrames 프로젝트의 문법과 제약 사항에 대한 포괄적인 참고 자료를 제공합니다.

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

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

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

문서

플러그인 설치: 설정 또는 freshness 명령 전에, 이 스킬이 HyperFrames 플러그인 내부에 있을 때는 플러그인 설치 규칙을 따르세요. 독립 설치의 경우 아래 업데이트 지침을 유지하세요.

HyperFrames 핵심

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

  • flex/inset으로 중앙 정렬하고, 이후 GSAP x/y로 애니메이션할 노드에 CSS transform: translate(-50%,-50%)를 사용하지 마세요. Lint: 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-* 속성으로 타이밍을 선언하고, 애니메이션 런타임이 seek 가능하며, 미디어 재생이 프레임워크에 의해 소유되는 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.mddata-* 속성(루트 / 클립 / 하위 구성 호스트 / 레거시 별칭) 조회; 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.mdseek 가능 타임라인 구축; 결정론 금지 사항; 레이아웃 / 텍스트 맞춤
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>"](키 = 루트 data-composition-id)에 정확히 하나의 gsap.timeline({ paused: true })를 등록합니다. async 콜백(document.fonts.ready) 내에서 빌드하는 것도 지원됩니다. 중요한 것은 빌드 완료 후에만 등록해야 한다는 점입니다. 렌더링 길이는 루트의 data-duration이며, 타임라인의 길이가 아닙니다: 타임라인이 이를 초과하면 잘리고, 일찍 끝나면 마지막 프레임을 유지합니다. 루트 data-duration을 생략하면 길이가 대신 추론됩니다(타임라인, 미디어 윈도우 또는 어댑터). window.__timelines = window.__timelines || {}는 필요하지 않습니다. 런타임이 인라인 스크립트가 실행되기 전에 레지스트리를 생성하며, lint가 더 이상 이를 요구하지 않습니다. 하위 타임라인을 호스트에 수동으로 중첩시키지 마세요. 런타임이 등록된 자식 타임라인을 자동으로 중첩시킵니다. 전체 계약(GSAP 외 런타임 포함) → references/determinism-rules.md + hyperframes-animation/adapters/.

첫 번째 패스 lint 주의사항 (보장된 첫 빌드 실패)

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는 캔버스/WebGL/WebAudio 읽기백을 포함하여 media_crossorigin_breaks_preview(오류)로 무조건 거부합니다. 예외는 없습니다.
  • 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입니다.

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

비협상 규칙 (자동 게이트가 놓칠 수 있는 조용한 버그)

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

  • 렌더링 시간 시계 / 시드되지 않은 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> 또는 래퍼 내부 포함)에서 seek 및 디코딩합니다. 하나의 하드 제한: 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 통과 (lint, 런타임, 레이아웃, 모션, 대비에서 0건의 결과)
  • 하위 구성이 있는 프로젝트: npx hyperframes snapshot --at <midpoints> 및 각 프레임 육안 검사
  • 리뷰를 위한 npx hyperframes preview --background (사용자가 Studio 타임라인에서 무엇이든 편집할 수 있으며, 서버는 호출 명령 후에도 유지됨)
  • 사용자 승인 후에만 npx hyperframes render

Individual skills in this repo

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

sandeshrajbhandari/hyperframes-instruct

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

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.

sandeshrajbhandari/hyperframes-instruct

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

sandeshrajbhandari/hyperframes-instruct

Agent Media OS, the single skill for every media need in 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.

sandeshrajbhandari/hyperframes-instruct

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

관련 스킬