Communitygithub.com

1345AbhishekKumar/starter-nextjs

Ciclo de desarrollo de la CLI de HyperFrames. Útil al ejecutar 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, o remove-background, y para solucionar problemas del entorno de compilación/renderizado de HyperFrames. Punto de entrada para renderizado en la nube con AWS Lambda (hyperframes lambda deploy / render / progress / destroy / policies).

¿Qué es starter-nextjs?

Este skill describe el funcionamiento de la CLI de HyperFrames, una herramienta de línea de comandos que actúa como el punto de entrada principal para todo el flujo de trabajo de desarrollo y renderizado de videos con HyperFrames. Es útil para desarrolladores y agentes de IA que necesitan orquestar procesos de creación, linting, validación, previsualización interactiva y renderizado de composiciones HTML, tanto de forma local como en la nube a través de AWS Lambda. El skill soporta una amplia gama de subcomandos como init, lint, validate, inspect, preview, render, y lambda, y ofrece convenciones específicas para la integración con CI/CD y agentes, como la salida JSON uniforme y la detección automática de modo no interactivo. El flujo típico comienza con scaffold (init o captura), luego edición de la composición, seguido de lint, validate, inspect para verificar errores, una previsualización en el editor Studio, y finalmente el renderizado local o en la nube. Las reglas de renderizado ponen especial énfasis en que el usuario debe aprobar explícitamente antes de renderizar, y se proporcionan pasos de verificación posteriores al renderizado para asegurar la integridad del archivo de salida.

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

Preguntar en tu IA favorita

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

Documentación

CLI de HyperFrames

Todo se ejecuta mediante npx hyperframes a menos que las instrucciones del proyecto especifiquen un envoltorio local. Obedece el envoltorio local exactamente. Requiere Node.js >= 22 y FFmpeg.

Flujo de trabajo

  1. Scaffold — npx hyperframes init my-video (o capture desde una URL)
  2. Escribir — redactar la composición HTML (ver el skill hyperframes-core)
  3. Lint — npx hyperframes lint
  4. Validar — npx hyperframes validate (errores de ejecución + contraste)
  5. Inspección visual — npx hyperframes inspect
  6. Previsualizar — npx hyperframes preview abre Studio, el editor de línea de tiempo donde el usuario puede editar cualquier cosa manualmente (no solo ver). Revisa allí, luego pregunta antes de renderizar.
  7. Renderizar — elige la variante:
    • Iterar: npx hyperframes render --quality draft
    • Entregar: npx hyperframes render --quality high --output out.mp4
    • CI / reproducción multiplataforma: npx hyperframes render --docker --strict --output out.mp4
    • Nube (largo / grande): npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (ver Lambda más abajo)

Ejecuta lint, validate e inspect antes de la previsualización. lint detecta data-composition-id faltantes, pistas superpuestas y líneas de tiempo no registradas. validate carga la composición en Chrome sin interfaz gráfica e informa errores de consola en tiempo de ejecución más problemas de contraste WCAG. inspect recorre la línea de tiempo e informa texto que se sale de burbujas/contenedores o del lienzo y, cuando hay un archivo secundario *.motion.json presente, verifica la intención de movimiento (entradas que se activan durante la búsqueda, orden de escalonamiento, dentro del cuadro, viveza) contra esa misma línea de tiempo explorada.

Para trabajos con mucho movimiento, prefiere la iteración basada en instantáneas y un archivo secundario *.motion.json; consulta references/lint-validate-inspect.md para conocer la disciplina y la especificación de verificación de movimiento.

Convenciones del agente

Reglas transversales que aplican a todos los comandos:

  • --json está disponible en todos los comandos excepto render, preview y play. Úsalo para cualquier invocación de agente/CI de los comandos compatibles; la salida incluye un envoltorio _meta (versión de CLI, última disponible, consejo de actualización). render informa el estado solo a través de stdout + código de salida; verifica el éxito con la comprobación posterior al renderizado que se indica a continuación; preview / play son servidores, sin JSON.
  • doctor --json siempre sale con 0, incluso cuando el entorno está roto. Verifica el campo ok del payload: npx hyperframes doctor --json | jq -e '.ok' > /dev/null. Esto aísla los pipelines de la volatilidad de las versiones de CLI.
  • El modo no TTY se detecta automáticamente. Cuando stdout no es un TTY (CI, agentes, salida canalizada), la CLI cambia automáticamente a modo no interactivo; init entonces requiere --example. Pasa --non-interactive para forzar este modo incluso en un TTY.
  • Control de CI en renderizado: --strict falla con errores de lint, --strict-all falla también con advertencias, --strict-variables falla con claves --variables no declaradas.
  • Las rutas en --json están censuradas — $HOME se convierte en el literal $HOME para que la salida sea segura de pegar en informes de errores y contextos de agentes.
  • El renderizado requiere aprobación del usuario. Nunca auto-renderices una vez que las comprobaciones pasen. Pausa en preview, dile al usuario que el video es editable en Studio, y renderiza solo después de que lo apruebe.
  • Verificación posterior al renderizado. Después de que render devuelva el código de salida 0, confirma que el archivo de salida existe y tiene un tamaño plausible antes de informar éxito: [ -s "$OUTPUT" ] || echo "render produced no output". La CLI imprime ◇ <ruta> en caso de éxito; para renderizados largos, también verifica la duración con ffprobe -i "$OUTPUT" -show_format -v error.

