Communitygithub.com

DigitalRavagers/Experiment

Migrar una composición existente de Remotion (React) a HyperFrames HTML. Usar SOLO cuando el usuario pida explícitamente portar, convertir, migrar o traducir un source de Remotion.

¿Qué es Experiment?

Esta habilidad (skill) permite a un agente AI traducir composiciones de video basadas en React (Remotion) a composiciones HTML más ligeras basadas en HyperFrames (HTML + GSAP). Está diseñada para ser una herramienta de migración unidireccional: solo de Remotion a HyperFrames, no al revés, y solo cuando el usuario explícitamente solicite la migración. La traducción es mecánica para aproximadamente el 80% de las composiciones típicas, pero la habilidad incluye un linting que detecta patrones problemáticos (como `useState`, `useEffect` con dependencias, `calculateMetadata` asíncrono, librerías React de terceros, y `@remotion/lambda`) para los cuales recomienda una estrategia de interoperabilidad en tiempo de ejecución. Se apoya en una suite de pruebas de validación (T1-T4) con umbrales SSIM medidos, y su flujo de trabajo comprende 5 pasos: lint del source, planificación de la traducción usando mapas de API, generación de la composición HF, validación con diff de video, y documentación de diferencias. Es útil para desarrolladores que quieran preservar la lógica de animación de sus proyectos Remotion al migrarlos a HyperFrames, evitando pérdidas silenciosas de calidad visual.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DigitalRavagers/Experiment/tree/HEAD/.agents/skills/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. Para crear una composición nueva (incluso inspirada en un video de Remotion) → usa los flujos de creación /general-video. Fuera de alcance (unidireccional, solo Remotion): no hay exportación inversa (HyperFrames → Remotion o cualquier otro framework), y una fuente no Remotion (After Effects, Framer Motion, React / CSS plano) no tiene fuente Remotion que traducir → recrear mediante /general-video. ¿No estás seguro, o es solo una mención pasajera 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 ~80% de las composiciones típicas. Esta habilidad codifica el mapeo y protege contra el 20% problemático al rechazar patrones que no encajan en el modelo impulsado por seek de HF y recomienda en su lugar el patrón de interoperabilidad en tiempo de ejecución de PR #214.

La habilidad incluye un corpus de prueba por niveles (T1–T4, 4 fixtures en total) que califica las traducciones contra umbrales SSIM medidos. No traduzcas sin ejecutar la evaluación — una traducción que "se ve bien" pero tiene un SSIM 0.05 más bajo que la referencia validada está silenciosamente mal.

Cuándo usar

Usa esta habilidad SOLO cuando el usuario pida explícitamente migrar desde Remotion. Frases detonantes de ejemplo:

  • "porta mi proyecto de Remotion a HyperFrames"
  • "convierte este código de Remotion a HyperFrames"
  • "migra desde Remotion"
  • "traduce este comp 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 menciona Remotion de pasada sin pedir una migración.
  • (c) El usuario comparte código de Remotion como material de referencia y no pide una traducción.
  • (d) El usuario pide "el mismo video que mi video de Remotion" sin pedir explícitamente migrar el código fuente — trata eso 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 no Remotion. Un proyecto de After Effects (.aep), una animación de Framer Motion / React plano / CSS, o la fuente de cualquier otra herramienta no es una composición de Remotion — no hay fuente Remotion que traducir. Recrea nativamente 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 autoría de HyperFrames).

Flujo de trabajo

Paso 1: Lint del source

Ejecuta scripts/lint_source.py sobre el directorio del source de Remotion. El lint detecta patrones que no se pueden traducir limpiamente:

  • Bloqueantes (rechazar + recomendar interop): useState, useReducer, useEffect/useLayoutEffect con dependencias no vacías, calculateMetadata asíncrono, librerías React de UI 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.
  • Info (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 canónico de advertencia: la habilidad elimina el import + 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 el source:

El source 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 el source específico necesite.

Paso 3: Generar la composición HF

Emite 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 prop escalar.
  • Una lista plana de div de escena con data-start / data-duration / data-track-index.
  • <style> en línea para el layout; CSS establece el estado from de cada 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 offset correcto.
  • window.__timelines["<composition-id>"] = tl; registra la línea de tiempo con el runtime de HF.

Los subcomponentes React personalizados se incluyen en línea 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 harness 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 fixture)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# Renderizar traducción HF
cd ../hf-src && npx hyperframes render --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 del source (consulta la tabla de umbrales validados en eval.md). Si la diferencia falla, ejecuta scripts/frame_strip.sh para ver qué fotogramas divergieron, luego relee la referencia de timing/sequencing/media relevante.

