Communitygithub.com

Remotion to HyperFrames

기존 Remotion (React) 컴포지션 소스를 HyperFrames HTML로 포팅합니다. Remotion 소스를 명시적으로 포팅/변환/마이그레이션/번역하라는 요청이 있을 때만 사용합니다. 단방향이며 Remotion 전용입니다. 단순한 Remotion 언급, 참조용 코드, 또는 '내 Remotion 비디오 같은 것'을 만드는 것은 새 빌드(/general-video)로 처리합니다. 불확실한 경우 → /hyperframes.

Remotion to HyperFrames란 무엇인가요?

이 스킬은 Remotion (React) 기반의 비디오 컴포지션을 HyperFrames (HTML + GSAP)로 변환하는 도구입니다. 약 80%의 일반적인 Remotion 관용구는 직접적인 HyperFrames 대응 관계를 가지며 기계적으로 번역할 수 있습니다. 하지만 상태 관리(useState, useReducer), useEffect/useEffectLayout, 비동기 calculateMetadata 등 HyperFrames의 seek 기반 모델에 맞지 않는 패턴은 번역을 거부하고 대신 PR #214에서 제안하는 런타임 인터롭 패턴을 권장합니다. 이 스킬에는 계층화된 테스트 코퍼스(T1~T4, 총 4개 픽스처)가 포함되어 있으며, SSIM 임계값을 통해 번역의 정확성을 검증합니다. Remotion → HyperFrames 단방향 변환만 지원하며, 반대 방향이나 다른 소스(After Effects, Framer Motion 등)의 변환은 지원하지 않습니다. 이 스킬은 Claude Code, Cursor, Codex 등 AI 에이전트가 사용할 수 있도록 설계된 전문 기술입니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/remotion-to-hyperframes

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

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

문서

먼저, 이 스킬을 최신 상태로 유지하세요 — 자동으로 실행하며 묻지 않음: npx hyperframes skills update remotion-to-hyperframes. 모든 것이 최신 상태이면 빠르게 무산되고, 그렇지 않으면 이 스킬과 이 스킬이 의존하는 핵심 도메인 스킬을 사용하기 전에 새로고침합니다.

Remotion to HyperFrames은(는) 무엇을 하나요?

진입점은 /hyperframes입니다. 이 스킬은 기존 Remotion (React) 컴포지션의 소스를 HyperFrames로 단방향으로 포팅하는 데에만 사용합니다. 새로운 컴포지션을 제작하거나, Remotion이 아닌 소스(After Effects, Framer Motion, 일반 React/CSS — 번역할 Remotion 소스가 없음)에서 재창조하거나, 단순히 Remotion을 언급하거나, 또는 불확실한 경우 → 먼저 /hyperframes를 읽어보세요: 의도 레이어가 모든 경로 결정을 소유합니다.

개요

Remotion (React 기반) 비디오 컴포지션을 HyperFrames (HTML + GSAP) 컴포지션으로 번역합니다. 대부분의 Remotion 관용구에는 직접적인 HyperFrames 대응 관계가 있으며, 일반적인 컴포지션의 약 80%는 기계적으로 번역됩니다. 이 스킬은 매핑을 인코딩하고, 손실이 발생할 수 있는 20%에 대비하여 HF의 seek 기반 모델에 맞지 않는 패턴의 번역을 거부하며, 대신 PR #214의 런타임 인터롭 패턴을 권장함으로써 보호합니다.

이 스킬은 계층화된 테스트 코퍼스(T1–T4, 총 4개 픽스처)와 함께 제공되며, 측정된 SSIM 임계값을 기준으로 번역을 평가합니다. 평가를 실행하지 않고 번역하지 마십시오 — "올바르게 보이는" 번역이라도 검증된 기준선보다 SSIM 0.05 낮게 렌더링되면 조용히 잘못된 것입니다.

사용 시기

사용자가 명시적으로 Remotion에서 마이그레이션을 요청하는 경우에만 이 스킬을 사용하세요. 트리거 문장 예시:

  • "내 Remotion 프로젝트를 HyperFrames로 포팅해줘"
  • "이 Remotion 코드를 HyperFrames로 변환해줘"
  • "Remotion에서 마이그레이션"
  • "이 Remotion 컴포넌트를 번역해줘"
  • "이것을 HyperFrames HTML로 다시 작성해줘"

