Communitygithub.com

libz-renlab-ai/TeamBrain

기존 Remotion (React 기반) 비디오 컴포지션을 HyperFrames HTML 컴포지션으로 변환합니다. 사용자가 Remotion 컴포지션을 HyperFrames로 포팅, 변환, 마이그레이션, 번역 또는 재작성을 명시적으로 요청할 때만 사용합니다.

TeamBrain란 무엇인가요?

이 스킬은 Remotion(React 기반) 비디오 컴포지션을 HyperFrames(HTML + GSAP) 컴포지션으로 기계적으로 변환하는 전문 번역 도구입니다. Remotion의 약 80%에 해당하는 일반적인 패턴을 직접 매핑하며, 나머지 20%의 손실이 발생할 수 있는 패턴은 감지하여 변환을 거부하고 대신 런타임 상호 운용 패턴을 권장합니다. 주요 워크플로는 소스 코드 린트(차단, 경고, 정보 패턴 감지), API 매핑 참조 문서 로드, HyperFrames HTML 파일 생성, SSIM 임계값 기반 검증, 변환 격차 문서화의 5단계로 구성됩니다. T1부터 T4까지의 계층적 테스트 코퍼스가 내장되어 있어 측정된 SSIM 임계값에 대한 번역 품질을 자동으로 평가합니다. Claude Code, Cursor, Codex과 같은 주요 AI 에이전트 플랫폼에서 지원되며, useState/useEffect와 같은 React 상태 머신이나 @remotion/lambda와 같은 배포 구성은 변환하지 않습니다. 변환 과정에서 발생하는 모든 제한사항과 근사치는 TRANSLATION_NOTES.md에 기록됩니다.

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

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

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

문서

Remotion to HyperFrames

개요

Remotion (React 기반) 비디오 컴포지션을 HyperFrames (HTML + GSAP) 컴포지션으로 변환합니다. 대부분의 Remotion 관용구는 HyperFrames에 직접적으로 대응되며, 일반적인 컴포지션의 약 80%는 기계적으로 변환 가능합니다. 이 스킬은 매핑을 인코딩하고, 손실이 발생하는 20%에 대해서는 변환을 거부하고 대신 PR #214의 런타임 상호 운용 패턴을 권장하여 보호합니다.

이 스킬에는 계층적 테스트 코퍼스(T1–T4, 총 4개 고정 장치)가 포함되어 있으며, 측정된 SSIM 임계값에 대해 번역을 평가합니다. 평가를 실행하지 않고 번역하지 마십시오. "올바르게 보이는" 번역이 검증된 기준선보다 SSIM이 0.05 낮게 렌더링되면 조용히 잘못된 것입니다.

워크플로우

1단계: 소스 린트

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

  • 차단 항목 (거부 + 상호 운용 권장): useState, useReducer, useEffect/useLayoutEffect (비어 있지 않은 deps 포함), 비동기 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을 생성합니다.

  • 루트 <div id="stage">: 컴포지션의 data-composition-id, data-start="0", data-duration (초), data-fps, data-width, data-height 및 스칼라 prop당 하나의 data-* 속성을 포함합니다.
  • data-start / data-duration / data-track-index 속성을 가진 장면 div의 플랫 리스트.
  • 레이아웃을 위한 인라인 <style>; CSS는 모든 애니메이션 속성의 from 상태를 설정합니다.
  • 하단에 하나의 <script> 태그: 일시 중지된 gsap.timeline({paused: true})를 포함합니다. 모든 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 --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의 탐색 기반 모델에서 결정적 프레임 캡처 대상이 아닙니다. 런타임 상호 운용 패턴을 권장합니다.
  • 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 5 individual skills — each has its own dedicated page.

libz-renlab-ai/TeamBrain

Asset preprocessing for HyperFrames compositions — text-to-speech narration (Kokoro), audio/video transcription (Whisper), and background removal for transparent overlays (u2net). Use when generating voiceover from text, transcribing speech for captions, removing the background from a video or image to use as a transparent overlay, choosing a TTS voice or whisper model, or chaining these (TTS → transcribe → captions). Each command downloads its own model on first run.

libz-renlab-ai/TeamBrain

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, and registry discovery.

libz-renlab-ai/TeamBrain

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For CLI commands (init, lint, preview, render, transcribe, tts) see the hyperframes-cli skill.

libz-renlab-ai/TeamBrain

Capture a website and create a HyperFrames video from it. Use when: (1) a user provides a URL and wants a video, (2) someone says "capture this site", "turn this into a video", "make a promo from my site", (3) the user wants a social ad, product tour, or any video based on an existing website, (4) the user shares a link and asks for any kind of video content. Even if the user just pastes a URL — this is the skill to use.

libz-renlab-ai/TeamBrain

HyperFrames CLI tool — hyperframes init, lint, inspect, preview, render, transcribe, tts, doctor, browser, info, upgrade, compositions, docs, benchmark. Use when scaffolding a project, linting, validating, inspecting visual layout in compositions, previewing in the studio, rendering to video, transcribing audio, generating TTS, or troubleshooting the HyperFrames environment.

관련 스킬