Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

remotion-to-hyperframes

БесплатноЗапускает вложенные скриптыНе проверен

Translate an existing Remotion (React-based) video composition into a HyperFrames HTML composition. Use ONLY when the user explicitly asks to port, convert…

frankxaiот frankxai★ 51 звезда на GitHub

Об этом скилле

Remotion to HyperFrames

Overview

Translate Remotion (React-based) video compositions into HyperFrames (HTML + GSAP) compositions. Most Remotion idioms have direct HyperFrames equivalents — the translation is mechanical for ~80% of typical compositions. This skill encodes the mapping and guards against the lossy 20% by refusing to translate patterns that don't fit HF's seek-driven model and recommending the runtime interop pattern from PR #214 instead.

The skill ships with a tiered test corpus (T1–T4, 4 fixtures total) that grades translations against measured SSIM thresholds. Don't translate without running the eval — a translation that "looks right" but renders 0.05 SSIM lower than the validated baseline is silently wrong.

When to use

Use this skill ONLY when the user explicitly asks to migrate from Remotion. Example trigger phrases:

  • "port my Remotion project to HyperFrames"
  • "convert this Remotion code to HyperFrames"
  • "migrate from Remotion"
  • "translate this Remotion comp"
  • "rewrite this as HyperFrames HTML"

Do NOT use this skill when:

  • (a) The user is authoring a new HyperFrames composition, even if they have or are A/B-testing a similar Remotion video.
  • (b) The user mentions Remotion in passing without asking for migration.
  • (c) The user shares Remotion code as reference material rather than asking for a translation.
  • (d) The user asks for "the same video as my Remotion one" without explicitly asking to migrate the source — treat that as a fresh HyperFrames build.

When in doubt, default to authoring a native HyperFrames composition with the hyperframes skill instead.

Workflow

Step 1: Lint the source

Run scripts/lint_source.py over the Remotion source directory. The lint detects patterns that can't translate cleanly:

  • Blockers (refuse + recommend interop): useState, useReducer, useEffect/useLayoutEffect with non-empty deps, async calculateMetadata, third-party React UI libraries (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
  • Warnings (translate after dropping the construct): @remotion/lambda config, delayRender, useCallback, useMemo, custom hooks.
  • Info (translate with note): staticFile, interpolateColors.

If any blocker fires, stop. Read references/escape-hatch.md and surface the recommendation message. Warnings don't stop translation — drop the offending construct in step 3 and note the gap in TRANSLATION_NOTES.md. @remotion/lambda config is the canonical warning case: the skill drops the import + renderMediaOnLambda(...) calls but translates the rest of the composition.

Step 2: Plan the translation

Read references/api-map.md — the index of every Remotion API and its HF equivalent or per-topic reference. Identify which topic references you'll need based on what the source uses:

Source contains Load reference
Composition, defaultProps, schema, calculateMetadata parameters.md
Sequence, Series, Loop, AbsoluteFill, Freeze sequencing.md
useCurrentFrame, interpolate, spring, Easing, interpolateColors timing.md
Audio, Video, Img, IFrame, staticFile, delayRender media.md
TransitionSeries, @remotion/transitions transitions.md
@remotion/lottie lottie.md
@remotion/google-fonts/<Family>, Font.loadFont, @font-face fonts.md

Don't load all of them — load only what the specific source needs.

Step 3: Generate the HF composition

Emit index.html with:

  • Root <div id="stage"> carrying the composition's data-composition-id, data-start="0", data-duration (in seconds), data-fps, data-width, data-height, plus one data-* per scalar prop.
  • A flat list of scene divs with data-start / data-duration / data-track-index.
  • Inline <style> for layout; CSS sets the from state of every animated property.
  • A single <script> tag at the bottom containing one paused gsap.timeline({paused: true}). Every Remotion useCurrentFrame() derivation becomes a tween on this timeline at the right offset.
  • window.__timelines["<composition-id>"] = tl; registers the timeline with HF's runtime.

Custom React subcomponents inline as repeated HTML using the prop interface as th

Полный SKILL.md на GitHub

Установить remotion-to-hyperframes в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/.gitkeepassets/test-corpus/.gitignoreassets/test-corpus/run.shassets/test-corpus/tier-1-title-card/.gitignoreassets/test-corpus/tier-1-title-card/README.mdassets/test-corpus/tier-1-title-card/expected.jsonassets/test-corpus/tier-1-title-card/hf-src/index.htmlassets/test-corpus/tier-1-title-card/remotion-src/package.jsonassets/test-corpus/tier-1-title-card/remotion-src/remotion.config.tsassets/test-corpus/tier-1-title-card/remotion-src/src/Root.tsxassets/test-corpus/tier-1-title-card/remotion-src/src/TitleCard.tsxassets/test-corpus/tier-1-title-card/remotion-src/src/index.tsassets/test-corpus/tier-1-title-card/remotion-src/tsconfig.jsonassets/test-corpus/tier-2-multi-scene/.gitignoreassets/test-corpus/tier-2-multi-scene/README.mdassets/test-corpus/tier-2-multi-scene/expected.jsonassets/test-corpus/tier-2-multi-scene/hf-src/index.htmlassets/test-corpus/tier-2-multi-scene/remotion-src/package.jsonassets/test-corpus/tier-2-multi-scene/remotion-src/remotion.config.tsassets/test-corpus/tier-2-multi-scene/remotion-src/src/MultiScene.tsxassets/test-corpus/tier-2-multi-scene/remotion-src/src/Root.tsxassets/test-corpus/tier-2-multi-scene/remotion-src/src/index.tsassets/test-corpus/tier-2-multi-scene/remotion-src/tsconfig.jsonassets/test-corpus/tier-2-multi-scene/setup.shassets/test-corpus/tier-3-data-driven/.gitignoreassets/test-corpus/tier-3-data-driven/README.mdassets/test-corpus/tier-3-data-driven/expected.jsonassets/test-corpus/tier-3-data-driven/hf-src/index.htmlassets/test-corpus/tier-3-data-driven/remotion-src/package.jsonassets/test-corpus/tier-3-data-driven/remotion-src/remotion.config.tsassets/test-corpus/tier-3-data-driven/remotion-src/src/Root.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/Stargazed.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/components/AnimatedNumber.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/components/StatCard.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/components/UnderlinedText.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/index.tsassets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/OutroScene.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/StatsScene.tsxassets/test-corpus/tier-3-data-driven/remotion-src/src/scenes/TitleScene.tsxassets/test-corpus/tier-3-data-driven/remotion-src/tsconfig.json

FAQ

Что делает скилл remotion-to-hyperframes?

Translate an existing Remotion (React-based) video composition into a HyperFrames HTML composition. Use ONLY when the user explicitly asks to port, convert, migrate, translate, or rewrite a Remotion composition as HyperFrames (e.g. "port my Remotion project to HyperFrames"). Do NOT use when (a) authoring a NEW HyperFrames composition (even if A/B-testing a Remotion video); (b) Remotion is mentioned in passing; (c) Remotion code is shared as reference, not for translation; (d) the user wants "the same video as my Remotion one" without explicitly asking to migrate the source — treat as a fresh HyperFrames build. When in doubt, default to the `hyperframes` skill. Detects unsupported patterns (useState, useEffect side effects, async calculateMetadata, third-party React component libraries, `@remotion/lambda`) and recommends the runtime interop escape hatch instead of a lossy translation.

Как установить скилл remotion-to-hyperframes?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл remotion-to-hyperframes запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить remotion-to-hyperframes с