Communitygithub.com

HyperFrames CLI

Habilita o loop de desenvolvimento CLI do HyperFrames. Use ao executar comandos como npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts ou remove-background, ou ao solucionar problemas do ambiente de build/render do HyperFrames. Ponto de entrada para renderização em nuvem AWS Lambda (hyperframes lambda deploy / render / progress / destroy / policies).

O que é HyperFrames CLI?

O HyperFrames CLI é a interface de linha de comando central para o framework HyperFrames, permitindo que desenvolvedores criem, testem e publiquem vídeos interativos e compostos. Ele suporta um fluxo de trabalho completo que começa com scaffolding de projetos (init, capture), passa pela escrita de composições HTML, linting e validação (lint, validate), inspeção visual (inspect, preview) e finalmente renderização local ou em nuvem (render, lambda). Ferramentas como `snapshot` permitem verificar a montagem de sub-composições em segundos, sem uma renderização completa. O CLI possui convenções específicas para agentes e CI, como saída JSON, detecção automática de modo não-interativo e verificação pós-renderização. Ele também se integra a outros skills do ecossistema, como hyperframes-core para estilização Tailwind, hyperframes-registry para blocos e componentes, e hyperframes-media para pré-processamento de áudio e legendas. A renderização na nuvem via AWS Lambda é gerenciada por comandos dedicados (deploy, render, progress, destroy), ideais para projetos longos ou grandes.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1345AbhishekKumar/starter-nextjs/tree/HEAD/.agents/skills/hyperframes-cli

Perguntar na sua IA favorita

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

Documentação

O que HyperFrames CLI faz?

Tudo é executado através de npx hyperframes, a menos que as instruções do projeto especifiquem um wrapper local. Obedeça exatamente ao wrapper local. Requer Node.js >= 22 e FFmpeg.

Fluxo de Trabalho

  1. Scaffold — npx hyperframes init my-video (ou capture a partir de uma URL)
  2. Escreva — crie a composição HTML (veja o skill hyperframes-core)
  3. Linte — npx hyperframes lint
  4. Valide — npx hyperframes validate (erros de tempo de execução + contraste)
  5. Inspeção visual — npx hyperframes inspect
  6. Visualize — npx hyperframes preview abre o Studio, o editor de linha do tempo onde o usuário pode editar manualmente qualquer coisa (não apenas assistir). Revise ali e, em seguida, pergunte antes de renderizar.
  7. Renderize — escolha a variante:
    • Iteração: npx hyperframes render --quality draft
    • Entrega: npx hyperframes render --quality high --output out.mp4
    • CI / reprodutibilidade entre hosts: npx hyperframes render --docker --strict --output out.mp4
    • Nuvem (longo / grande): npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (veja Lambda abaixo)

Execute lint, validate e inspect antes do preview. lint detecta data-composition-id ausente, faixas sobrepostas e linhas do tempo não registradas. validate carrega a composição no Chrome headless e relata erros de console em tempo de execução, além de problemas de contraste WCAG. inspect percorre a linha do tempo e relata texto vazando para fora de balões/contêineres ou do canvas — e, quando um sidecar *.motion.json está presente, verifica a intenção de movimento (entradas disparadas sob seek, ordem de escalonamento, dentro do quadro, vivacidade) contra essa mesma linha do tempo percorrida.

Para trabalhos com muitos movimentos, prefira iteração orientada a snapshots e um sidecar *.motion.json — consulte references/lint-validate-inspect.md para a disciplina e especificação de verificação de movimento.

Convenções do Agente