Enrutamiento

Si quieres…Lee
Crear un proyecto (init, capture, skills)references/init-and-scaffold.md
Verificar corrección (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
Previsualizar o renderizar (preview, play, render, publish)references/preview-render.md
Diagnosticar el entorno (doctor, browser)references/doctor-browser.md
Renderizar en la nube con AWS Lambda (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
Todo lo demás (info, upgrade, compositions, docs, benchmark, telemetry, preprocesamiento de assets)references/upgrade-info-misc.md

Transferencias entre skills

  • Proyectos Tailwind (init --tailwind) → usa hyperframes-core (referencia de Tailwind) antes de editar clases o tokens de tema.
  • Bloques/componentes de registro (hyperframes add, hyperframes catalog) → usa hyperframes-registry para rutas de instalación, cableado de subcomposiciones y fusión de fragmentos.
  • Preprocesamiento de assets (tts, transcribe, remove-background) → usa hyperframes-media para selección de voz, reglas del modelo Whisper, subtítulos y cadena TTS a subtítulos.
  • Renderizados parametrizados (--variables) → declarados mediante data-composition-variables en <html>; consulta hyperframes-core para el esquema completo.

Lambda (Renderizado en la nube)

hyperframes lambda despliega renderizado distribuido en AWS Lambda y ejecuta renderizados desde tu portátil o CI. De punta a punta son tres comandos:

npx hyperframes lambda deploy                                             # aprovisionar pila SAM (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # desmantelar (el bucket S3 se conserva)

Usa Lambda cuando un renderizado sea demasiado largo o grande para un solo host (videos de varios minutos, 4K, lotes paralelos grandes) y tengas credenciales de AWS configuradas. Para iteraciones del bucle de desarrollo, quédate con el renderizado local (render).

Consulta references/lambda.md para requisitos previos, los 6 subcomandos (deploy, sites create, render, progress, destroy, policies), validación de políticas IAM, archivos de estado y reglas de costos/limpieza.

Puerta de finalización mínima

Puertas estáticas

npx hyperframes lint
npx hyperframes validate

Añade inspect para trabajos sensibles al diseño y render --strict en CI para fallar en errores de lint.

Prueba visual rápida — obligatoria cuando el proyecto usa subcomposiciones

lint / validate / inspect evalúan cada composición de forma aislada. Nunca cargan index.html y montan subcomposiciones mediante data-composition-src, por lo que no pueden detectar fallos de montaje entre archivos (ver hyperframes-core → references/sub-compositions.md, "Errores comunes"). La única puerta que los detecta es una que realmente cargue index.html y recorra la línea de tiempo.

Usa hyperframes snapshot — carga el proyecto de la misma manera que render (por lo que ejercita la misma ruta de montaje) pero solo captura las marcas de tiempo que solicites, así que toma segundos en lugar de un renderizado completo:

# Captura un fotograma en el punto medio de cada subcomposición.
# Puntos medios = data-start + data-duration/2 para cada ranura anfitrión en index.html.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# O, si no necesitas selección por escena, una muestra espaciada uniformemente:
npx hyperframes snapshot --frames 9

La salida se guarda en snapshots/frame-NN-at-Xs.png. Examina cada fotograma comparándolo con el plan de escenas.

Indicadores de problemas por fotograma (cada uno se asigna a un modo de fallo específico que las puertas estáticas no detectan):

Lo que vesCausa raíz
El texto aparece pequeño y sin estilo en la esquina superior izquierdaBloque <style> dejado en <head> fuera de <template> (Error 1) — ningún CSS llegó al DOM activo
Elementos SVG/iconos ampliados al tamaño del lienzoMismo que arriba — no se aplicaron restricciones de ancho/alto
El elemento principal de la escena falta por completo; solo se ve fondo + marca de aguaID de anfitrión ≠ ID de plantilla (Error 2) — la línea de tiempo nunca se ejecutó, el fotograma se capturó en el estado inicial
El comando de instantánea registra Sub-composition timelines not registered after 45000msError 2 — confirmación directa

snapshots/ se puede eliminar después de la inspección visual; el renderizado final para el usuario es un paso separado con 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.

Skills relacionados