Communitygithub.com

AlessandroFare/fluxychat

Animationsleistungsprobleme wie Layout-Thrashing, Compositor-Eigenschaften, scrollgebundene Bewegungen und Weichzeichnungseffekte prüfen und beheben. Verwenden Sie dies, wenn Animationen ruckeln, Übergänge stocken oder Sie die Leistung von CSS/JS-Animationen überprüfen.

Was ist fluxychat?

Diese Fertigkeit ist ein spezialisiertes Tool zur Prüfung und Optimierung der Leistung von UI-Animationen. Sie hilft Entwicklern, häufige Fallstricke wie Layout-Thrashing, ineffiziente Paint-Operationen und scrollgebundene Bewegungen zu identifizieren und zu beheben. Die Fertigkeit ist frameworkunabhängig und kann mit CSS-Animationen, WAAPI, Motion, requestAnimationFrame und GSAP verwendet werden. Sie bietet eine priorisierte Liste von Regeln, die von kritischen (niemals zu verwendenden Mustern) bis zu weniger kritischen Bereichen (wie View-Transitions) reichen, sowie konkrete Codebeispiele für typische Korrekturen, wie die Umstellung von Layout- auf Transform-Animationen oder die Verwendung von Scroll-Timelines anstelle von JavaScript-basiertem Scrollen. Die Fertigkeit ist ideal für Code-Reviews und Debugging-Sitzungen, bei denen die Animationsleistung im Vordergrund steht.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/fixing-motion-performance

In Ihrer bevorzugten KI fragen

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

Dokumentation

Bewegungsleistung beheben

Beheben von Animationsleistungsproblemen.

Verwendung

  • /fixing-motion-performance Wendet diese Einschränkungen auf alle UI-Animationen in dieser Konversation an.

  • /fixing-motion-performance <datei> Überprüft die Datei anhand aller folgenden Regeln und meldet:

    • Verstöße (zitiert die genaue Zeile oder den Ausschnitt)
    • warum es wichtig ist (ein kurzer Satz)
    • eine konkrete Behebung (Codeebene-Vorschlag)

Migrieren Sie keine Animationsbibliotheken, es sei denn, dies wird ausdrücklich verlangt. Wenden Sie die Regeln innerhalb des vorhandenen Stacks an.

Wann anwenden

Referenzieren Sie diese Richtlinien bei:

  • Hinzufügen oder Ändern von UI-Animationen (CSS, WAAPI, Motion, rAF, GSAP)
  • Refaktorisieren von ruckeligen Interaktionen oder Übergängen
  • Implementieren von scrollgebundenen Bewegungen oder Einblendungen beim Scrollen
  • Animieren von Layout, Filtern, Masken, Verläufen oder CSS-Variablen
  • Überprüfen von Komponenten, die will-change, Transformationen oder Messungen verwenden

Glossar der Rendering-Schritte

  • compositing: transform, opacity
  • paint: color, borders, gradients, masks, images, filters
  • layout: size, position, flow, grid, flex

Regelkategorien nach Priorität

prioritätkategorieauswirkung
1niemals-Musterkritisch
2Mechanismus wählenkritisch
3Messunghoch
4Scrollenhoch
5Paintmittel-hoch
6Ebenenmittel
7Weichzeichnung und Filtermittel
8View-Transitionsniedrig
9Tool-Grenzenkritisch

Kurzreferenz

1. Niemals-Muster (kritisch)

  • Vermeiden Sie es, Layout-Reads und -Writes im selben Frame zu verschachteln
  • Animieren Sie Layout nicht kontinuierlich auf großen oder bedeutenden Oberflächen
  • Treiben Sie Animationen nicht über scrollTop, scrollY oder Scroll-Ereignisse an
  • Keine requestAnimationFrame-Schleifen ohne Abbruchbedingung
  • Mischen Sie nicht mehrere Animationssysteme, die jeweils Layout messen oder mutieren

2. Mechanismus wählen (kritisch)

  • Standardmäßig transform und opacity für Bewegung verwenden
  • JS-gesteuerte Animationen nur verwenden, wenn die Interaktion es erfordert
  • Paint- oder Layout-Animationen sind nur auf kleinen, isolierten Oberflächen akzeptabel
  • Einmalige Effekte sind häufiger akzeptabel als kontinuierliche Bewegung
  • Bevorzugen Sie die Downgrade-Technik gegenüber dem vollständigen Entfernen von Bewegungen

