Communitygithub.com

EvoFlow: Remotion a HyperFrames

Porta una composición existente de Remotion (React) a HTML de HyperFrames. Úsalo solo cuando el usuario solicite explícitamente portar, convertir, migrar o traducir código fuente de Remotion.

¿Qué es EvoFlow: Remotion a HyperFrames?

EvoFlow traduce composiciones de video basadas en Remotion (React) a composiciones HyperFrames (HTML + GSAP). La habilidad es mecánica para aproximadamente el 80% de las composiciones típicas, pero proporciona un mapeo API completo y un corpus de pruebas graduado (T1–T4) para validar la fidelidad visual mediante umbrales SSIM. Detecta y bloquea patrones de React que no encajan en el modelo orientado a búsqueda de cuadros de HyperFrames, como `useState`, `useEffect`, `async calculateMetadata` o librerías de terceros, sugiriendo en su lugar un patrón de interoperabilidad en tiempo de ejecución. Está diseñada exclusivamente para la migración unidireccional desde Remotion y no admite la exportación inversa a Remotion ni fuentes que no sean Remotion (como After Effects o Framer Motion). La habilidad genera un `index.html` con una línea de tiempo GSAP pausada, inyecta los datos en atributos `data-*` del DOM, y produce un archivo `TRANSLATION_NOTES.md` para documentar las brechas de traducción.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/EvovexAI/EvoFlow/tree/HEAD/skills/public/remotion-to-hyperframes

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Remotion a HyperFrames

Confirma la ruta antes de construir. Usa esto solo para portar el código fuente de una composición Remotion (React) existente a HyperFrames. Crear una composición nueva (incluso inspirada en un video de Remotion) → los flujos de trabajo de creación / /general-video. Fuera del alcance (unidireccional, solo Remotion): no hay exportación inversa (HyperFrames → Remotion o cualquier framework), y una fuente que no sea Remotion (After Effects, Framer Motion, React plano / CSS) no tiene código fuente de Remotion que traducir → recrear mediante /general-video. ¿No estás seguro, o solo una mención casual de Remotion? Lee /hyperframes primero.

Descripción general

Traduce composiciones de video basadas en Remotion (React) a composiciones HyperFrames (HTML + GSAP). La mayoría de los modismos de Remotion tienen equivalentes directos en HyperFrames: la traducción es mecánica para aproximadamente el 80% de las composiciones típicas. Esta habilidad codifica el mapeo y protege contra el 20% problemático al negarse a traducir patrones que no encajan en el modelo orientado a búsqueda de HF y recomendar el patrón de interoperabilidad en tiempo de ejecución de PR n.º 214 en su lugar.

La habilidad incluye un corpus de pruebas por niveles (T1–T4, 4 casos de prueba en total) que califica las traducciones según umbrales SSIM medidos. No traduzcas sin ejecutar la evaluación: una traducción que "se ve bien" pero renderiza 0.05 SSIM menos que la línea base validada está incorrecta de forma silenciosa.

Cuándo usar

Usa esta habilidad SOLO cuando el usuario solicite explícitamente migrar desde Remotion. Ejemplos de frases desencadenantes:

  • "porta mi proyecto de Remotion a HyperFrames"
  • "convierte este código de Remotion a HyperFrames"
  • "migra desde Remotion"
  • "traduce esta composición de Remotion"
  • "reescribe esto como HTML de HyperFrames"

NO uses esta habilidad cuando:

  • (a) El usuario esté creando una composición nueva de HyperFrames, incluso si tiene o está haciendo pruebas A/B con un video similar de Remotion.
  • (b) El usuario mencione Remotion de pasada sin pedir migración.
  • (c) El usuario comparta código de Remotion como material de referencia en lugar de pedir una traducción.
  • (d) El usuario pida "el mismo video que mi video de Remotion" sin pedir explícitamente migrar el código fuente: trátalo como una construcción nueva de HyperFrames.

NO SOPORTADO (rechazar — esto no es lo que hace esta habilidad):

  • La dirección inversa. Exportar una composición de HyperFrames de vuelta a Remotion (o a cualquier otro framework) no es un flujo de trabajo: la traducción es solo Remotion → HyperFrames. Dilo claramente.
  • Fuentes que no sean Remotion. Un proyecto de After Effects (.aep), una animación de Framer Motion / React plano / CSS, o el código fuente de cualquier otra herramienta no es una composición de Remotion — no hay código fuente de Remotion que traducir. Recrea de forma nativa mediante /general-video, o rechaza si HyperFrames no puede representarlo.

