Communitygithub.com

Alemoterani/auto-edit-hyperframes

O contrato técnico de composição HyperFrames — construa um projeto renderizável. Use para estrutura de composição, atributos de temporização `data-*`, `class="clip"`, trilhas, sub-composições, variáveis, reprodução de mídia gerenciada pelo framework, regras de renderização determinística e validação. Leia antes de escrever HTML de composição.

O que é auto-edit-hyperframes?

HyperFrames é um framework que renderiza vídeo a partir de HTML. Este skill fornece o contrato técnico completo para construir composições HyperFrames, abrangendo desde a estrutura básica de arquivos HTML com atributos `data-*` para temporização, até regras avançadas de determinismo, reprodução de mídia e validação. Ele é útil para desenvolvedores que desejam criar conteúdo de vídeo dinâmico e programático usando HTML, CSS e JavaScript, com suporte a animações GSAP, sub-composições e variáveis. O skill detalha as armadilhas comuns, como conflitos entre CSS `transform` e tweens GSAP, restrições de `class="clip"`, e regras de lint que garantem a corretude do projeto. Para animações específicas (GSAP, Lottie, Three.js), o skill direciona para o repositório irmão `hyperframes-animation`. A validação é feita via CLI do HyperFrames, com comandos como `check`, `snapshot`, `preview` e `render`.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/hyperframes-core

Perguntar na sua IA favorita

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

Documentação

Instalação de plugins: Antes de comandos de configuração ou atualização, siga as regras de execução de plugins quando este skill estiver dentro de um plugin HyperFrames. Instalações independentes mantenham as instruções de atualização abaixo.

HyperFrames Core

Armadilhas do agente (leia primeiro):

  • Centralize com flex/inset, não com CSS transform: translate(-50%,-50%) em um nó que você depois anima com GSAP x/y. Lint: gsap_css_transform_conflict. Use fromTo ou xPercent/yPercent.
  • Não adicione um tl.set(..., {visibility:"hidden"}) de saída de cena. O runtime já oculta clipes temporizados. Transições de opacidade em nós internos (ou opacity em .clip) são suficientes. Hard-kills de legenda são uma regra diferente.
  • window.__timelines["id"] deve corresponder ao data-composition-id raiz.
  • Após render, leia a segunda linha do resumo: beginframe vs screenshot, modo GPU, temporizações de palco. screenshot + software gpu no Linux é o caminho lento.

HyperFrames renderiza vídeo a partir de HTML. Uma composição é um arquivo HTML cujo DOM declara temporização com atributos data-*, cujo runtime de animação é buscável, e cuja reprodução de mídia é gerenciada pelo framework.

Este skill é o contrato técnico — como construir um projeto hyperframes. O corpo abaixo é o guia de construção; detalhes por tópico estão em references/ (índice a seguir), leia sob demanda. Documentos de processo (brief, storyboard, revisão, produção, despacho, frame-worker) estão em /hyperframes → references/. Outras preocupações estão nos skills de domínio irmãos — hyperframes-animation, hyperframes-creative, media-use, hyperframes-cli, hyperframes-registry. O mapa de capacidades em /hyperframes diz o que cada um cobre.

Referências

ArquivoLeia para…
references/minimal-composition.mdcomeçar pelo menor esqueleto de composição renderizável
references/composition-patterns.mdescolher monolítico vs modular; estruturar um index.html modular; selecionar um arquétipo de sub-comp
references/data-attributes.mdconsultar qualquer data-* (raiz / clip / host de sub-comp / aliases legados); usar class="clip"
references/tracks-and-clips.mdentender o que data-track-index controla (e não controla), z-index, temporizar um clip relativo a outro; listar cada trilha e clip com npx hyperframes timeline
references/creator-editing-recipes.mdcopiar receitas verdadeiras de corte/aparar/reordenar/retemporizar/congelar/câmera/máscara/crossfade/edição de áudio e seus limites
references/sub-compositions.mdconectar uma sub-composição (atributos do host, <template>, variáveis por instância) e animar dentro dela
references/variables-and-media.mddeclarar variáveis; colocar <video>/<audio>, definir volume, aparar
references/determinism-rules.mdconstruir uma timeline buscável; proibições de determinismo; layout / ajuste de texto
references/full-screen-motion.mdcriar movimento em tela cheia com fundos compartilhados
references/tailwind.mdtrabalhar em um projeto Tailwind v4 (init --tailwind; contrato de runtime difere do Studio v3)

