Communitygithub.com

1345AbhishekKumar/starter-nextjs

Portez une composition Remotion (React) existante vers HyperFrames HTML. À utiliser UNIQUEMENT lorsque l'utilisateur demande explicitement de porter/convertir/migrer/traduire une source Remotion.

Qu'est-ce que starter-nextjs ?

Cette compétence permet de traduire mécaniquement environ 80% des compositions Remotion (basées sur React) en compositions HyperFrames (HTML + GSAP). Elle se concentre sur le port unidirectionnel exclusif : Remotion vers HyperFrames. Les schémas non pris en charge par le modèle temporel de HyperFrames, comme `useState`, `useEffect` avec dépendances non vides, ou les bibliothèques React tierces, sont signalés comme blocages, avec une recommandation d'utiliser le modèle d'interopérabilité runtime à la place. La compétence inclut un corpus de test à plusieurs niveaux (T1-T4) pour valuer les traductions par rapport à des seuils SSIM mesurés, garantissant que la traduction est visuellement fidèle. Le workflow en cinq étapes comprend l'analyse de la source, la planification de la traduction, la génération de la composition HyperFrames, la validation via des scripts de comparaison, et la documentation des écarts dans un fichier TRANSLATION_NOTES.md.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1345AbhishekKumar/starter-nextjs/tree/HEAD/.agents/skills/remotion-to-hyperframes

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Remotion vers HyperFrames

Confirmez le chemin avant de construire. Utilisez ceci uniquement pour porter le code source d'une composition Remotion (React) existante vers HyperFrames. Créer une nouvelle composition (même inspirée d'une vidéo Remotion) → les workflows de création /general-video. Hors périmètre (unidirectionnel, Remotion uniquement) : pas d'export inverse (HyperFrames → Remotion ou tout autre framework), et une source non-Remotion (After Effects, Framer Motion, React / CSS simple) n'a pas de source Remotion à traduire → recréer via /general-video. En cas de doute, ou simple mention passagère de Remotion ? Lisez /hyperframes d'abord.

Vue d'ensemble

Traduisez les compositions vidéo Remotion (basées sur React) en compositions HyperFrames (HTML + GSAP). La plupart des idiomes Remotion ont des équivalents directs dans HyperFrames — la traduction est mécanique pour environ 80% des compositions typiques. Cette compétence encode la correspondance et se prémunit contre les 20% problématiques en refusant de traduire les schémas qui ne correspondent pas au modèle temporel de HF et en recommandant le modèle d'interopérabilité runtime du PR #214 à la place.

La compétence est livrée avec un corpus de test à plusieurs niveaux (T1–T4, 4 éléments au total) qui note les traductions par rapport à des seuils SSIM mesurés. Ne traduisez pas sans exécuter l'évaluation — une traduction qui « a l'air correcte » mais qui rend 0,05 SSIM de moins que la référence validée est silencieusement erronée.

Quand l'utiliser

Utilisez cette compétence UNIQUEMENT lorsque l'utilisateur demande explicitement une migration depuis Remotion. Exemples de phrases déclencheuses :

  • « portez mon projet Remotion vers HyperFrames »
  • « convertissez ce code Remotion en HyperFrames »
  • « migrez depuis Remotion »
  • « traduisez cette comp Remotion »
  • « réécrivez ceci en HTML HyperFrames »

N'utilisez PAS cette compétence lorsque :

  • (a) L'utilisateur crée une nouvelle composition HyperFrames, même s'il a ou teste une vidéo Remotion similaire.
  • (b) L'utilisateur mentionne Remotion en passant sans demander de migration.
  • (c) L'utilisateur partage du code Remotion comme référence plutôt que de demander une traduction.
  • (d) L'utilisateur demande « la même vidéo que ma Remotion » sans demander explicitement de migrer la source — traitez cela comme une nouvelle construction HyperFrames.