Regras transversais que valem para todos os comandos:

  • --json está disponível em todos os comandos, exceto render, preview e play. Use-o para qualquer invocação de agente / CI dos comandos suportados; a saída inclui um envelope _meta (versão da CLI, versão mais recente disponível, conselho de atualização). render relata o status apenas via stdout + código de saída — verifique o sucesso com a verificação pós-renderização abaixo; preview / play são servidores, sem JSON.
  • doctor --json sempre sai com 0, mesmo quando o ambiente está quebrado. Baseie-se no campo ok do payload: npx hyperframes doctor --json | jq -e '.ok' > /dev/null. Isso isola os pipelines das mudanças de versão da CLI.
  • Modo não-TTY é detectado automaticamente. Quando stdout não é um TTY (CI, agentes, saída redirecionada) a CLI alterna automaticamente para o modo não interativo; init então requer --example. Use --non-interactive para forçar este modo mesmo em um TTY.
  • Gate de CI na renderização: --strict falha em erros de lint, --strict-all falha também em avisos, --strict-variables falha em chaves --variables não declaradas.
  • Caminhos em --json são ocultados — $HOME se torna o literal $HOME para que a saída seja segura para colar em relatórios de bugs e contextos de agente.
  • Renderização é controlada pelo usuário. Nunca renderize automaticamente após as verificações passarem. Pare no preview, informe ao usuário que o vídeo é editável no Studio e renderize somente após a aprovação dele.
  • Verificação pós-renderização. Após render retornar código 0, confirme que o arquivo de saída existe e tem tamanho plausível antes de relatar sucesso: [ -s "$OUTPUT" ] || echo "a renderização não produziu saída". A CLI imprime ◇ <caminho> em caso de sucesso; para renderizações longas, verifique também a duração com ffprobe -i "$OUTPUT" -show_format -v error.

Roteamento

