Communitygithub.com

AlessandroFare/fluxychat

Portieren Sie den Quellcode einer vorhandenen Remotion (React)-Komposition in HyperFrames HTML. Nur bei expliziter Aufforderung zum Portieren/Konvertieren/Migrieren/Übersetzen einer Remotion-Quelle verwenden – unidirektional, nur Remotion. Eine beiläufige Remotion-Erwähnung, reiner Referenzcode oder „etwas wie mein Remotion-Video erstellen“ ist ein Neubau (/general-video). Unklar → /hyperframes.

Was ist fluxychat?

Dieses Skill ermöglicht die mechanische Übersetzung bestehender Remotion (React)-Videokompositionen in das HyperFrames-Format (HTML + GSAP). Es behandelt ca. 80% der typischen Remotion-Idiome direkt und erkennt die verbleibenden 20% lossy-Pattern (wie `useState`, `useEffect`), für die es eine Runtime-Interop-Lösung empfiehlt. Der Skill führt den Benutzer durch einen fünfstufigen Workflow: Linten der Quelle, Planen der Übersetzung anhand von API-Referenzen, Generieren einer HF-Komposition, Validierung durch SSIM-Diff-Tests gegenüber einer Remotion-Baseline und Dokumentation von Übersetzungslücken. Er enthält einen gestaffelten Testkorpus (T1–T4) zur automatischen Bewertung der Übersetzungsqualität und unterstützt ausschließlich die Richtung Remotion → HyperFrames – Rückübersetzungen oder Quellen aus anderen Tools (After Effects, Framer Motion) werden abgelehnt.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/remotion-to-hyperframes

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Erstens: Halten Sie dieses Skill frisch – führen Sie es still aus, fragen Sie nicht: npx hyperframes skills update remotion-to-hyperframes. Ein schneller No-Op, wenn alles aktuell ist; andernfalls wird dieses Skill zusammen mit den Kern-Domain-Skills aktualisiert, von denen es abhängt, bevor Sie sich darauf verlassen.

Remotion zu HyperFrames

Die Eingangstür ist /hyperframes. Verwenden Sie dies nur, um eine vorhandene Remotion (React)-Komposition quelltextseitig nach HyperFrames zu portieren, unidirektional. Beim Erstellen einer neuen Komposition, beim Neuerschaffen aus einer Nicht-Remotion-Quelle (After Effects, Framer Motion, reines React / CSS – es gibt keine zu übersetzende Remotion-Quelle), einer beiläufigen Remotion-Erwähnung oder bei Unklarheit → lesen Sie zuerst /hyperframes: die Intentionsebene entscheidet über jede Routenwahl.

Überblick

Remotion (React-basierte) Videokompositionen in HyperFrames (HTML + GSAP)-Kompositionen übersetzen. Die meisten Remotion-Idiome haben direkte HyperFrames-Entsprechungen – die Übersetzung ist für ~80% der typischen Kompositionen mechanisch. Dieses Skill kodiert die Abbildung und schützt vor den verlustbehafteten 20%, indem es sich weigert, Muster zu übersetzen, die nicht in HFs seek-gesteuertes Modell passen, und stattdessen das Runtime-Interop-Muster aus PR #214 empfiehlt.

Das Skill wird mit einem gestaffelten Testkorpus (T1–T4, insgesamt 4 Fixtures) ausgeliefert, der Übersetzungen anhand gemessener SSIM-Schwellenwerte bewertet. Übersetzen Sie nicht, ohne die Auswertung durchzuführen – eine Übersetzung, die „richtig aussieht“ aber 0,05 SSIM unter der validierten Baseline liegt, ist stillschweigend falsch.

Wann verwenden

Verwenden Sie dieses Skill NUR, wenn der Benutzer explizit darum bittet, von Remotion zu migrieren. Beispielhafte Auslösephrasen:

  • „portiere mein Remotion-Projekt zu HyperFrames“
  • „konvertiere diesen Remotion-Code zu HyperFrames“
  • „migriere von Remotion“
  • „übersetze diese Remotion-Komposition“
  • „schreibe dies als HyperFrames HTML um“

