Communitygithub.com

laviedezidane/hyperframes-skill

Porta una composición existente de Remotion (React) a HTML con HyperFrames. Úsalo SOLO cuando se pida explícitamente portar, convertir, migrar o traducir una fuente de Remotion — unidireccional, solo Remotion. Una mención pasajera, código de referencia o "haz algo parecido a mi video de Remotion" es una construcción nueva (/general-video). Si hay duda → /hyperframes.

¿Qué es hyperframes-skill?

Esta habilidad está diseñada para desarrolladores que desean migrar composiciones de video existentes escritas en Remotion (React) a HyperFrames (HTML + GSAP). Proporciona un flujo de trabajo mecánico y estructurado que traduce la mayoría de los patrones de Remotion (~80%) a sus equivalentes en HyperFrames, manejando el 20% restante de patrones que no encajan mediante la recomendación de un patrón de interoperabilidad en tiempo de ejecución. La habilidad incluye una verificación de lint, un plan de traducción basado en referencias de API, generación de la composición HTML y una validación visual mediante comparación SSIM con la línea base de Remotion. No traduce máquinas de estado de React, composiciones que dependen de `useState` + `useEffect`, ni fuentes que no sean de Remotion (como After Effects o Framer Motion). Está diseñado para ser usado con herramientas de línea de comandos como Claude Code, Cursor o Codex, y requiere que el usuario solicite explícitamente la migración.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/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

Instalación del plugin: Antes de ejecutar comandos de configuración o actualización, sigue las reglas de instalación del plugin cuando esta habilidad esté dentro de un plugin de HyperFrames. Las instalaciones independientes mantienen las instrucciones de actualización a continuación.

Primero, mantén esta habilidad actualizada — confirma con el usuario antes de ejecutar: npx hyperframes skills update remotion-to-hyperframes. Es una operación rápida sin cambios si todo está actualizado; de lo contrario, refresca esta habilidad junto con las habilidades principales del dominio de las que depende, antes de que confíes en ellas.

Remotion a HyperFrames

La puerta de entrada es /hyperframes. Usa esto solo para portar una composición existente de Remotion (React) a HyperFrames, en una dirección únicamente. Si estás creando una nueva composición, recreando desde una fuente que no es Remotion (After Effects, Framer Motion, React/CSS plano — no hay fuente de Remotion que traducir), una mención pasajera de Remotion, o cualquier incertidumbre → lee /hyperframes primero: la capa de intención decide cada ruta.

Resumen

Traduce composiciones de video basadas en Remotion (React) a composiciones de 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% que se pierde al negarse a traducir patrones que no encajan en el modelo basado en seek de HF, y recomienda el patrón de interoperabilidad en tiempo de ejecución de PR #214 en su lugar.

La habilidad incluye un corpus de pruebas por niveles (T1–T4, 4 fixtures en total) que califica las traducciones con umbrales SSIM medidos. No traduzcas sin ejecutar la evaluación — una traducción que "se ve bien" pero que renderiza 0.05 SSIM por debajo de la línea base validada es incorrecta de forma silenciosa.

Cuándo usarlo

Usa esta habilidad SOLO cuando el usuario solicite explícitamente migrar desde Remotion. Frases de activación de ejemplo:

  • "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 nueva composición de HyperFrames, incluso si tiene o está probando A/B 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 sin pedir una traducción.
  • (d) El usuario pide "el mismo video que mi de Remotion" sin pedir explícitamente migrar la fuente — trátalo como una construcción nueva de HyperFrames.

NO SOPORTADO (rechaza — 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 de Remotion a HyperFrames. Dilo claramente.
  • Fuentes que no son 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 de Remotion que traducir. Recrea de forma nativa mediante /general-video, o rechaza si HyperFrames no puede representarlo.

En caso de duda, vuelve a /hyperframes; su capa de intención elige la ruta.

Flujo de trabajo

Paso 1: Analiza la fuente

Ejecuta scripts/lint_source.py sobre el directorio fuente de Remotion. El análisis detecta patrones que no pueden traducirse limpiamente:

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

Si se activa 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 problemática 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 renderMediaOnLambda(...) pero traduce el resto de la composición.

Paso 2: Planifica 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 contieneCarga la 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 la fuente específica necesite.

Busca en el catálogo en vivo cualquier efecto visual que la tabla no mapee. Cuando la fuente pinte un look sin equivalente en la API de HF — una superposición de scanline/CRT, un pase de glitch o aberración cromática, un wipe con shader, un tratamiento de grano de película — ejecuta npx hyperframes catalog --query "<el efecto, en inglés simple>" --json antes de escribirlo a mano en GSAP. La búsqueda no necesita nada instalado: ni proyecto, ni add previo, ni cuenta. Clasifica todo el registro alojado (~400 bloques y componentes) desde cualquier directorio, y transitions.md ya toma esta ruta para clockWipe() / iris() mediante npx hyperframes add sdf-iris. Un componente real está más cerca de la fuente que una aproximación manual, por lo que generalmente aumenta el SSIM en lugar de disminuirlo — pero la diferencia de render en el Paso 4 sigue siendo el árbitro. Escribe el efecto a mano cuando una búsqueda no devuelva nada que encaje, y registra la sustitución en TRANSLATION_NOTES.md de cualquier manera.

Paso 3: Genera la composición HF

Genera index.html con:

  • <div id="stage"> raíz que contiene data-composition-id, data-start="0", data-duration (en segundos), data-fps, data-width, data-height, más un data-* por prop escalar.
  • Un <div> anfitrión por escena con data-composition-src="compositions/<scene>.html" y data-start / data-duration / data-track-index. La raíz no contiene maquetación anidada.
  • Un compositions/<scene>.html por escena (una subcomposición <template>): su <style> en línea para la maquetación (CSS establece el estado from de cada propiedad animada), su marcado, y una gsap.timeline({paused: true}) detenida en el tiempo local de la escena. Cada derivación de useCurrentFrame() de Remotion se convierte en un tween en esa línea de tiempo en el desplazamiento dentro de la escena.
  • window.__timelines["<scene-id>"] = tl; en cada archivo de escena, y window.__timelines["<composition-id>"] para la línea de tiempo propia de la raíz (posiblemente vacía).

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

Paso 4: Valida

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

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

# Renderiza la 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 en eval.md). Si la diferencia falla, ejecuta scripts/frame_strip.sh para ver qué fotogramas divergieron, luego relee la referencia de temporización/secuenciación/medios correspondiente.

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

Paso 5: Documenta las brechas

Cualquier cosa que no se haya traducido limpiamente (rampas de volumen eliminadas, presentaciones personalizadas aproximadas, fuentes sustituidas) genera un TRANSLATION_NOTES.md junto a la salida de 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 manejan animación mediante useState + useEffect no son objetivos deterministas de captura de fotogramas en el modelo basado en seek de HyperFrames. Recomienda el patrón de interoperabilidad en tiempo de ejecución.
  • Ejecutar el pipeline de render de Remotion junto con 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 pruebas:

./assets/test-corpus/run.sh

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

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

NivelForma de la composiciónSSIM medioUmbral
T1fundido de entrada de un solo elemento0.9740.95
T2multi-escena + spring + audio + imagen0.9850.95
T3basado en datos, subcomponentes personalizados, contador0.9530.90
T4escape (8 casos de lint)8/8 pasan/a

Individual skills in this repo

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). 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`.

laviedezidane/hyperframes-skill

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, timeline, history, clean, 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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, 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.

laviedezidane/hyperframes-skill

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also 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).

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

laviedezidane/hyperframes-skill

Agent Media OS for a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

Skills relacionados