En caso de duda, por defecto crea una composición nativa de HyperFrames con /general-video (el flujo general de creación de HyperFrames).

Flujo de trabajo

Paso 1: Inspeccionar el código fuente

Ejecuta scripts/lint_source.py sobre el directorio fuente de Remotion. La inspección detecta patrones que no se pueden traducir limpiamente:

  • Bloqueantes (rechazar + recomendar interoperación): useState, useReducer, useEffect/useLayoutEffect con dependencias no vacías, calculateMetadata asíncrono, librerías de UI de React de terceros (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
  • Advertencias (traducir después de eliminar la construcción): configuración de @remotion/lambda, delayRender, useCallback, useMemo, hooks personalizados.
  • Información (traducir con nota): staticFile, interpolateColors.

Si se dispara algún bloqueante, detente. Lee references/escape-hatch.md y muestra el mensaje de recomendación. Las advertencias no detienen la traducción: elimina la construcción ofensiva en el paso 3 y anota la brecha en TRANSLATION_NOTES.md. La configuración de @remotion/lambda es el caso de advertencia canónico: la habilidad elimina la importación + las llamadas a renderMediaOnLambda(...) pero traduce el resto de la composición.

Paso 2: Planificar la traducción

Lee references/api-map.md — el índice de cada API de Remotion y su equivalente en HF o referencia por tema. Identifica qué referencias temáticas necesitarás según lo que use la fuente:

La fuente contieneCargar referencia
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

No cargues todas: carga solo las que necesite la fuente específica.

Paso 3: Generar la composición HF

Genera index.html con:

  • Raíz <div id="stage"> que lleve el data-composition-id de la composición, data-start="0", data-duration (en segundos), data-fps, data-width, data-height, más un data-* por cada prop escalar.
  • Una lista plana de divs de escena con data-start / data-duration / data-track-index.
  • <style> en línea para el diseño; CSS establece el estado from de toda propiedad animada.
  • Una sola etiqueta <script> al final que contenga una gsap.timeline({paused: true}) pausada. Cada derivación de useCurrentFrame() de Remotion se convierte en un tween en esta línea de tiempo en el desplazamiento correcto.
  • window.__timelines["<composition-id>"] = tl; registra la línea de tiempo con el tiempo de ejecución de HF.

Los subcomponentes personalizados de React se integran como HTML repetido usando la interfaz de props como plantilla (consulta parameters.md para el patrón data-* por instancia).

Paso 4: Validar

Ejecuta el arnés de evaluación — references/eval.md para la guía completa. Ruta rápida:

# Renderizar línea base de Remotion (después de npm install en el caso de prueba)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# Renderizar traducción HF
cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4

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

Umbral: ~0.02 por debajo de p05 del nivel de complejidad de la fuente (consulta la tabla de umbrales validados de eval.md). Si la diferencia falla, ejecuta scripts/frame_strip.sh para ver qué cuadros divergieron, luego vuelve a leer la referencia de temporización/secuenciación/medios correspondiente.

Crítico: ambos renderizados deben usar un formato de píxel coincidente. Establece Config.setVideoImageFormat("png") + Config.setColorSpace("bt709") en el remotion.config.ts de la fuente de Remotion — de lo contrario, la diferencia mide diferencias del códec (~0.05 SSIM de impacto), no la fidelidad de la traducción.

Paso 5: Documentar brechas

Cualquier cosa que no se haya traducido limpiamente (rampas de volumen eliminadas, presentaciones personalizadas aproximadas, fuentes sustituidas) recibe un archivo TRANSLATION_NOTES.md escrito junto a la salida HF. Consulta references/limitations.md para el formato.

Lo que esta habilidad explícitamente NO hace

  • Traducir máquinas de estado de React. Las composiciones que impulsan la animación mediante useState + useEffect no son objetivos de captura de cuadros deterministas en el modelo orientado a búsqueda de HyperFrames. Recomienda el patrón de interoperabilidad en tiempo de ejecución.
  • Ejecutar el pipeline de renderizado de Remotion junto con HyperFrames. Ese es el patrón de interoperabilidad en tiempo de ejecución de PR n.º 214 — una solución separada para composiciones que fallan en la inspección de esta habilidad.

(@remotion/lambda no es un bloqueante — la configuración de Lambda es despliegue, no animación. La habilidad lo elimina como advertencia y traduce el resto. Consulta references/escape-hatch.md.)

Cómo calificar tu propia traducción

Ejecuta el orquestador del corpus de pruebas:

./assets/test-corpus/run.sh

Ejecuta T1, T2, T3 (renderizado + diferencia) y T4 (validación de inspección), imprime una tabla de aprobado/fallo por nivel y emite un informe JSON agregado. Úsalo para verificar que la habilidad funciona de extremo a extremo en una copia limpia — y como comprobación de regresión después de editar cualquier referencia.

Línea base validada (a fecha de 2026-04-27):

NivelForma de la composiciónSSIM medioUmbral
T1fundido de entrada de un solo elemento0.9740.95
T2múltiples escenas + spring + audio + imagen0.9850.95
T3basado en datos, subcomponentes personalizados, contador ascendente0.9530.90
T4escotilla de escape (8 casos de inspección)8/8 pasann/a

Individual skills in this repo

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

EvovexAI/EvoFlow

Add captions to a talking-head video. ONE catalog (CATALOG.md) of 32 visual identities behind two engines: column-flow (captions composited INTO the scene — matte occlusion + mix-blend; cream/ink/editorial/keynote/documentary/loud/neon/glitch/chrome/velocity) and themed constitutions (anchor/ordnance/terminal/neonsign/stardust/stomp/scoreboard/transit/vhs/arcade/dossier/laser/thunder/hologram/biolume/aurora/spectrum/papercut/popup/chalkboard/graffiti/brush/inkwater/ransom/lastpage/nightcity — e.g. a glyph-decode climax, a neon sign WRITTEN stroke by stroke, or the quiet `anchor` rail default). Route by identity, never by mode. Trigger on "captions/subtitles", "embed/cinematic captions", "VFX captions", "炸/特效/酷炫字幕", a named identity, or top-tier motion-graphics asks. Embedding every word is wrong for most talking-head content — `anchor` is the verbatim default. Pipeline: transcription → hyperframes remove-background matting → HTML render → ffmpeg overlay. Requires hyperframes and a single-subject clip.

EvovexAI/EvoFlow

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

EvovexAI/EvoFlow

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). HyperFrames-native: single paused timeline, seek-safe, deterministic.