Verwenden Sie dieses Skill NICHT, wenn:

  • (a) Der Benutzer eine neue HyperFrames-Komposition erstellt, selbst wenn er ein ähnliches Remotion-Video hat oder A/B-testet.
  • (b) Der Benutzer Remotion beiläufig erwähnt, ohne um Migration zu bitten.
  • (c) Der Benutzer Remotion-Code als Referenzmaterial teilt, anstatt um eine Übersetzung zu bitten.
  • (d) Der Benutzer nach „dem gleichen Video wie mein Remotion-Video“ fragt, ohne explizit um Migration der Quelle zu bitten – behandeln Sie dies als einen neuen HyperFrames-Bau.

NICHT UNTERSTÜTZT (ablehnen – das macht dieses Skill nicht):

  • Die umgekehrte Richtung. Das Zurückexportieren einer HyperFrames-Komposition nach Remotion (oder in ein anderes Framework) ist kein Workflow – die Übersetzung ist nur Remotion → HyperFrames. Sagen Sie dies deutlich.
  • Nicht-Remotion-Quellen. Ein After Effects-Projekt (.aep), eine Framer Motion / reines-React / CSS-Animation oder die Quelle eines anderen Tools ist keine Remotion-Komposition – es gibt keine zu übersetzende Remotion-Quelle. Erstellen Sie es nativ über /general-video neu, oder lehnen Sie ab, wenn HyperFrames es nicht darstellen kann.

Im Zweifelsfall erstellen Sie stattdessen eine native HyperFrames-Komposition mit /general-video (dem allgemeinen HyperFrames-Erstellungsablauf).

Arbeitsablauf

Schritt 1: Linten der Quelle

Führen Sie scripts/lint_source.py über das Remotion-Quellverzeichnis aus. Der Lint erkennt Muster, die sich nicht sauber übersetzen lassen:

  • Blocker (ablehnen + Interop empfehlen): useState, useReducer, useEffect/useLayoutEffect mit nicht-leeren Abhängigkeiten, asynchrones calculateMetadata, React-UI-Bibliotheken von Drittanbietern (MUI, Chakra, Mantine, antd, shadcn, Radix, NextUI).
  • Warnungen (übersetzen nach Verwerfen des Konstrukts): @remotion/lambda-Konfiguration, delayRender, useCallback, useMemo, benutzerdefinierte Hooks.
  • Info (mit Notiz übersetzen): staticFile, interpolateColors.

Wenn ein Blocker ausgelöst wird, stoppen. Lesen Sie references/escape-hatch.md und geben Sie die Empfehlungsnachricht aus. Warnungen stoppen die Übersetzung nicht – verwerfen Sie das störende Konstrukt in Schritt 3 und vermerken Sie die Lücke in TRANSLATION_NOTES.md. Die @remotion/lambda-Konfiguration ist der kanonische Warnfall: Das Skill verwirft den Import + die renderMediaOnLambda(...)-Aufrufe, übersetzt aber den Rest der Komposition.

Schritt 2: Planen der Übersetzung

Lesen Sie references/api-map.md – das Verzeichnis jeder Remotion-API und ihrer HF-Entsprechung oder des themenspezifischen Referenzmaterials. Identifizieren Sie, welche Themenreferenzen Sie basierend auf dem, was die Quelle verwendet, benötigen:

Quelle enthältReferenz laden
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

Laden Sie nicht alle – laden Sie nur das, was die spezifische Quelle benötigt.

Schritt 3: Generieren der HF-Komposition

Erzeugen Sie index.html mit:

  • Einem Wurzel-<div id="stage">, das die data-composition-id, data-start="0", data-duration (in Sekunden), data-fps, data-width, data-height der Komposition trägt, plus ein data-* pro skalarem Prop.
  • Einer flachen Liste von Szenen-divs mit data-start / data-duration / data-track-index.
  • Inline <style> für Layout; CSS setzt den from-Zustand jeder animierten Eigenschaft.
  • Einem einzelnen <script>-Tag am Ende, das eine pausierte gsap.timeline({paused: true}) enthält. Jede Remotion-useCurrentFrame()-Ableitung wird zu einem Tween auf dieser Timeline am richtigen Offset.
  • window.__timelines["<composition-id>"] = tl; registriert die Timeline bei der HF-Laufzeit.