다음과 같은 경우 이 스킬을 사용하지 마세요:

  • (a) 사용자가 유사한 Remotion 비디오를 가지고 있거나 A/B 테스트 중이더라도 새로운 HyperFrames 컴포지션을 제작하는 경우.
  • (b) 사용자가 마이그레이션을 요청하지 않고 단순히 Remotion을 언급하는 경우.
  • (c) 사용자가 번역을 요청하는 것이 아니라 참고 자료로 Remotion 코드를 공유하는 경우.
  • (d) 사용자가 "Remotion 비디오와 같은 영상"을 요청하면서 소스 마이그레이션을 명시적으로 요청하지 않는 경우 — 이는 새 HyperFrames 빌드로 처리합니다.

지원되지 않음 (거절 — 이 스킬이 하는 일이 아님):

  • 반대 방향. HyperFrames 컴포지션을 다시 Remotion(또는 다른 프레임워크)으로 내보내는 것은 워크플로가 아닙니다. 번역은 Remotion → HyperFrames 단방향입니다. 명확히 말씀드립니다.
  • Remotion이 아닌 소스. After Effects 프로젝트(.aep), Framer Motion/일반 React/CSS 애니메이션 또는 다른 도구의 소스는 Remotion 컴포지션이 아닙니다 — 번역할 Remotion 소스가 없습니다. /general-video를 통해 네이티브로 재생성하거나, HyperFrames로 표현할 수 없는 경우 거절합니다.

의심스러운 경우 /general-video(일반 HyperFrames 제작 흐름)를 통해 네이티브 HyperFrames 컴포지션을 제작하는 것을 기본값으로 하세요.

워크플로

1단계: 소스 린트

