Communitygithub.com

Alemoterani/auto-edit-hyperframes

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

auto-edit-hyperframes란 무엇인가요?

HyperFrames는 HTML을 기반으로 비디오를 렌더링하는 프레임워크입니다. 이 기술 계약은 하나의 렌더링 가능한 HyperFrames 프로젝트를 구축하는 방법에 대한 공식 가이드입니다. 컴포지션은 `data-*` 속성으로 DOM 타이밍을 선언하고, 애니메이션 런타임이 탐색 가능하며, 미디어 재생이 프레임워크에 의해 제어되는 HTML 파일입니다. 이 스킬은 독립 실행형(standalone) 및 서브 컴포지션(sub-composition)의 두 가지 루트 형식, GSAP 타임라인 등록 방법, `lint`가 잡아내는 일반적인 함정, 그리고 눈에 띄지 않는 버그를 유발할 수 있는 논의 불가능한 규칙을 설명합니다. CLI 도구(`hyperframes-cli`)를 통한 검증, 스냅샷 미리보기, 렌더링 파이프라인도 다룹니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/hyperframes-core

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

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

문서

플러그인 설치: 설정 또는 갱신 명령 전에, 이 스킬이 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-인덱스, 다른 클립에 대한 상대적 시간 이해; 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> 래퍼가 없습니다. 독립 실행형 루트를 <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 })를 등록합니다. 비동기 콜백(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 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

관련 스킬