Communitygithub.com

AlessandroFare/fluxychat

Auditez et corrigez les problèmes de performance d'animation, y compris le thrashing de layout, les propriétés du compositeur, le mouvement lié au défilement et les effets de flou. Utilisez-le lorsque les animations saccadent, les transitions hoquettent ou pour examiner les performances des animations CSS/JS.

Qu'est-ce que fluxychat ?

Ce skill, AlessandroFare/fluxychat, est un outil de diagnostic et de correction des problèmes de performance d'animation dans les interfaces utilisateur. Il s'applique à tout travail d'animation dans la conversation en cours, que ce soit pour auditer un fichier spécifique ou pour guider le développement. Il est conçu pour les agents d'IA comme Claude Code, Cursor ou Codex, et fournit des règles précises et actionnables, classées par priorité et impact. Les catégories couvrent les patterns à éviter (critique), le choix du mécanisme d'animation, les mesures, le défilement, la peinture, les couches, le flou, les transitions de vue et les limites des outils. Le skill insiste sur l'utilisation de `transform` et `opacity` pour des animations performantes, le batching des lectures et écritures DOM, et l'évitement des boucles d'animation coûteuses en layout ou en peinture. Il inclut des exemples de code concrets (CSS et JS) pour remplacer les mauvaises pratiques par des solutions optimales, comme passer de `width` animée à `transform`, ou utiliser les `scroll-timeline` au lieu d'écouter les événements de défilement. En résumé, c'est un guide complet pour tout développeur souhaitant garantir des animations fluides et sans saccades, en respectant les contraintes des navigateurs modernes.

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

Demander à votre IA préférée

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

Documentation

correction-performance-mouvement

Corrigez les problèmes de performance d'animation.

comment utiliser

  • /correction-performance-mouvement Appliquez ces contraintes à tout travail d'animation UI dans cette conversation.

  • /correction-performance-mouvement <fichier> Examinez le fichier par rapport à toutes les règles ci-dessous et signalez :

    • les violations (citez la ligne ou l'extrait exact)
    • pourquoi c'est important (une phrase courte)
    • une correction concrète (suggestion au niveau du code)

Ne migrez pas les bibliothèques d'animation sauf demande explicite. Appliquez les règles dans la pile existante.

quand appliquer

Référez-vous à ces directives lorsque :

  • vous ajoutez ou modifiez des animations UI (CSS, WAAPI, Motion, rAF, GSAP)
  • vous remaniez des interactions ou transitions saccadées
  • vous implémentez un mouvement lié au défilement ou un dévoilement au défilement
  • vous animez le layout, les filtres, les masques, les dégradés ou les variables CSS
  • vous examinez des composants qui utilisent will-change, les transformations ou les mesures

glossaire des étapes de rendu

  • composite : transform, opacity
  • peinture : couleur, bordures, dégradés, masques, images, filtres
  • layout : taille, position, flux, grille, flex

catégories de règles par priorité

prioritécatégorieimpact
1patterns jamaiscritique
2choisir le mécanismecritique
3mesureélevé
4défilementélevé
5peinturemoyen-élevé
6couchesmoyen
7flou et filtresmoyen
8transitions de vuefaible
9limites des outilscritique

référence rapide

1. patterns jamais (critique)

  • n'entrelacez pas les lectures et écritures de layout dans la même frame
  • n'animez pas le layout en continu sur des surfaces grandes ou significatives
  • ne pilotez pas l'animation à partir de scrollTop, scrollY ou des événements de défilement
  • pas de boucles requestAnimationFrame sans condition d'arrêt
  • ne mélangez pas plusieurs systèmes d'animation qui mesurent ou modifient le layout

2. choisir le mécanisme (critique)

  • privilégiez par défaut transform et opacity pour le mouvement
  • utilisez l'animation pilotée par JS uniquement lorsque l'interaction l'exige
  • l'animation de peinture ou de layout n'est acceptable que sur des surfaces petites et isolées
  • les effets ponctuels sont plus acceptables que le mouvement continu
  • préférez rétrograder la technique plutôt que de supprimer entièrement le mouvement

3. mesure (élevé)

  • mesurez une fois, puis animez via transform ou opacity
  • regroupez toutes les lectures DOM avant les écritures
  • ne lisez pas le layout de manière répétée pendant une animation
  • préférez les transitions de style FLIP pour les effets de layout
  • préférez les approches qui regroupent la mesure et les écritures

4. défilement (élevé)

  • préférez les chronologies de défilement ou de vue pour le mouvement lié au défilement lorsqu'elles sont disponibles
  • utilisez IntersectionObserver pour la visibilité et la pause
  • ne sondez pas la position de défilement pour l'animation
  • mettez en pause ou arrêtez les animations lorsqu'elles sont hors écran
  • le mouvement lié au défilement ne doit pas déclencher de layout ou de peinture continue sur de grandes surfaces

5. peinture (moyen-élevé)

  • l'animation déclenchant la peinture n'est autorisée que sur des éléments petits et isolés
  • n'animez pas les propriétés lourdes en peinture sur de grands conteneurs
  • n'animez pas les variables CSS pour transform, opacity ou la position
  • n'animez pas les variables CSS héritées
  • limitez les variables CSS animées localement et évitez l'héritage

6. couches (moyen)

  • le mouvement du compositeur nécessite la promotion de couche, ne la tenez jamais pour acquise
  • utilisez will-change de manière temporaire et chirurgicale
  • évitez de nombreuses ou grandes couches promues
  • validez le comportement des couches avec des outils lorsque la performance est importante

7. flou et filtres (moyen)

  • gardez l'animation de flou petite (<= 8px)
  • utilisez le flou uniquement pour des effets courts et ponctuels
  • n'animez jamais le flou en continu
  • n'animez jamais le flou sur de grandes surfaces
  • préférez opacity et translate avant le flou

8. transitions de vue (faible)

  • utilisez les transitions de vue uniquement pour les changements au niveau de la navigation
  • évitez les transitions de vue pour les UI riches en interactions
  • évitez les transitions de vue lorsque l'interruption ou l'annulation est nécessaire
  • traitez les changements de taille comme potentiellement déclencheurs de layout

9. limites des outils (critique)

  • ne migrez ni ne réécrivez les bibliothèques d'animation sauf demande explicite
  • appliquez ces règles dans le système d'animation existant
  • ne migrez jamais partiellement les API et ne mélangez pas les styles au sein du même composant

corrections courantes

/* thrashing de layout : animez transform au lieu de width */
/* avant */ .panneau { transition: width 0.3s; }
/* après */  .panneau { transition: transform 0.3s; }

/* lié au défilement : utilisez scroll-timeline au lieu de JS */
/* avant */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* après */  .reveal { animation: fade-in linear; animation-timeline: view(); }
// mesure : regroupez les lectures avant les écritures (FLIP)
// avant — thrashing de layout
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// après — mesurez une fois, animez via transform
const premier = el.getBoundingClientRect();
el.classList.add('deplace');
const dernier = el.getBoundingClientRect();
el.style.transform = `translateX(${premier.left - dernier.left}px)`;
requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });

directives de révision

  • appliquez en priorité les règles critiques (patterns jamais, limites des outils)
  • choisissez le travail de rendu le moins coûteux qui correspond à l'intention
  • pour tout choix non par défaut, indiquez la contrainte qui le justifie (taille de surface, durée ou exigence d'interaction)
  • lors de la révision, privilégiez les notes actionnables et les alternatives concrètes plutôt que la théorie

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.

Skills associés