Remotion 소스 디렉토리에서 scripts/lint_source.py를 실행합니다. 린트는 깔끔하게 번역할 수 없는 패턴을 감지합니다:

  • 블로커 (거절 + 인터롭 권장): useState, useReducer, 비어 있지 않은 의존성을 가진 useEffect/useLayoutEffect, 비동기 calculateMetadata, 타사 React UI 라이브러리 (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
  • 경고 (구문을 제거한 후 번역): @remotion/lambda 구성, delayRender, useCallback, useMemo, 사용자 정의 훅.
  • 정보 (참고와 함께 번역): staticFile, interpolateColors.

블로커가 하나라도 발생하면 중지하세요. references/escape-hatch.md를 읽고 권장 메시지를 표시합니다. 경고는 번역을 중단하지 않습니다 — 3단계에서 문제가 되는 구문을 제거하고 TRANSLATION_NOTES.md에 차이를 기록합니다. @remotion/lambda 구성은 표준적인 경고 사례입니다: 스킬은 import + renderMediaOnLambda(...) 호출을 제거하지만 컴포지션의 나머지는 번역합니다.

2단계: 번역 계획

references/api-map.md를 읽으세요 — 모든 Remotion API와 해당 HF 등가물 또는 주제별 참조의 색인입니다. 소스에서 사용하는 내용을 기반으로 필요한 주제 참조를 식별합니다:

소스에 포함된 내용로드할 참조
Composition, defaultProps, schema, calculateMetadataparameters.md
Sequence, Series, Loop, AbsoluteFill, Freezesequencing.md
useCurrentFrame, interpolate, spring, Easing, interpolateColorstiming.md
Audio, Video, Img, IFrame, staticFile, delayRendermedia.md
TransitionSeries, @remotion/transitionstransitions.md
@remotion/lottielottie.md
@remotion/google-fonts/<Family>, Font.loadFont, @font-facefonts.md

모든 것을 로드하지 말고, 특정 소스에 필요한 것만 로드하세요.

3단계: HF 컴포지션 생성

다음과 함께 index.html을 생성합니다:

  • data-composition-id, data-start="0", data-duration(초), data-fps, data-width, data-height 및 스칼라 prop당 하나의 data-* 속성을 가진 루트 <div id="stage">.
  • data-start / data-duration / data-track-index를 가진 장면 div의 플랫 리스트.
  • 레이아웃을 위한 인라인 <style>; CSS는 모든 애니메이션 속성의 from 상태를 설정합니다.
  • 마지막에 일시 중지된 gsap.timeline({paused: true})가 포함된 단일 <script> 태그. 모든 Remotion useCurrentFrame() 파생은 이 타임라인에서 올바른 오프셋의 트윈이 됩니다.
  • window.__timelines["<composition-id>"] = tl;는 타임라인을 HF 런타임에 등록합니다.

사용자 정의 React 하위 컴포넌트는 prop 인터페이스를 템플릿으로 사용하여 인라인 반복 HTML로 인라인됩니다(인스턴스당 data-* 패턴은 parameters.md 참조).

4단계: 검증

평가 도구를 실행하세요 — 전체 가이드는 references/eval.md를 참조하세요. 빠른 경로:

# Remotion 기준선 렌더링 (픽스처에서 npm install 후)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# HF 번역 렌더링
cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4

# SSIM 차이
../../scripts/render_diff.sh ./remotion-src/out/baseline.mp4 ./hf.mp4 ./diff

임계값: 소스의 복잡성 계층에 대한 p05보다 약 0.02 낮음(eval.md의 검증된 임계값 표 참조). 차이 검사에 실패하면 scripts/frame_strip.sh를 실행하여 어떤 프레임에서 차이가 발생했는지 확인한 다음, 관련 타이밍/시퀀싱/미디어 참조를 다시 읽으세요.

중요: 두 렌더링 모두 일치하는 픽셀 형식을 사용해야 합니다. Remotion 소스의 remotion.config.ts에서 Config.setVideoImageFormat("png") + Config.setColorSpace("bt709")를 설정하세요. 그렇지 않으면 차이 검사가 번역 정확도가 아닌 인코더 차이(~0.05 SSIM 손실)를 측정합니다.

5단계: 차이 문서화

깔끔하게 번역되지 않은 모든 것(드롭된 볼륨 램프, 근사화된 사용자 정의 프리젠테이션, 대체된 글꼴)은 HF 출력 옆에 작성된 TRANSLATION_NOTES.md에 기록됩니다. 형식은 references/limitations.md를 참조하세요.

이 스킬이 명시적으로 수행하지 않는 작업

  • React 상태 머신 번역. useState + useEffect를 통해 애니메이션을 구동하는 컴포지션은 HyperFrames의 seek 기반 모델에서 결정론적 프레임 캡처 대상이 아닙니다. 런타임 인터롭 패턴을 권장하세요.
  • HyperFrames와 함께 Remotion의 렌더 파이프라인 실행. 이는 PR #214의 런타임 인터롭 패턴입니다 — 이 스킬의 린트를 통과하지 못하는 컴포지션을 위한 별도의 솔루션입니다.

(@remotion/lambda는 블로커가 아닙니다 — Lambda 구성은 배포이지 애니메이션이 아닙니다. 스킬은 경고로 이를 제거하고 나머지를 번역합니다. references/escape-hatch.md 참조.)

자신의 번역을 평가하는 방법

테스트 코퍼스 오케스트레이터를 실행하세요:

./assets/test-corpus/run.sh

T1, T2, T3(렌더링 + 차이 검사) 및 T4(린트 검증)를 실행하고, 계층별 통과/실패 표를 출력하며 집계 JSON 보고서를 생성합니다. 깨끗한 체크아웃에서 스킬이 종단 간 작동하는지 확인하고, 참조를 편집한 후 회귀 검사로 사용하세요.

검증된 기준선 (2026-04-27 기준):

계층컴포지션 형태평균 SSIM임계값
T1단일 요소 페이드인0.9740.95
T2다중 장면 + spring + 오디오 + 이미지0.9850.95
T3데이터 기반, 사용자 정의 하위 컴포넌트, 카운트업0.9530.90
T4이스케이프 해치 (8개 린트 케이스)8/8 통과n/a

Individual skills in this repo

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

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. 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`.\n

AlessandroFare/fluxychat

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, 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.\n

AlessandroFare/fluxychat

Install, discover, and wire registry blocks and components into HyperFrames compositions. 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).

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, 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.

AlessandroFare/fluxychat

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]

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

관련 스킬