Communitygithub.com

AlessandroFare/fluxychat

Use quando uma composição HyperFrames precisar de keyframes 2D/3D seguros para seek, timelines GSAP, keyframes CSS, Anime.js, WAAPI, FLIP, paths, máscaras, morph/draw SVG, rastros de texto, profundidade 3D ou diagnósticos `hyperframes keyframes`. Não use para estratégia geral de cena, design de marca, sourcing de mídia, legendas ou planejamento geral de vídeo.

O que é fluxychat?

Este skill implementa um contrato rigoroso para criação de keyframes em composições HyperFrames, garantindo que estados visíveis, identidade contínua do sujeito e runtime seguro para seek sejam mantidos. Ele orienta o desenvolvedor a escolher o menor mecanismo que comprove o prompt—seja GSAP, CSS keyframes, Anime.js, WAAPI ou FLIP—e a construir keyframes de forma síncrona, registrando a instância no runtime global. A ferramenta fornece diagnósticos via CLI (`hyperframes lint`, `check`, `keyframes`) para verificar alvos, caminhos, traçados e composições pai/filho, além de suporte a `--shot` para provas visuais e `--ghost` para motion em canvas/WebGL. É útil para cenários que exigem animações determinísticas, sem temporizadores, loops infinitos ou acionadores assíncronos, e desencoraja o uso de `Date.now()`, `performance.now()` ou `Math.random()` não seedado. O skill também detalha como escolher entre mecanismos como path travel, stroke draw, shape interpolation, clip/mask, stagger, state machine ou DOM 3D, e como lidar com erros comuns como fake 3D, identidade quebrada ou texto ilegível.

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

Perguntar na sua IA favorita

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

Documentação

Keyframes HyperFrames

Keyframes são um contrato de pose: estados visíveis, identidade contínua do sujeito, runtime seguro para seek, pixels verificados.

Use hyperframes-animation para receitas amplas de cena. Use hyperframes-cli para documentação completa de comandos. Use references/keyframe-patterns.md apenas ao escolher mecanismos de implementação, não estilo visual.

Procedimento

  1. Identifique o sujeito animado, estados visíveis, estado final e runtime.
  2. Escolha o menor mecanismo que comprove o prompt. Leia references/keyframe-patterns.md apenas se o mecanismo não estiver claro.
  3. Crie keyframes seguros para seek no runtime declarado. Construa de forma síncrona e registre a instância do runtime.
  4. Verifique com hyperframes lint, hyperframes check, hyperframes keyframes, um --shot focado e snapshots nos tempos de prova.
  5. Se a prova falhar, corrija os keyframes fonte e execute novamente o menor diagnóstico de falha antes de renderizar.

Contrato

  • Nomeie o sujeito em movimento.
  • Nomeie as poses necessárias para provar o movimento pretendido, incluindo o estado final.
  • Keyframee canais visíveis, não estado auxiliar oculto.
  • Preserve a identidade do objeto quando a continuidade for importante.
  • Faça crossfade apenas quando o movimento pretendido for substituição ou dissolução.
  • Mantenha estados legíveis ou semânticos tempo suficiente para serem vistos.
  • O quadro final faz parte da animação, não é limpeza.
  • Não redefina para o estado de repouso a menos que solicitado.
  • Não termine em preto a menos que solicitado.
  • Se estiver editando uma cena inicial, preserve layout, cópia, assets, cores e estado final, a menos que seja solicitado a redesenhar.

Regras do Runtime

GSAP:

  • construa de forma síncrona no carregamento da página
  • use gsap.timeline({ paused: true })
  • registre como window.__timelines[compositionId]
  • a chave do registro deve corresponder a data-composition-id
  • não chame tl.play() para movimento crítico de renderização
  • mantenha repetições finitas

CSS keyframes:

  • duração finita e contagem de iterações
  • atraso determinístico
  • animation-fill-mode: both
  • use data-start quando o tempo pertencer a um clipe

Anime.js:

  • crie de forma síncrona
  • autoplay: false
  • duração finita e loops
  • envie cada instância para window.__hfAnime

WAAPI:

  • duration finita
  • fill: "both"
  • construção determinística
  • a superfície de texto não lista WAAPI; verifique com --shot (ele busca WAAPI) e snapshots

