Communitygithub.com

AlessandroFare/fluxychat

Auditar y corregir problemas de rendimiento de animaciones como thrashing de layout, propiedades de composición, movimiento vinculado al desplazamiento y efectos de desenfoque. Úsalo cuando las animaciones se entrecorten, las transiciones titubeen o al revisar el rendimiento de animaciones CSS/JS.

¿Qué es fluxychat?

Esta habilidad (skill) proporciona un conjunto integral de pautas y verificaciones automatizadas para diagnosticar y solucionar problemas de rendimiento en animaciones web. Es útil para desarrolladores que trabajan con animaciones CSS, JavaScript (incluyendo APIs como WAAPI, rAF, Motion, GSAP) y que enfrentan problemas como tartamudeo (jank), transiciones bruscas o bajo rendimiento general. La habilidad se aplica a cualquier plataforma que permita la personalización de animaciones (como Claude Code, Cursor, Codex) y funciona estableciendo restricciones en la conversación o revisando archivos específicos. Según su documentación SKILL.md, la habilidad categoriza las reglas por prioridad (desde patrones críticos que nunca deben usarse hasta límites de herramientas) y ofrece una referencia rápida, un glosario de pasos de renderizado, ejemplos de correcciones comunes y una guía de revisión. El objetivo es minimizar el trabajo de renderizado (layout, paint, composite) optando por transformaciones y opacidad cuando sea posible, evitando el thrashing de layout, y utilizando técnicas como FLIP, Scroll Timelines o IntersectionObserver para lograr animaciones fluidas y eficientes.

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

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

corrección-rendimiento-movimiento

Corrige problemas de rendimiento en animaciones.

cómo usar

  • /corrección-rendimiento-movimiento Aplica estas restricciones a cualquier trabajo de animación de UI en esta conversación.

  • /corrección-rendimiento-movimiento <archivo> Revisa el archivo según todas las reglas a continuación e informa:

    • violaciones (cita la línea exacta o fragmento)
    • por qué es importante (una frase corta)
    • una solución concreta (sugerencia a nivel de código)

No migres librerías de animación a menos que se solicite explícitamente. Aplica las reglas dentro del stack existente.

cuándo aplicar

Consulta estas pautas cuando:

  • agregues o modifiques animaciones de UI (CSS, WAAPI, Motion, rAF, GSAP)
  • refactorices interacciones o transiciones defectuosas
  • implementes movimiento vinculado al desplazamiento o revelación al desplazarse
  • animes layout, filtros, máscaras, degradados o variables CSS
  • revises componentes que usan will-change, transformaciones o mediciones

glosario de pasos de renderizado

  • composite: transform, opacity
  • paint: color, bordes, degradados, máscaras, imágenes, filtros
  • layout: tamaño, posición, flujo, grid, flex

categorías de reglas por prioridad

prioridadcategoríaimpacto
1patrones que nunca se deben usarcrítico
2elegir el mecanismocrítico
3mediciónalto
4desplazamientoalto
5pinturamedio-alto
6capasmedio
7desenfoque y filtrosmedio
8transiciones de vistabajo
9límites de herramientascrítico

referencia rápida

1. patrones que nunca se deben usar (crítico)

  • no intercales lecturas y escrituras de layout en el mismo frame
  • no animes layout de forma continua en superficies grandes o significativas
  • no impulses animaciones desde scrollTop, scrollY o eventos de scroll
  • no uses bucles requestAnimationFrame sin una condición de parada
  • no mezcles múltiples sistemas de animación que midan o muten layout

2. elegir el mecanismo (crítico)

  • usa por defecto transform y opacity para el movimiento
  • usa animación impulsada por JS solo cuando la interacción lo requiera
  • la animación de paint o layout es aceptable solo en superficies pequeñas y aisladas
  • los efectos únicos son más aceptables que el movimiento continuo
  • prefiere degradar la técnica en lugar de eliminar el movimiento por completo

3. medición (alto)

  • mide una vez, luego anima mediante transform u opacity
  • agrupa todas las lecturas del DOM antes de las escrituras
  • no leas el layout repetidamente durante una animación
  • prefiere transiciones de estilo FLIP para efectos similares a layout
  • prefiere enfoques que agrupen medición y escrituras

4. desplazamiento (alto)

  • prefiere Scroll o View Timelines para movimiento vinculado al desplazamiento cuando estén disponibles
  • usa IntersectionObserver para visibilidad y pausa
  • no consultes la posición de desplazamiento para animación
  • pausa o detén las animaciones cuando estén fuera de pantalla
  • el movimiento vinculado al desplazamiento no debe activar layout o paint continuo en superficies grandes

5. pintura (medio-alto)

  • la animación que activa paint solo está permitida en elementos pequeños y aislados
  • no animes propiedades que activan paint en contenedores grandes
  • no animes variables CSS para transform, opacity o posición
  • no animes variables CSS heredadas
  • limita las variables CSS animadas localmente y evita la herencia

6. capas (medio)

  • el movimiento del compositor requiere promoción de capa, nunca lo des por sentado
  • usa will-change de forma temporal y quirúrgica
  • evita muchas capas promocionadas o grandes
  • valida el comportamiento de las capas con herramientas cuando el rendimiento importe

7. desenfoque y filtros (medio)

  • mantén la animación de desenfoque pequeña (<=8px)
  • usa desenfoque solo para efectos cortos y únicos
  • nunca animes desenfoque de forma continua
  • nunca animes desenfoque en superficies grandes
  • prefiere opacity y translate antes que desenfoque

8. transiciones de vista (bajo)

  • usa transiciones de vista solo para cambios a nivel de navegación
  • evita transiciones de vista para UI con mucha interacción
  • evita transiciones de vista cuando se requiera interrupción o cancelación
  • trata los cambios de tamaño como potencialmente activadores de layout

9. límites de herramientas (crítico)

  • no migres ni reescribas librerías de animación a menos que se solicite explícitamente
  • aplica estas reglas dentro del sistema de animación existente
  • nunca migres APIs parcialmente ni mezcles estilos dentro del mismo componente

correcciones comunes

/* thrashing de layout: anima transform en lugar de width */
/* antes */ .panel { transition: width 0.3s; }
/* después */  .panel { transition: transform 0.3s; }

/* vinculado a scroll: usa scroll-timeline en lugar de JS */
/* antes */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* después */  .reveal { animation: fade-in linear; animation-timeline: view(); }
// medición: agrupa lecturas antes de escrituras (FLIP)
// antes — thrashing de layout
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// después — mide una vez, anima mediante transform
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 = ''; });

guía de revisión

  • aplica primero las reglas críticas (patrones que nunca se deben usar, límites de herramientas)
  • elige el trabajo de renderizado menos costoso que coincida con la intención
  • para cualquier elección no predeterminada, indica la restricción que la justifica (tamaño de superficie, duración o requisito de interacción)
  • al revisar, prefiere notas accionables y alternativas concretas en lugar de teorí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

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 relacionados