Para especificidades do runtime de animação (API GSAP, Lottie, Three.js, etc.) vá para hyperframes-animation → adapters/<runtime>.md.

Construindo uma composição

Duas formas raiz (não intercambiáveis)

  • Independente (index.html de nível superior): <div data-composition-id="…"> fica diretamente em <body>, sem wrapper <template>. Envolver uma raiz independente oculta todo o conteúdo e lint rejeita (standalone_composition_wrapped_in_template, erro).
  • Sub-composição (carregada via data-composition-src): envolva a raiz em <template>. Esta é a forma a ser escrita: o carregador também aceita um documento completo simples e usa seu <body> como fallback, mas a forma com template é a que os exemplos e ferramentas assumem.

⚠ Regra de transporte: para uma sub-composição com template, o montador descarta o <head> <style>/<script> do próprio arquivo (packages/core/src/compiler/compositionAssembly.ts, a porta hasTemplate), então coloque <style>/<script> dentro do template. <link> é içado de qualquer forma. ⚠ Convenção de id do host: dê ao slot do host, ao template interno e à chave window.__timelines["<id>"] o mesmo id. Um id local diferente é suportado (o montador usa como fallback a primeira raiz no arquivo), mas a incompatibilidade é silenciosa, portanto, corresponda-os a menos que você tenha um motivo para não fazê-lo.

Forma do arquivo, conexão do host e lista de verificação pré-renderização → references/sub-compositions.md.

A raiz deve ser dimensionada (bug de layout silencioso)

A raiz independente usa width/height: 100%. O tamanho da tela é data-width/data-height. O runtime grava esses pixels na raiz da composição. Não codifique 1920px/1080px em #root. Esqueleto → references/minimal-composition.md.

Uma timeline pausada

Cada composição registra exatamente uma gsap.timeline({ paused: true }) em window.__timelines["<id>"] (chave = raiz data-composition-id). Construí-la dentro de um callback assíncrono (document.fonts.ready) é suportado; o importante é que você registre apenas após a conclusão da construção. O comprimento da renderização é o data-duration da raiz, não o comprimento da timeline: uma timeline que ultrapassa é cortada, e uma que termina antes mantém seu último quadro. Omita o data-duration da raiz e o comprimento é inferido (timeline, janela de mídia ou adaptador). Você não precisa de window.__timelines = window.__timelines || {}: o runtime cria o registro antes de seus scripts inline serem executados, e lint não pede mais isso. Não aninhe manualmente sub-timelines no host; o runtime aninha automaticamente timelines filhas registradas. Contrato completo (incluindo runtimes não-GSAP) → references/determinism-rules.md + hyperframes-animation/adapters/.

Pegadinhas do lint de primeira passagem (falha garantida na primeira construção)

Regras que lint pega, mas apenas depois do fato. Escreva-as corretamente desde o início:

  • Nunca combine um transform CSS inicial com um tween GSAP na mesma propriedade — o valor CSS e o início do tween entram em conflito e lint rejeita com gsap_css_transform_conflict. Defina o estado inicial dentro do tween com gsap.fromTo(el, { x: -40 }, { x: 0 }) em vez de um CSS transform: translateX(-40px).
  • Nunca coloque crossorigin em <video>/<audio>. lint rejeita incondicionalmente com media_crossorigin_breaks_preview (erro), inclusive para leitura de canvas/WebGL/WebAudio. Não há supressão.
  • Nunca dê a um <video data-start> um ancestral que também carregue data-start. lint rejeita com video_nested_in_timed_element (erro). Temporize o wrapper ou o vídeo, nunca ambos.
  • Todo <audio> precisa de um id. lint rejeita com media_missing_id, e um <audio> sem id nunca é captado pelo mixer, portanto a renderização fica silenciosa.
  • Nunca anime um .clip com autoAlpha ou visibility — lint rejeita com gsap_animates_clip_element. Anime um filho.
  • Um font-family CSS nomeado precisa de um @font-face no arquivo para um arquivo local enviado, ou lint dispara font_family_without_font_face.
  • #root de sub-composição usa width/height: 100% (ou inset: 0), não 1920px/1080px codificados. O tamanho da tela é data-width/data-height.