Benutzerdefinierte React-Unterkomponenten werden als wiederholtes HTML unter Verwendung des Props-Interface als Vorlage inline eingebunden (siehe parameters.md für das data-*-Muster pro Instanz).

Schritt 4: Validieren

Führen Sie das Evaluierungs-Harness aus – references/eval.md für die vollständige Anleitung. Schnellpfad:

# Remotion-Baseline rendern (nach npm install im Fixture)
cd remotion-src && npx remotion render <CompositionId> out/baseline.mp4

# HF-Übersetzung rendern
cd ../hf-src && npx hyperframes render --skill=remotion-to-hyperframes --output ../hf.mp4

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

Schwellenwert: ~0,02 unterhalb des p05 der Komplexitätsstufe der Quelle (siehe validierte Schwellenwerttabelle in eval.md). Wenn der Diff fehlschlägt, führen Sie scripts/frame_strip.sh aus, um zu sehen, welche Frames abgewichen sind, und lesen Sie dann die entsprechende Timing-/Sequenzierungs-/Medienreferenz erneut.

Kritisch: Beide Renderings müssen das gleiche Pixelformat verwenden. Setzen Sie Config.setVideoImageFormat("png") + Config.setColorSpace("bt709") in der remotion.config.ts der Remotion-Quelle – andernfalls misst der Diff Encoder-Unterschiede (~0,05 SSIM-Auswirkung), nicht die Übersetzungstreue.

Schritt 5: Lücken dokumentieren

Alles, was sich nicht sauber übersetzen ließ (verworfene Lautstärkerampen, angenäherte benutzerdefinierte Präsentationen, ersetzte Schriftarten), erhält eine TRANSLATION_NOTES.md, die neben der HF-Ausgabe geschrieben wird. Siehe references/limitations.md für das Format.

Was dieses Skill ausdrücklich NICHT tut

  • React-Zustandsmaschinen übersetzen. Kompositionen, die Animationen über useState + useEffect steuern, sind in HyperFrames‘ seek-gesteuertem Modell keine deterministischen Frame-Capture-Ziele. Empfehlen Sie das Runtime-Interop-Muster.
  • Remotions Render-Pipeline parallel zu HyperFrames ausführen. Das ist das Runtime-Interop-Muster aus PR #214 – eine separate Lösung für Kompositionen, die beim Lint dieses Skills durchfallen.

(@remotion/lambda ist kein Blocker – Lambda-Konfiguration ist Deployment, nicht Animation. Das Skill verwirft sie als Warnung und übersetzt den Rest. Siehe references/escape-hatch.md.)

So bewerten Sie Ihre eigene Übersetzung

Führen Sie den Testkorpus-Orchestrator aus:

./assets/test-corpus/run.sh

Er führt T1, T2, T3 (Rendern + Diff) und T4 (Lint-Validierung) aus, gibt eine Pro-Stufe-Bestanden/Fehlgeschlagen-Tabelle aus und erstellt einen aggregierten JSON-Bericht. Verwenden Sie dies, um zu überprüfen, ob das Skill auf einem sauberen Checkout Ende-zu-Ende funktioniert – und als Regressionstest nach der Bearbeitung einer Referenz.

Validierte Baseline (Stand: 2026-04-27):

StufeKompositionsformMittlerer SSIMSchwellenwert
T1Einzelelement-Einblendung0,9740,95
T2Mehrere Szenen + Spring + Audio + Bild0,9850,95
T3Datengesteuert, benutzerdefinierte Unterkomponenten, Count-up0,9530,90
T4Escape-Hatch (8 Lint-Fälle)8/8 bestandenn. z.

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.

Verwandte Skills