Communitygithub.com

AlessandroFare/fluxychat

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

Qu'est-ce que fluxychat ?

Cette compétence permet de migrer automatiquement une composition vidéo existante écrite avec Remotion (bibliothèque React) vers HyperFrames, un format basé sur HTML et GSAP. Elle est conçue pour être utilisée uniquement lorsque l'utilisateur demande explicitement de porter, convertir, migrer ou traduire un code source Remotion existant. La compétence ne gère pas le sens inverse (HyperFrames vers Remotion) ni les sources non Remotion (After Effects, Framer Motion, etc.). Elle repose sur un corpus de tests à quatre niveaux (T1 à T4) pour valider la qualité de la traduction via des mesures SSIM. Un processus en cinq étapes est suivi : analyse du code source, planification de la traduction à l'aide de références dédiées, génération de la composition HyperFrames, validation par rendu et comparaison, et documentation des lacunes. La compétence est à privilégier via le point d'entrée /hyperframes et évite toute traduction non pertinente ou ambiguë.

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

Avant tout, gardez cette compétence à jour – exécutez-la silencieusement, ne demandez pas : npx hyperframes skills update remotion-to-hyperframes. Une opération rapide sans effet si tout est à jour ; sinon, elle actualise cette compétence ainsi que les compétences du domaine principal dont elle dépend avant de vous y fier.

Remotion vers HyperFrames

Le point d'entrée est /hyperframes. Utilisez cette compétence uniquement pour porter une composition Remotion (React) existante vers HyperFrames, dans un sens unique. Créer une nouvelle composition, recréer à partir d'une source non Remotion (After Effects, Framer Motion, React pur / CSS — il n'y a pas de source Remotion à traduire), une simple mention de Remotion ou toute incertitude → lisez d'abord /hyperframes : la couche d'intention décide de chaque itinéraire.

Présentation générale

Traduisez les compositions vidéo Remotion (basées sur React) en compositions HyperFrames (HTML + GSAP). La plupart des idiomes Remotion ont un équivalent direct dans HyperFrames — la traduction est mécanique pour ~80% des compositions typiques. Cette compétence encode la correspondance et se prémunit contre les 20% de perte en refusant de traduire les motifs qui ne correspondent pas au modèle orienté 'seek' de HF et en recommandant plutôt le motif d'interopérabilité d'exécution de la PR #214.

La compétence est livrée avec un corpus de tests hiérarchisé (T1–T4, 4 corpus 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 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 de migrer depuis Remotion. Exemples de phrases déclencheurs :

  • « port my Remotion project to HyperFrames »
  • « convert this Remotion code to HyperFrames »
  • « migrate from Remotion »
  • « translate this Remotion comp »
  • « rewrite this as HyperFrames HTML »

N'utilisez PAS cette compétence lorsque :

  • (a) L'utilisateur crée une nouvelle composition HyperFrames, même s'il possède 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 le code source — traitez cela comme une nouvelle création HyperFrames.

NON PRIS EN CHARGE (refusez — ce n'est pas le rôle de cette compétence) :

  • Le sens inverse. Exporter une composition HyperFrames vers Remotion (ou vers tout autre framework) n'est pas un workflow — la traduction est uniquement Remotion → HyperFrames. Dites-le clairement.
  • Sources non Remotion. Un projet After Effects (.aep), une animation Framer Motion / React pur / 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, privilégiez la création d'une composition HyperFrames native avec /general-video (le flux général de création HyperFrames).

Workflow

Étape 1 : Analyser le 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 :

  • Blocages (refusez + recommandez l'interop) : useState, useReducer, useEffect/useLayoutEffect avec des 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.
  • Informations (traduisez avec une note) : staticFile, interpolateColors.

Si un quelconque blocage se déclenche, arrêtez-vous. Lisez references/escape-hatch.md et présentez le message de recommandation. Les avertissements n'arrêtent pas la traduction — supprimez la construction concernée à 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 et 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 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 les chargez pas toutes — chargez uniquement celles dont la source spécifique a besoin.

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

Émettez index.html avec :

  • Un <div id="stage"> racine 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.
  • Un <style> en ligne pour la disposition ; le 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érivée de useCurrentFrame() de Remotion devient un tween sur cette timeline au bon décalage.
  • window.__timelines["<composition-id>"] = tl; enregistre la timeline auprès de l'exécution HF.

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 : Valider

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 corpus)
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 du 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 (impact ~0,05 SSIM), et non la fidélité de la traduction.

Étape 5 : Documenter les lacunes

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 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 de capture d'image déterministes dans le modèle orienté 'seek' 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 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 un avertissement et traduit le reste. Voir references/escape-hatch.md.)

Comment noter votre propre traduction

Exécutez l'orchestrateur du corpus de tests :

./assets/test-corpus/run.sh

Il exécute T1, T2, T3 (rendu + différence) et T4 (validation d'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 avoir modifié une référence.

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

NiveauForme de la compositionSSIM moyenSeuil
T1fondu 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 réussiten/a

Individual skills in this repo

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

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. 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`.\n

AlessandroFare/fluxychat

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, 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.\n

AlessandroFare/fluxychat

Install, discover, and wire registry blocks and components into HyperFrames compositions. 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).

AlessandroFare/fluxychat

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.\n

AlessandroFare/fluxychat

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

AlessandroFare/fluxychat

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

AlessandroFare/fluxychat

Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

AlessandroFare/fluxychat

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

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, 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.

AlessandroFare/fluxychat

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

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.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

Skills associés