Communitygithub.com

1345AbhishekKumar/starter-nextjs

Portar una composición existente de Remotion (React) al HTML de HyperFrames. Usar SOLO cuando el usuario solicite explícitamente portar/convertir/migrar/traducir un fuente de Remotion.

¿Qué es starter-nextjs?

Esta skill profesional traduce composiciones de video basadas en Remotion (React) al formato de HyperFrames (HTML + GSAP). Está diseñada para cubrir aproximadamente el 80% de los patrones típicos de Remotion, realizando una traducción mecánica directa a equivalentes de HyperFrames. La skill incluye una guía de linting inicial que detecta patrones incompatibles (como useState, useEffect, async calculateMetadata, librerías React de terceros, y @remotion/lambda) y bloquea la traducción si es necesario, recomendando en su lugar un patrón de interoperabilidad runtime. Además, cuenta con un corpus de pruebas (T1-T4) para validar la fidelidad visual de la traducción mediante métricas SSIM. Es una herramienta de migración de una sola vía (solo Remotion → HyperFrames) y rechaza explícitamente la exportación inversa o fuentes no Remotion (After Effects, Framer Motion, React/CSS puro).

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1345AbhishekKumar/starter-nextjs/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 existente de Remotion (React) a HyperFrames. Crear una composición nueva (incluso una inspirada en un video de Remotion) → los flujos de creación / /general-video. Fuera del alcance (una sola vía, solo Remotion): no hay exportación inversa (HyperFrames → Remotion ni a ningún otro framework), y un fuente no-Remotion (After Effects, Framer Motion, React / CSS puro) no tiene código fuente de Remotion que traducir → recrearlo via /general-video. ¿No estás seguro, o solo una mención pasajera de Remotion? Lee /hyperframes primero.

Resumen

Traduce composiciones de video de Remotion (basadas en 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 ~80% de las composiciones típicas. Esta skill codifica el mapeo y protege contra el 20% problemático al negarse a traducir patrones que no encajan en el modelo basado en búsqueda de HF y recomienda el patrón de interoperabilidad runtime de PR #214 en su lugar.

La skill incluye un corpus de pruebas 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 que rinde 0.05 SSIM por debajo del punto de referencia validado está silenciosamente equivocada.

Cuándo usarla

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

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

NO uses esta skill cuando:

  • (a) El usuario está creando una composición nueva de HyperFrames, incluso si tiene o está haciendo pruebas A/B de 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 en lugar de pedir una traducción.
  • (d) El usuario pide "el mismo video que mi video de Remotion" sin solicitar explícitamente migrar el código fuente — trata eso como una nueva construcción de HyperFrames.

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

  • 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 puro / CSS, o cualquier fuente de otra herramienta no es una composición de Remotion — no hay código fuente Remotion que traducir. Recrearla nativamente via /general-video, o rechazar si HyperFrames no puede representarla.

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

Flujo de trabajo

Paso 1: Analizar el código fuente

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

  • Bloqueantes (rechazar + recomendar interoperabilidad): 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.
  • Información (traducir con nota): staticFile, interpolateColors.

Si salta algún bloqueo, 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 canónico de advertencia: la skill 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 basándote en lo que usa el código fuente:

El código 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 los cargues todos — carga solo lo que necesite el código fuente específico.

Paso 3: Generar la composición HF

Emitir index.html con:

  • Un <div id="stage"> raíz que lleve data-composition-id, data-start="0", data-duration (en segundos), data-fps, data-width, data-height, más un data-* por prop escalar de la composición.
  • Una lista plana de divs por 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 única 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 integran como HTML repetido usando la interfaz de props como plantilla (ver parameters.md para el patrón data-* por instancia).

Paso 4: Validar

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

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

# Renderizar 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 del código fuente (ver 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/media relevante.

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

Paso 5: Documentar las brechas

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

Lo que esta skill explícitamente NO hace

  • Traducir máquinas de estado de React. Las composiciones que impulsan la animación a través de useState + useEffect no son objetivos de captura de fotogramas deterministas en el modelo basado en búsqueda de HyperFrames. Recomienda el patrón de interoperabilidad runtime.
  • Ejecutar el pipeline de renderizado de Remotion junto a HyperFrames. Ese es el patrón de interoperabilidad runtime de PR #214 — una solución separada para composiciones que fallan el linting de esta skill.

(@remotion/lambda no es un bloqueo — la configuración de Lambda es despliegue, no animación. La skill la elimina como advertencia y traduce el resto. Ver 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 linting), imprime una tabla de aprobado/fallo por nivel, y emite un informe JSON agregado. Úsalo para verificar que la skill 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 mediaUmbral
T1desvanecimiento de un solo elemento0.9740.95
T2múltiples escenas + spring + audio + imagen0.9850.95
T3basado en datos, subcomponentes personalizados, contador0.9530.90
T4escape-hatch (8 casos de linting)8/8 aciertosn/a

Individual skills in this repo

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

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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

1345AbhishekKumar/starter-nextjs

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 (website-to-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.

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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.

1345AbhishekKumar/starter-nextjs

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 /website-to-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.

1345AbhishekKumar/starter-nextjs

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