Se você deseja…Leia
Criar um projeto (init, capture, skills)references/init-and-scaffold.md
Verificar correção (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
Visualizar ou renderizar (preview, play, render, publish)references/preview-render.md
Diagnosticar o ambiente (doctor, browser)references/doctor-browser.md
Renderizar em nuvem no AWS Lambda (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
Todo o resto (info, upgrade, compositions, docs, benchmark, telemetry, pré-processamento de assets)references/upgrade-info-misc.md

Transferências Entre Skills

  • Projetos Tailwind (init --tailwind) → use hyperframes-core (referência Tailwind) antes de editar classes ou tokens de tema.
  • Blocos/componentes do Registry (hyperframes add, hyperframes catalog) → use hyperframes-registry para caminhos de instalação, conexão de sub-composições e mesclagem de snippets.
  • Pré-processamento de assets (tts, transcribe, remove-background) → use hyperframes-media para seleção de voz, regras do modelo Whisper, legendas e cadeia TTS para legendas.
  • Renderizações parametrizadas (--variables) → declaradas via data-composition-variables em <html>; veja hyperframes-core para o esquema completo.

Lambda (Renderização em Nuvem)

hyperframes lambda implanta renderização distribuída no AWS Lambda e executa renderizações a partir do seu laptop ou CI. De ponta a ponta são três comandos:

npx hyperframes lambda deploy                                             # provisiona a stack SAM (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # derruba (o bucket S3 é mantido)

Use Lambda quando uma renderização for muito longa / grande para um único host (vídeos com vários minutos, 4K, grandes lotes paralelos) e você tiver credenciais AWS configuradas. Para iteração no ciclo de desenvolvimento, mantenha-se na renderização local render.

Veja references/lambda.md para pré-requisitos, todos os 6 subcomandos (deploy, sites create, render, progress, destroy, policies), validação de política IAM, arquivos de estado e regras de custo / limpeza.

Gate Mínimo de Conclusão

Gates estáticos

npx hyperframes lint
npx hyperframes validate

Adicione inspect para trabalhos sensíveis a layout e render --strict em CI para falhar em erros de lint.

Teste visual de fumaça — obrigatório quando o projeto usa sub-composições

lint / validate / inspect avaliam cada composição de forma isolada. Eles nunca carregam index.html e montam sub-composições via data-composition-src, portanto não conseguem capturar falhas de montagem entre arquivos (veja hyperframes-core → references/sub-compositions.md, "Armadilhas comuns"). O único gate que as captura é aquele que realmente carrega index.html e percorre a linha do tempo.

Use hyperframes snapshot — ele carrega o projeto da mesma forma que render (portanto, exercita o mesmo caminho de montagem), mas captura apenas os timestamps que você solicitar, então leva segundos em vez de uma renderização completa:

# Capture um quadro no ponto médio de cada sub-composição.
# Pontos médios = data-start + data-duration/2 para cada slot host em index.html.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# Ou, se você não precisar de segmentação por cena, uma amostra uniformemente espaçada:
npx hyperframes snapshot --frames 9

A saída vai para snapshots/frame-NN-at-Xs.png. Examine visualmente cada quadro contra o plano da cena.

Sinais de alerta por quadro (cada um mapeia para um modo de falha específico que os gates estáticos não capturam):

O que você vêCausa raiz
O texto aparece pequeno + sem estilo no canto superior esquerdoBloco <style> deixado em <head> fora de <template> (Armadilha 1) — nenhum CSS chegou ao DOM ativo
Elementos SVG/ícone ampliados para o tamanho do canvasMesmo que acima — nenhuma restrição de largura/altura aplicada
O elemento principal da cena está completamente ausente; apenas fundo + marca d'água visíveisHost-id ≠ id do template (Armadilha 2) — a linha do tempo nunca foi executada, quadro capturado no estado inicial
O comando snapshot registra Sub-composition timelines not registered after 45000msArmadilha 2 — confirmação direta

snapshots/ pode ser excluído após a inspeção visual; a renderização final voltada ao usuário é uma passagem separada com npx hyperframes render.

Individual skills in this repo

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

1345AbhishekKumar/starter-nextjs

Add captions to a talking-head video. ONE catalog (CATALOG.md) of 32 visual identities behind two engines: column-flow (captions composited INTO the scene — matte occlusion + mix-blend; cream/ink/editorial/keynote/documentary/loud/neon/glitch/chrome/velocity) and themed constitutions (anchor/ordnance/terminal/neonsign/stardust/stomp/scoreboard/transit/vhs/arcade/dossier/laser/thunder/hologram/biolume/aurora/spectrum/papercut/popup/chalkboard/graffiti/brush/inkwater/ransom/lastpage/nightcity — e.g. a glyph-decode climax, a neon sign WRITTEN stroke by stroke, or the quiet `anchor` rail default). Route by identity, never by mode. Trigger on "captions/subtitles", "embed/cinematic captions", "VFX captions", "炸/特效/酷炫字幕", a named identity, or top-tier motion-graphics asks. Embedding every word is wrong for most talking-head content — `anchor` is the verbatim default. Pipeline: transcription → hyperframes remove-background matting → HTML render → ffmpeg overlay. Requires hyperframes and a single-subject clip.

1345AbhishekKumar/starter-nextjs

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

1345AbhishekKumar/starter-nextjs

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). HyperFrames-native: single paused timeline, seek-safe, deterministic.

1345AbhishekKumar/starter-nextjs

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. Read before writing composition HTML.

1345AbhishekKumar/starter-nextjs

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`.

1345AbhishekKumar/starter-nextjs

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

1345AbhishekKumar/starter-nextjs

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

1345AbhishekKumar/starter-nextjs

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

1345AbhishekKumar/starter-nextjs

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

1345AbhishekKumar/starter-nextjs

turn a product or marketing URL, pasted script, or brief into a product launch video, including SaaS promos, feature reveals, app launches, company promos, and product marketing videos. Use this skill when the user wants to market, launch, promote, or reveal a product. Do not use it for general non-launch website tours, non-product topic explainers, GitHub pull requests, captioning existing footage, or short unnarrated motion graphics. If the intent is unclear, route through /hyperframes first. This is the new shot-sequence architecture: every visual frame is authored as a time-coded shot sequence picked from a menu of golden blueprints, so frames develop over their full duration instead of freezing after entrance.

1345AbhishekKumar/starter-nextjs

turn a GitHub pull request (a PR URL like github.com/<owner>/<repo>/pull/<N>, an <owner>/<repo>#<N> ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to ~3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via the gh CLI; there is no website capture. Use this skill for a GitHub PR. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /website-to-video), a topic explainer with no PR (use /faceless-explainer), captions on existing footage (use /embedded-captions), or a short unnarrated motion graphic (use /motion-graphics). If the intent is unclear, route through /hyperframes first.

1345AbhishekKumar/starter-nextjs

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

1345AbhishekKumar/starter-nextjs

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

Habilidades Relacionadas