NON PRIS EN CHARGE (refusez — ce n'est pas ce que fait cette compétence) :

  • La direction inverse. Exporter une composition HyperFrames vers Remotion (ou vers tout autre framework) n'est pas un workflow — la traduction est Remotion → HyperFrames uniquement. Dites-le clairement.
  • Sources non-Remotion. Un projet After Effects (.aep), une animation Framer Motion / React simple / CSS, ou toute autre source d'un autre outil n'est pas une composition Remotion — il n'y a pas de source Remotion à traduire. Recréez-la nativement via /general-video, ou refusez si HyperFrames ne peut pas la représenter.

En cas de doute, optez par défaut pour la création d'une composition HyperFrames native avec /general-video (le flux de création général HyperFrames) à la place.

Workflow

Étape 1 : Analyser la source

Exécutez scripts/lint_source.py sur le répertoire source Remotion. L'analyse détecte les schémas qui ne peuvent pas être traduits proprement :

  • Blocages (refuser + recommander l'interop) : useState, useReducer, useEffect/useLayoutEffect avec dépendances non vides, calculateMetadata asynchrone, bibliothèques UI React tierces (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
  • Avertissements (traduire après avoir supprimé la construction) : configuration @remotion/lambda, delayRender, useCallback, useMemo, hooks personnalisés.
  • Informations (traduire avec note) : staticFile, interpolateColors.

Si un blocage se déclenche, arrêtez-vous. Lisez references/escape-hatch.md et affichez le message de recommandation. Les avertissements n'arrêtent pas la traduction — supprimez la construction problématique à l'étape 3 et notez l'écart dans TRANSLATION_NOTES.md. La configuration @remotion/lambda est le cas d'avertissement canonique : la compétence supprime l'import + les appels renderMediaOnLambda(...) mais traduit le reste de la composition.

Étape 2 : Planifier la traduction

Lisez references/api-map.md — l'index de chaque API Remotion et de son équivalent HF ou référence par sujet. Identifiez les références thématiques dont vous aurez besoin en fonction de ce qu'utilise la source :

Source contientCharger la référence
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

Ne les chargez pas toutes — chargez uniquement ce dont la source spécifique a besoin.

Étape 3 : Générer la composition HF

Émettez index.html avec :

  • Racine <div id="stage"> portant le data-composition-id de la composition, data-start="0", data-duration (en secondes), data-fps, data-width, data-height, plus un data-* par prop scalaire.
  • Une liste plate de divs de scène avec data-start / data-duration / data-track-index.
  • <style> en ligne pour la mise en page ; CSS définit l'état from de chaque propriété animée.
  • Une seule balise <script> en bas contenant une gsap.timeline({paused: true}) en pause. Chaque dérivation useCurrentFrame() de Remotion devient un tween sur cette timeline au bon décalage.
  • window.__timelines["<composition-id>"] = tl; enregistre la timeline avec le runtime de HF.

Les sous-composants React personnalisés sont intégrés en HTML répété en utilisant l'interface de prop comme modèle (voir parameters.md pour le motif data-* par instance).

Étape 4 : Valider

Exécutez le harnais d'évaluation — references/eval.md pour le guide complet. Chemin rapide :

# Rendre la référence Remotion (après npm install dans le fixture)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# Rendre la traduction HF
cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4

# Différence SSIM
../../scripts/render_diff.sh ./remotion-src/out/baseline.mp4 ./hf.mp4 ./diff

Seuil : ~0,02 en dessous de p05 du niveau de complexité de la source (voir le tableau des seuils validés de eval.md). Si la différence échoue, exécutez scripts/frame_strip.sh pour voir quelles images ont divergé, puis relisez la référence de timing/séquencement/média pertinente.

Critique : les deux rendus doivent utiliser un format de pixel correspondant. Définissez Config.setVideoImageFormat("png") + Config.setColorSpace("bt709") dans le remotion.config.ts de la source Remotion — sinon la différence mesure les différences d'encodeur (~0,05 SSIM d'impact), pas la fidélité de la traduction.

Étape 5 : Documenter les écarts

Tout ce qui n'a pas été traduit proprement (rampes de volume supprimées, présentations personnalisées approximatives, polices substituées) reçoit un fichier TRANSLATION_NOTES.md écrit à côté de la sortie HF. Voir references/limitations.md pour le format.

Ce que cette compétence NE fait PAS explicitement

  • Traduire les machines d'état React. Les compositions qui pilotent l'animation via useState + useEffect ne sont pas des cibles déterministes de capture d'images dans le modèle temporel de HyperFrames. Recommandez le modèle d'interopérabilité runtime.
  • Exécuter le pipeline de rendu de Remotion parallèlement à HyperFrames. C'est le modèle d'interopérabilité runtime du PR #214 — une solution séparée pour les compositions qui échouent à l'analyse de cette compétence.

(@remotion/lambda n'est pas un blocage — la configuration Lambda concerne le déploiement, pas l'animation. La compétence la supprime comme avertissement et traduit le reste. Voir references/escape-hatch.md.)

Comment noter votre propre traduction

Exécutez l'orchestrateur du corpus de test :

./assets/test-corpus/run.sh

Il exécute T1, T2, T3 (rendu + différence) et T4 (validation de l'analyse), affiche un tableau de réussite/échec par niveau, et émet un rapport JSON agrégé. Utilisez-le pour vérifier que la compétence fonctionne de bout en bout sur un checkout propre — et comme vérification de régression après modification d'une référence.

Référence validée (au 2026-04-27) :

NiveauForme de la compositionSSIM moyenSeuil
T1apparition en fondu d'un seul élément0,9740,95
T2multi-scène + spring + audio + image0,9850,95
T3piloté par données, sous-composants personnalisés, compteur0,9530,90
T4échappatoire (8 cas d'analyse)8/8 succèsn/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 associés