Nunca use para movimento crítico de renderização:

  • Date.now()
  • performance.now()
  • Math.random() não seedado
  • acionadores de hover/scroll
  • temporizadores
  • timelines criadas de forma assíncrona
  • requestAnimationFrame não registrado
  • loops infinitos

Esqueleto GSAP

const root = document.querySelector("[data-composition-id]");
const compositionId = root.dataset.compositionId;
const tl = gsap.timeline({ paused: true });

tl.addLabel("state-a", 0);
tl.to(".subject", {
  keyframes: [
    { x: 0, opacity: 1, duration: 0.2 },
    { x: 120, opacity: 1, duration: 0.4, ease: "power2.out" },
    { x: 100, opacity: 1, duration: 0.2, ease: "power2.inOut" },
  ],
  ease: "none",
});

window.__timelines = window.__timelines || {};
window.__timelines[compositionId] = tl;

Use rótulos para estados semânticos. Use parâmetros de posição em vez de atrasos encadeados. Use immediateRender: false para tweens from()/fromTo() posteriores que toquem na mesma propriedade.

Formas de Keyframe

  • Keyframes de array: escada de poses com duração/ease por etapa.
  • Keyframes percentuais: tempo exato dentro de um tween.
  • Arrays de propriedades: mudanças compactas de múltiplas paradas.
  • ease: "none" no pai quando cada parada carrega seu próprio easing.
  • easeEach quando cada segmento deve compartilhar a mesma sensação.

Não copie distâncias numéricas ou tempos de exemplos. Derive-os da geometria real da composição e duração.

Para um sujeito se movendo entre duas caixas, prefira um tween de transformação contínuo ou FLIP. Divida x/y/scale em múltiplos keyframes com easing apenas quando o espectador deve sentir batidas distintas; cada segmento altera a velocidade e pode ser lido como uma pausa.

Canais

Prefira canais de compositor/visual: x/y/z, xPercent/yPercent, scale, rotationX/Y/Z, skew, transformOrigin, svgOrigin, opacity, autoAlpha, clip-path, máscaras, variáveis CSS, valores de path/dash SVG, transformações de câmera, uniforms de shader.

Evite canais de layout/ciclo de vida: top/left/right/bottom, width/height, margin/padding, display, visibility, criação tardia de DOM, overlays auxiliares fazendo movimento do sujeito.

Para mudanças de visibilidade, use autoAlpha na timeline GSAP registrada e buscável, ou um tl.set() de duração zero em um limite explícito. Mire apenas em um elemento não-clipe ou um wrapper dentro do clipe; nunca mire no próprio .clip. Nunca faça tween de duração em visibility bruto, e nunca faça tween em display.

Escolha do Mecanismo

Escolha o menor mecanismo que comprove o prompt:

NecessidadeMecanismo
Mesmo sujeito muda de caixa ou hierarquiaelemento compartilhado / FLIP
Sujeito percorre uma rota visívelpath travel
Traço cresce ou traçastroke draw
Uma forma se torna outra formashape interpolation
Limite de revelação é visívelclip, mask ou uniform de shader
Muitos itens se movem com ordemstagger / atraso indexado
O próprio texto se movesubdivisão de linha, palavra, caractere ou banda
Superfície dobra, estica ou cortacontra-transformação pai/filho
UI tem estadosmáquina de estados explícita
Cena tem profundidadeDOM 3D, Three.js ou keyframes de câmera/objeto WebGL

Mecanismos podem se combinar, mas cada um deve esclarecer a ideia. Decoração não é prova.

Tempo

  • Antecipação apenas quando esclarece causa ou direção.
  • Aceleração deixa o repouso.
  • Pico de prova mostra o mecanismo de forma inconfundível.
  • Follow-through vende energia e direção.
  • Overshoot apenas quando o sujeito deve parecer elástico ou tátil.
  • Travel de caminho em velocidade constante geralmente precisa de ease: "none".
  • Estados discretos de UI geralmente precisam de um ease-out brusco.
  • Elementos repetidos precisam de offsets ordenados, não de tempo idêntico.
  • Travamentos finais precisam de seguramentos mais longos do que poses de transição.
  • Suavidade significa velocidade contínua no mesmo sujeito.
  • Não sobreponha tweens que escrevem a mesma propriedade de transformação, a menos que a sobreposição seja intencional e verificada.
  • Evite animar grandes mudanças de clip-path/máscara enquanto a mesma superfície principal também está escalando ou viajando; use revelações aninhadas após o movimento principal se estabilizar.

