Communitygithub.com

AlessandroFare/fluxychat

Audite e corrija problemas de performance de animação, incluindo thrashing de layout, propriedades do compositor, movimento vinculado à rolagem e efeitos de desfoque. Use quando as animações travarem, as transições falharem ou ao revisar a performance de animações CSS/JS.

O que é fluxychat?

Esta skill, AlessandroFare/fluxychat, é uma ferramenta de auditoria e correção de performance de animação front-end, projetada para ser usada com agentes de IA como Claude Code, Cursor ou Codex. Ela fornece um conjunto abrangente de regras para diagnosticar e consertar problemas comuns de animação, como thrashing de layout, animações no thread de pintura, movimento vinculado à rolagem e uso inadequado de desfoque. A skill categoriza as regras por prioridade e impacto, desde padrões críticos ('never patterns') até limites de ferramentas, garantindo que as correções mais importantes sejam aplicadas primeiro. Ela suporta plataformas como CSS, WAAPI, Motion, requestAnimationFrame e GSAP, e oferece orientações práticas com exemplos de código antes e depois. Ao ser invocada, a skill pode revisar arquivos específicos, apontando violações exatas, explicando por que são problemáticas e sugerindo correções concretas sem migrar bibliotecas de animação a menos que seja explicitamente solicitado.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

corrigindo-performance-de-movimento

Corrija problemas de performance de animação.

como usar

  • /corrigindo-performance-de-movimento Aplique estas restrições a qualquer trabalho de animação de UI nesta conversa.

  • /corrigindo-performance-de-movimento <arquivo> Revise o arquivo contra todas as regras abaixo e relate:

    • violações (cite a linha exata ou trecho)
    • por que isso importa (uma frase curta)
    • uma correção concreta (sugestão em nível de código)

Não migre bibliotecas de animação a menos que explicitamente solicitado. Aplique as regras dentro da pilha existente.

quando aplicar

Consulte estas diretrizes quando:

  • adicionar ou alterar animações de UI (CSS, WAAPI, Motion, rAF, GSAP)
  • refatorar interações ou transições com travamentos
  • implementar movimento vinculado à rolagem ou revelar ao rolar
  • animar layout, filtros, máscaras, gradientes ou variáveis CSS
  • revisar componentes que usam will-change, transformações ou medições

glossário de etapas de renderização

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

categorias de regras por prioridade

prioridadecategoriaimpacto
1padrões-nuncacrítico
2escolha o mecanismocrítico
3mediçãoalto
4rolagemalto
5pinturamédio-alto
6camadasmédio
7desfoque e filtrosmédio
8transições de visãobaixo
9limites de ferramentascrítico

referência rápida

1. padrões-nunca (crítico)

  • não intercale leituras e escritas de layout no mesmo quadro
  • não anime layout continuamente em superfícies grandes ou significativas
  • não conduza animação a partir de scrollTop, scrollY ou eventos de scroll
  • sem loops de requestAnimationFrame sem condição de parada
  • não misture múltiplos sistemas de animação que cada um meça ou mude o layout

2. escolha o mecanismo (crítico)

  • prefira transform e opacity para movimento
  • use animação orientada por JS apenas quando a interação exigir
  • animação de paint ou layout é aceitável apenas em superfícies pequenas e isoladas
  • efeitos únicos são aceitáveis com mais frequência do que movimento contínuo
  • prefira rebaixar a técnica a remover o movimento completamente

3. medição (alto)

  • meça uma vez, depois anime via transform ou opacity
  • agrupe todas as leituras do DOM antes das escritas
  • não leia layout repetidamente durante uma animação
  • prefira transições estilo FLIP para efeitos semelhantes a layout
  • prefira abordagens que agrupem medição e escritas

4. rolagem (alto)

  • prefira Scroll ou View Timelines para movimento vinculado à rolagem quando disponível
  • use IntersectionObserver para visibilidade e pausa
  • não consulte a posição de rolagem para animação
  • pause ou pare animações quando estiver fora da tela
  • movimento vinculado à rolagem não deve desencadear layout contínuo ou pintura em superfícies grandes

5. pintura (médio-alto)

  • animação que desencadeia pintura é permitida apenas em elementos pequenos e isolados
  • não anime propriedades pesadas de pintura em contêineres grandes
  • não anime variáveis CSS para transform, opacity ou posição
  • não anime variáveis CSS herdadas
  • escopo de variáveis CSS animadas localmente e evite herança

6. camadas (médio)

  • movimento no compositor requer promoção de camada, nunca assuma que acontece
  • use will-change temporária e cirurgicamente
  • evite muitas ou grandes camadas promovidas
  • valide o comportamento da camada com ferramentas quando a performance importar

7. desfoque e filtros (médio)

  • mantenha a animação de desfoque pequena (<=8px)
  • use desfoque apenas para efeitos curtos e únicos
  • nunca anime desfoque continuamente
  • nunca anime desfoque em superfícies grandes
  • prefira opacity e translate antes de desfoque

8. transições de visão (baixo)

  • use transições de visão apenas para mudanças no nível de navegação
  • evite transições de visão para UI com muita interação
  • evite transições de visão quando interrupção ou cancelamento for necessário
  • trate mudanças de tamanho como potencialmente desencadeadoras de layout

9. limites de ferramentas (crítico)

  • não migre ou reescreva bibliotecas de animação a menos que explicitamente solicitado
  • aplique estas regras dentro do sistema de animação existente
  • nunca migre APIs parcialmente ou misture estilos dentro do mesmo componente

correções comuns

/* thrashing de layout: anime transform em vez de width */
/* antes */ .painel { transition: width 0.3s; }
/* depois */  .painel { transition: transform 0.3s; }

/* vinculado à rolagem: use scroll-timeline em vez de JS */
/* antes */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* depois */  .revelar { animation: fade-in linear; animation-timeline: view(); }
// medição: agrupe leituras antes das escritas (FLIP)
// antes — thrashing de layout
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// depois — meça uma vez, anime via transform
const first = el.getBoundingClientRect();
el.classList.add('movido');
const last = el.getBoundingClientRect();
el.style.transform = `translateX(${first.left - last.left}px)`;
requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });

orientação de revisão

  • aplique regras críticas primeiro (padrões-nunca, limites de ferramentas)
  • escolha o trabalho de renderização menos custoso que corresponda à intenção
  • para qualquer escolha não padrão, declare a restrição que a justifica (tamanho da superfície, duração ou requisito de interação)
  • ao revisar, prefira notas acionáveis e alternativas concretas em vez de teoria

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.

Habilidades Relacionadas