Um erro de lint também desativa as auditorias de layout e contraste: check então relata 0 sample(s) e 0/0 text checks, o que parece um arquivo limpo, mas significa que nada foi executado. Limpe os erros de lint antes de confiar nesses números.

Regras inegociáveis (bugs silenciosos que as portas automatizadas podem perder)

Expõem-se aqui; justificativa completa na referência vinculada. Não viole:

  • Sem relógios em tempo de renderização / Math.random sem semente / rede / estado de entrada; repeat: -1 apenas sob um data-duration raiz finito (exporte clipes para ele — caso contrário, use uma contagem finita). → determinism-rules.md
  • Nunca anime display, visibility ou autoAlpha em um elemento .clip. O framework possui a visibilidade do clip, e lint rejeita (gsap_animates_clip_element). Anime um filho. → determinism-rules.md
  • Sem <br> no corpo do texto; elementos transformados devem ser em nível de bloco + dimensionados; decorativos absolutos pulsantes precisam de folga de pico. → determinism-rules.md
  • <video>/<audio> são encontrados por uma consulta plana do documento, então o framework busca e decodifica em qualquer profundidade de aninhamento (incluindo dentro de um <template> ou wrapper de sub-comp). Um limite rígido: lint erra se um <video data-start> estiver dentro de outro elemento simples que também tenha data-start, e a falha é real (quadros de origem errados, então o clip desaparece no meio do slot), portanto, coloque a temporização no wrapper ou no vídeo, nunca em ambos. Hosts de sub-composição são isentos: a mídia dentro de uma sub-composição renderiza corretamente. A outra ressalva são timelines, não posicionamento: uma timeline de sub-comp não pode animar elementos raiz do host. → variables-and-media.md
  • Mantenha cada id único em toda a página montada (prefixe ids de sub-comp com o id da composição, #<id>-hero) para que seu próprio CSS #id e chamadas getElementById resolvam. A injeção de quadro não depende mais disso: o compilador carimba um data-hf-render-id único no documento em cada video[src]/audio[src]/img[src]. Mídia que usa filhos <source> em vez de um atributo src não é carimbada, portanto, ids únicos ainda importam lá. → composition-patterns.md
  • Um preenchimento em tela cheia na raiz da composição é aceitável em uma renderização normal. Ele é descartado apenas no caminho composto em camadas (conteúdo HDR ou uma composição usando transições de shader), onde o mecanismo força toda raiz de composição transparente para que a camada abaixo apareça. Se sua composição usar transições de shader ou mídia HDR, coloque o preenchimento em um filho de sangria total (position:absolute; inset:0). → composition-patterns.md

Editando composições existentes

  • Leia os arquivos primeiro. Preserve temporização não relacionada, trilhas, IDs, variáveis, caminhos de mídia.
  • Para saber o que está na timeline de um projeto (trilhas, clipes, inícios, fins, o que reproduz), execute npx hyperframes timeline [--json] em vez de ler index.html e cada arquivo de sub-composição.
  • Corresponda IDs de composição e chaves de timeline existentes.
  • Adicionar um clip: defina seu data-start/data-duration intencionalmente em relação aos clipes ao redor. data-track-index é uma faixa de exibição do Studio, não uma restrição de temporização, portanto não precisa estar livre.
  • Um clip que termina após o data-duration raiz é cortado: estenda o data-duration raiz até o final do clip na mesma edição (lint avisa clip_ends_past_root_duration).
  • data-hidden em qualquer elemento de composição o oculta TANTO na pré-visualização QUANTO na renderização, substituindo sua janela de tempo; é não destrutivo/reversível e alternado pelo ícone de olho da timeline do Studio.
  • Adicionar uma sub-composição: verifique seu data-composition-id interno antes de conectar o host.

Validação

Use hyperframes-cli para detalhes de comandos

  • npx hyperframes check passa (0 descobertas em lint, runtime, layout, movimento e contraste)
  • Projetos com sub-composições: npx hyperframes snapshot --at <midpoints> e inspecione cada quadro visualmente
  • npx hyperframes preview --background para revisão (o usuário pode editar qualquer coisa na timeline do Studio, e o servidor sobrevive ao comando de invocação)
  • npx hyperframes render apenas após a aprovação do usuário

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

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]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). 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`.

Alemoterani/auto-edit-hyperframes

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, timeline, history, clean, 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.

Habilidades Relacionadas