Texto

Preserve caixas de linha, espaçamento entre palavras, legibilidade e ajuste final. Se o texto se mover internamente, mova os glifos ou faixas mascaradas, não apenas decorações ao redor do texto. Faça snapshot de quadros legíveis.

SVG

Para crescimento de traço, prefira DrawSVGPlugin, depois stroke-dasharray/stroke-dashoffset. Para interpolação de forma, prefira MorphSVGPlugin; converta primitivas em paths quando necessário e divida silhuetas complexas em partes mais simples.

3D

Escala sozinha é profundidade falsa. Use perspectiva em um pai estável, transform-style: preserve-3d, viagem em z, rotação, movimento de câmera/mundo, oclusão e ordem de camada quando objetos se cruzam.

Use um ou dois ângulos de diagnóstico que exponham a relação de profundidade. Se a prova angulada não mostrar cruzamento de profundidade, melhore z/câmera/oclusão.

Canvas / WebGL

Keyframee posição da câmera, alvo da câmera, transformação do objeto, opacidade do material, uniforms de shader e intensidade de pós-processamento através de estado determinístico. Renderize a partir do tempo HyperFrames. Use --ghost porque caixas de marcador não podem ver movimento interno do canvas.

Prova CLI

npx hyperframes lint
npx hyperframes check
npx hyperframes keyframes .
npx hyperframes keyframes . --json
npx hyperframes keyframes . --runtime all
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --samples <n>
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --layout strip --from <t0> --to <t1>
npx hyperframes keyframes . --shot "<file>" --ghost --angle <angle>
npx hyperframes snapshot . --at <times>

Escolha <selector> para o sujeito animado real. Escolha <times> para o primeiro quadro, poses de prova, final-menos-seguramento e exato final. Escolha <angle> apenas quando a profundidade deve ser provada.

FerramentaProva
keyframesalvos, paradas explícitas, paths, traços, movimento pai/filho composto, paradas CSS, registro Anime
--shotfantasmas, forma da rota, espaçamento temporal, projeção DOM 3D, prova de seletor focada
--layout stripmovimento no lugar, sobreposições, contato, escala/opacidade sutil, ondas de texto
--ghostcanvas, WebGL, movimento de shader, 3D renderizado
snapshot --atmáscaras, legibilidade de texto, estado completo, travamento final, caudas pretas/reset

Se a prova do seletor parecer errada:

  1. execute novamente --json
  2. encontre o alvo animado real
  3. atire naquele alvo
  4. faça snapshot dos quadros completos
  5. confie nos pixels pintados sobre logs

Leitura de Diagnóstico

flat significa nenhuma pose explícita intermediária. keyframes significa que existem paradas explícitas. motionPath significa que existe uma rota. trace significa desenho multi-traço. composed with significa que o movimento filho herda o movimento pai.

Espaçamento uniforme de fantasmas significa velocidade constante. Fantasmas agrupados significa entrada lenta ou estabilização. Grandes lacunas significa viagem rápida.

Um tiro de seletor auxiliar não é prova. Um tiro de cebola sobre um quadro completo quebrado não é prova.

Tratamento de Erros

FalhaCorreção
apenas endpointadicione poses intermediárias, segure o pico de prova, execute novamente --shot
quebra de identidademantenha um elemento vivo, use caixas fonte/final compartilhadas, remova crossfade substituto
3D falsoadicione viagem z/câmera, oclusão, prova angulada
final erradoadicione seguramento final, snapshot final-menos-seguramento e exato final
runtime não buscávelpause autoplay, registre a instância, remova temporizadores, construa de forma síncrona
texto ilegívelpreserve caixas de linha, reduza deslocamento, adicione seguramento final, snapshot quadros de texto

Finalizado

Execute hyperframes lint, hyperframes check, hyperframes keyframes, um --shot focado e snapshots. Confirme o primeiro quadro, poses de prova, final-menos-seguramento, exato final, movimento de propriedade do sujeito e sem overlays de depuração.

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

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