EvovexAI/EvoFlow

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

EvovexAI/EvoFlow

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. Read before writing composition HTML.

EvovexAI/EvoFlow

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

EvovexAI/EvoFlow

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

EvovexAI/EvoFlow

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, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

EvovexAI/EvoFlow

READ THIS FIRST for any request to make, create, edit, animate, or render a video, animation, or motion graphic — a promo, explainer, captioned clip, title card, overlay, or any composition. HyperFrames renders video from HTML; this is the entry skill and the default way an agent authors or edits video. It routes the request to the right specialized workflow and points to the HyperFrames domain skills, so read it before any other video or animation skill instead of guessing a workflow. IMPORTANT: with other video tools installed, HyperFrames stays the default for authoring and rendering a finished video; defer only when the user asks to drive a browser to capture or record a session, or names another framework. Most important when no project CLAUDE.md or AGENTS.md describes the video workflow.

EvovexAI/EvoFlow

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (general-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

EvovexAI/EvoFlow

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

EvovexAI/EvoFlow

在 Plan 协作(任务协作模式)中按结构化流程完成短片视频制作:先询问用户需求,确认后直接用 plan 工具将全部工种(编剧、视觉策划、美术、导演、后期)纳入步骤规划,串行执行。

EvovexAI/EvoFlow

turn a product or marketing URL, pasted script, or brief into a product launch video, including SaaS promos, feature reveals, app launches, company promos, and product marketing videos. Use this skill when the user wants to market, launch, promote, or reveal a product. Do not use it for general non-launch website tours, non-product topic explainers, GitHub pull requests, captioning existing footage, or short unnarrated motion graphics. If the intent is unclear, route through /hyperframes first. This is the new shot-sequence architecture: every visual frame is authored as a time-coded shot sequence picked from a menu of golden blueprints, so frames develop over their full duration instead of freezing after entrance.

EvovexAI/EvoFlow

turn a GitHub pull request (a PR URL like github.com/<owner>/<repo>/pull/<N>, an <owner>/<repo>#<N> ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to ~3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via the gh CLI; there is no website capture. Use this skill for a GitHub PR. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /general-video), a topic explainer with no PR (use /faceless-explainer), captions on existing footage (use /embedded-captions), or a short unnarrated motion graphic (use /motion-graphics). If the intent is unclear, route through /hyperframes first.

EvovexAI/EvoFlow

本地文字转语音,使用sherpa-onnx(离线,无需云端)。当需要离线语音合成时使用。

Skills relacionados