Communitygithub.com

laviedezidane/hyperframes-skill

Porte une composition existante de Remotion (React) en HTML HyperFrames. À utiliser UNIQUEMENT sur demande explicite de portage/conversion/migration/traduction d'une source Remotion — unidirectionnel, Remotion uniquement. Une simple mention de Remotion, du code de référence seul, ou « fait quelque chose comme ma vidéo Remotion » est une nouvelle création (/general-video). Si incertitude → /hyperframes.

Qu'est-ce que hyperframes-skill ?

Ce skill traduit mécaniquement des compositions vidéo Remotion (basées sur React) en compositions HyperFrames (HTML + GSAP). Il gère environ 80 % des cas d'usage courants via une cartographie d'API directe, mais refuse de traduire les motifs qui ne s'adaptent pas au modèle orienté image-clé d'HyperFrames (comme useState/useEffect avec dépendances) et recommande plutôt un motif d'interopérabilité d'exécution. Le skill inclut un corpus de test à quatre niveaux (T1–T4) qui valide les traductions par rapport à des seuils SSIM mesurés, garantissant que les traductions qui « ont l'air correctes » mais réduisent la similarité structurelle sont signalées comme erronées. Il est conçu pour être utilisé avec Claude Code, Cursor, Codex et des agents similaires, et nécessite que l'utilisateur exécute npx hyperframes skills update remotion-to-hyperframes avant la première utilisation pour garantir la fraîcheur des dépendances.

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

Installation du plugin : Avant les commandes de configuration ou de mise à jour, suivez les règles d'installation du plugin lorsque ce skill est utilisé à l'intérieur d'un plugin HyperFrames. Les installations autonomes conservent les instructions de mise à jour ci-dessous.

Avant tout, maintenez ce skill à jour — confirmez avec l'utilisateur avant d'exécuter : npx hyperframes skills update remotion-to-hyperframes. Une opération rapide sans effet si tout est à jour ; sinon, il rafraîchit ce skill ainsi que les skills de domaine principaux dont il dépend avant que vous ne les utilisiez.

Remotion vers HyperFrames

La porte d'entrée est /hyperframes. Utilisez ceci uniquement pour porter une composition Remotion (React) existante en HyperFrames, dans un seul sens. La création d'une nouvelle composition, la recréation à partir d'une source non-Remotion (After Effects, Framer Motion, React/CSS pur — il n'y a pas de source Remotion à traduire), une simple mention de Remotion, ou toute incertitude → lisez /hyperframes d'abord : la couche d'intention décide de chaque route.

Aperçu

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. Ce skill encode la correspondance et se protège contre les 20 % qui entraînent une perte en refusant de traduire les motifs qui ne s'adaptent pas au modèle orienté image-clé d'HF et en recommandant plutôt le motif d'interopérabilité d'exécution décrit dans la PR #214.

Le skill est livré avec un corpus de test à plusieurs niveaux (T1–T4, 4 cas de test au total) qui évalue 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 dont le rendu est 0,05 SSIM plus bas que la référence validée est silencieusement erronée.

Quand l'utiliser

Utilisez ce skill UNIQUEMENT lorsque l'utilisateur demande explicitement de migrer depuis Remotion. Exemples de phrases déclencheurs :

  • « porte mon projet Remotion vers HyperFrames »
  • « convertis ce code Remotion en HyperFrames »
  • « migre depuis Remotion »
  • « traduis cette composition Remotion »
  • « réécris ceci en HTML HyperFrames »

N'utilisez PAS ce skill lorsque :

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

NON PRIS EN CHARGE (refusez — ce n'est pas ce que fait ce skill) :

  • 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 pur / CSS, ou toute autre source d'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, revenez à /hyperframes ; sa couche d'intention choisit la route.

Workflow

Étape 1 : Analyse du code source

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

  • Bloquants (refusez + recommandez 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 (traduisez après avoir supprimé la construction) : configuration @remotion/lambda, delayRender, useCallback, useMemo, hooks personnalisés.
  • Infos (traduisez avec une note) : staticFile, interpolateColors.

Si un bloqueur 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 incriminée à l'étape 3 et notez l'écart dans TRANSLATION_NOTES.md. La configuration @remotion/lambda est le cas d'avertissement canonique : le skill supprime l'import et les appels renderMediaOnLambda(...) mais traduit le reste de la composition.

Étape 2 : Planifiez la traduction

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

La 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 chargez pas toutes — chargez uniquement ce que la source spécifique nécessite.

Recherchez dans le catalogue en direct tout effet visuel que le tableau ne mappe pas. Lorsque la source peint un rendu sans équivalent API HF — un overlay scanline/CRT, un passage glitch ou aberration chromatique, un fondu shader, un traitement grain de film — exécutez npx hyperframes catalog --query "<l'effet, en anglais simple>" --json avant de l'écrire manuellement en GSAP. La recherche n'a besoin d'aucune installation : pas de projet, pas d'add préalable, pas de compte. Elle classe l'ensemble du registre hébergé (~400 blocs et composants) depuis n'importe quel répertoire, et transitions.md emprunte déjà cette route pour clockWipe() / iris() via npx hyperframes add sdf-iris. Un composant réel est plus proche de la source qu'une approximation manuelle, donc il augmente généralement le SSIM plutôt que de le diminuer — mais la différence de rendu à l'étape 4 reste l'arbitre. Écrivez l'effet manuellement lorsqu'une recherche ne retourne rien qui convienne, et enregistrez la substitution dans TRANSLATION_NOTES.md dans les deux cas.

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

Émettez index.html avec :

  • <div id="stage"> racine portant data-composition-id, data-start="0", data-duration (en secondes), data-fps, data-width, data-height, plus un data-* par prop scalaire.
  • Un <div> hôte par scène avec data-composition-src="compositions/<scene>.html" et data-start / data-duration / data-track-index. La racine ne contient aucune mise en page imbriquée.
  • Un compositions/<scene>.html par scène (une sous-composition <template>) : son <style> en ligne pour la mise en page (CSS définit l'état from de chaque propriété animée), son balisage, et une gsap.timeline({paused: true}) en temps local de la scène. Chaque dérivation de useCurrentFrame() Remotion devient une interpolation sur cette timeline au décalage dans la scène.
  • window.__timelines["<scene-id>"] = tl; dans chaque fichier de scène, et window.__timelines["<composition-id>"] pour la timeline propre de la racine (éventuellement vide).

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

Étape 4 : Validez

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

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

# Rendu de 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 dans 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 appropriée.

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

Étape 5 : Documentez les écarts

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

Ce que ce skill ne fait PAS explicitement

  • Traduire les machines d'état React. Les compositions qui animent via useState + useEffect ne sont pas des cibles de capture d'image déterministe dans le modèle orienté image-clé d'HyperFrames. Recommandez le motif d'interopérabilité d'exécution.
  • Exécuter le pipeline de rendu Remotion parallèlement à HyperFrames. C'est le motif d'interopérabilité d'exécution de la PR #214 — une solution distincte pour les compositions qui échouent à l'analyse de ce skill.

(@remotion/lambda n'est pas un bloqueur — la configuration Lambda est du déploiement, pas de l'animation. Le skill la supprime comme avertissement et traduit le reste. Voir references/escape-hatch.md.)

Comment évaluer votre propre traduction

Exécutez l'orchestrateur du corpus de test :

./assets/test-corpus/run.sh

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

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

NiveauForme de la compositionSSIM moyenSeuil
T1fondu d'entrée à élément unique0,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 réussiten/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 associés