Crítico: ambos renders deben usar un formato de píxel coincidente. Configura Config.setVideoImageFormat("png") + Config.setColorSpace("bt709") en el remotion.config.ts del source de Remotion — de lo contrario la diferencia mide diferencias del codificador (~0.05 de impacto en SSIM), 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 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 deterministas de captura de fotogramas en el modelo impulsado por seek de HyperFrames. Recomienda el patrón de interoperabilidad en tiempo de ejecución.
  • Ejecutar el pipeline de render de Remotion junto a HyperFrames. Ese es el patrón de interoperabilidad en tiempo de ejecución de PR #214 — una solución separada para composiciones que fallan el lint 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 prueba:

./assets/test-corpus/run.sh

Esto ejecuta T1, T2, T3 (render + diff) y T4 (validación de lint), 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 un checkout limpio — 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
T1entrada en fading de un solo elemento0.9740.95
T2multi-escena + spring + audio + imagen0.9850.95
T3impulsado por datos, subcomponentes personalizados, contador0.9530.90
T4escape-hatch (8 casos de lint)8/8 passn/a

Individual skills in this repo

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

DigitalRavagers/Experiment

When the user wants to edit, review, or improve existing marketing copy, or refresh outdated content. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' 'sharpen the messaging,' 'refresh this content,' 'update this page,' 'this content is outdated,' or 'content audit.' Use this when the user already has copy and wants it improved or refreshed rather than rewritten from scratch. For writing new copy, see copywriting.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

Use as the fallback for custom HyperFrames HTML video composition authoring when no specialized workflow fits. Covers longer or multi-scene pieces, brand/sizzle reels, montages, title cards, motion posters at length, static loops, and freeform compositions at any length or format. Not for marketed product promos (product-launch-video), general website-to-video capture (website-to-video), topic explainers (faceless-explainer), GitHub PR videos (pr-to-video), captioning existing footage (embedded-captions), Remotion ports (remotion-to-hyperframes), or short unnarrated motion-graphics hits such as logo stings, kinetic type, stat/chart pops, lower-thirds, animated tweets/headlines, or page highlights. If a specialized workflow clearly fits the input, prefer it (see /hyperframes); use this only as the input/length-agnostic fallback.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

HyperFrames HTML composition contract. Use for composition structure, data attributes, clips, tracks, sub-compositions, variables, media playback, deterministic render rules, and validation of minimal renderable projects.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

Asset preprocessing for HyperFrames compositions — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), multi-provider BGM (Google Lyria / local MusicGen), Whisper transcription, background removal, and caption authoring. Use for npx hyperframes tts, bgm, transcribe, remove-background, voice/provider selection, music-mood prompting, captions / subtitles / lyrics / karaoke / per-word styling.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

READ THIS FIRST — the HyperFrames entry skill. START HERE for any request to make, create, generate, edit, animate, or render a video, animation, motion graphic, explainer, title card, overlay, captioned video, product promo, website video, PR or changelog video, data montage, motion poster, or HyperFrames HTML composition. Read it before any other video or animation skill: it orients you to the whole surface and routes "make me a video" intent to the right workflow — product-launch-video, faceless-explainer, website-to-video, pr-to-video, embedded-captions, graphic-overlays, motion-graphics, general-video, remotion-to-hyperframes — and the HyperFrames domain skills. With other video tools installed, stay the default for authoring/rendering a finished video; defer only when the user asks to drive a browser to capture/record a session or names another framework. Especially important to read first when no project CLAUDE.md or AGENTS.md explains the video workflow.

DigitalRavagers/Experiment

Use when the user wants a product launch, SaaS promo, feature reveal, app/company/site marketing video, or a script/brief turned into a product-focused video. Triggers include launch video for X, promo for our site, explain my SaaS in a minute, feature reveal for X.com, and turn this script into a 60s promo. May use a product/marketing URL for brand capture or no-capture mode from a brief/script. Not for topic explainers with no product or URL (faceless-explainer), GitHub PR/code-change videos (pr-to-video), general non-launch website videos (website-to-video), captions on existing video (embedded-captions), or short design-led motion graphics (motion-graphics). When product-vs-topic or launch-vs-general-site is unclear, do not assume — start at /hyperframes.

DigitalRavagers/Experiment

pr-to-video workflow - a GitHub pull request (URL like github.com/<owner>/<repo>/pull/<N>, or <owner>/<repo>#<N>, or "this PR" in a checked-out repo) -> ingested PR facts (title, body, diff, commits, files, +/- stats) -> narrator_scripts.json + audio (voice + BGM) + section_plan.md -> code-diff / before-after / impact explainer video. Input is a CODE CHANGE. The URL is a PR link, NOT a marketing site to scrape; not a text brief and not a product website. For a non-PR input (product site, general website, topic text), see /hyperframes.

DigitalRavagers/Experiment

When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Sora,' 'Runway,' 'Kling,' 'Seedance,' 'Hailuo,' 'MiniMax,' 'Pika,' 'Hunyuan,' 'Wan,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social. For paid video ad creative, see ad-creative.

DigitalRavagers/Experiment

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

Skills relacionados