3. Messung (hoch)

  • Einmal messen, dann über transform oder opacity animieren
  • Alle DOM-Reads vor den Writes bündeln
  • Layout nicht wiederholt während einer Animation lesen
  • FLIP-ähnliche Übergänge für Layout-Effekte bevorzugen
  • Ansätze bevorzugen, die Messung und Writes bündeln

4. Scrollen (hoch)

  • Scroll- oder View-Timelines für scrollgebundene Bewegungen bevorzugen, wenn verfügbar
  • IntersectionObserver für Sichtbarkeit und Pausieren verwenden
  • Scrollposition nicht für Animationen abfragen
  • Animationen anhalten oder stoppen, wenn sie nicht sichtbar sind
  • Scrollgebundene Bewegungen dürfen kein kontinuierliches Layout oder Paint auf großen Oberflächen auslösen

5. Paint (mittel-hoch)

  • Paint-auslösende Animationen sind nur auf kleinen, isolierten Elementen erlaubt
  • Paint-intensive Eigenschaften nicht auf großen Containern animieren
  • CSS-Variablen für transform, opacity oder position nicht animieren
  • Geerbte CSS-Variablen nicht animieren
  • Animierte CSS-Variablen lokal begrenzen und Vererbung vermeiden

6. Ebenen (mittel)

  • Compositor-Bewegung erfordert Ebenen-Promotion, nie davon ausgehen
  • will-change temporär und chirurgisch einsetzen
  • Viele oder große Promoted-Layer vermeiden
  • Ebenenverhalten mit Tooling validieren, wenn Leistung wichtig ist

7. Weichzeichnung und Filter (mittel)

  • Weichzeichnungsanimation klein halten (<=8px)
  • Weichzeichnung nur für kurze, einmalige Effekte verwenden
  • Weichzeichnung nie kontinuierlich animieren
  • Weichzeichnung nie auf großen Oberflächen animieren
  • opacity und translate vor Weichzeichnung bevorzugen

8. View-Transitions (niedrig)

  • View-Transitions nur für Navigationsebene-Änderungen verwenden
  • View-Transitions für interaktionsintensive UIs vermeiden
  • View-Transitions vermeiden, wenn Unterbrechung oder Abbruch erforderlich ist
  • Größenänderungen als potenziell Layout-auslösend behandeln

9. Tool-Grenzen (kritisch)

  • Animationsbibliotheken nicht migrieren oder umschreiben, es sei denn, dies wird ausdrücklich verlangt
  • Diese Regeln innerhalb des vorhandenen Animationssystems anwenden
  • APIs niemals teilweise migrieren oder Stile innerhalb derselben Komponente mischen

Häufige Korrekturen

/* Layout-Thrashing: transform anstelle von width animieren */
/* vorher */ .panel { transition: width 0.3s; }
/* nachher */  .panel { transition: transform 0.3s; }

/* scrollgebunden: scroll-timeline anstelle von JS verwenden */
/* vorher */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* nachher */  .reveal { animation: fade-in linear; animation-timeline: view(); }
// Messung: Reads vor Writes bündeln (FLIP)
// vorher — Layout-Trash
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// nachher — einmal messen, über transform animieren
const first = el.getBoundingClientRect();
el.classList.add('moved');
const last = el.getBoundingClientRect();
el.style.transform = `translateX(${first.left - last.left}px)`;
requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });

Überprüfungsrichtlinien

  • Zuerst kritische Regeln durchsetzen (niemals-Muster, Tool-Grenzen)
  • Die kostengünstigste Renderarbeit wählen, die der Absicht entspricht
  • Für jede nicht standardmäßige Wahl die Einschränkung nennen, die sie rechtfertigt (Oberflächengröße, Dauer oder Interaktionsanforderung)
  • Bei der Überprüfung handlungsorientierte Hinweise und konkrete Alternativen gegenüber Theorie bevorzugen

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

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

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

AlessandroFare/fluxychat

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

Verwandte Skills