Communitygithub.com

1345AbhishekKumar/starter-nextjs

El contrato de composición de HyperFrames: construye un proyecto renderizable. Úsalo para la estructura de composición, los atributos de tiempo `data-*`, `class="clip"`, pistas, subcomposiciones, variables, reproducción multimedia gestionada por el framework, reglas de renderizado determinista y validación. Léelo antes de escribir HTML de composición.

¿Qué es starter-nextjs?

Esta habilidad define el contrato técnico para construir proyectos de composición HyperFrames, utilizados para renderizar video desde HTML. Especifica la estructura raíz (independiente o subcomposición), el uso de atributos `data-*` para el timing, la gestión de pistas y clips mediante `data-track-index`, y las reglas para subcomposiciones con `<template>`. La habilidad es esencial para desarrolladores que trabajan con HyperFrames en agentes de IA como Claude Code, Cursor o Codex, y soporta frameworks de animación como GSAP, Lottie y Three.js. Incluye reglas no negociables sobre determinismo (sin relojes en tiempo de render, `Math.random` no seedeado, límite en repeticiones), propiedades animables permitidas, y la ubicación de elementos multimedia como hijos directos de la raíz. La documentación incluye referencias detalladas en archivos markdown para patrones de composición, validación con CLI, y formatos de guión. El agente debe seguir esta guía al editar composiciones existentes, preservando IDs, pistas y timing, y usando el CLI para lint, validar, inspeccionar y renderizar.

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

Preguntar en tu IA favorita

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

Documentación

HyperFrames Core

HyperFrames renderiza video desde HTML. Una composición es un archivo HTML cuyo DOM declara el timing con atributos data-*, cuyo runtime de animación es seekable, y cuya reproducción multimedia es gestionada por el framework.

Esta habilidad es el contrato técnico — cómo construir un proyecto HyperFrames. El cuerpo a continuación es la guía de construcción; los detalles por tema viven en references/ (índice a continuación), léelos bajo demanda. Otras preocupaciones viven en las habilidades de dominio hermanas — hyperframes-animation, hyperframes-creative, hyperframes-media, hyperframes-cli, hyperframes-registry. El mapa de capacidades en /hyperframes dice lo que cubre cada una.

Referencias

ArchivoLéelo para…
references/minimal-composition.mdempezar desde el esqueleto de composición renderizable más pequeño
references/composition-patterns.mdelegir monolítico vs modular; estructurar un index.html modular; elegir un arquetipo de sub-comp
references/data-attributes.mdbuscar cualquier data-* (raíz / clip / host de sub-comp / alias heredados); usar class="clip"
references/tracks-and-clips.mdelegir data-track-index, manejar superposición / z-index en la misma pista, temporizar un clip relativo a otro
references/sub-compositions.mdcablear una subcomposición (atributos del host, <template>, variables por instancia) y animar dentro de ella
references/variables-and-media.mddeclarar variables; colocar <video>/<audio>, ajustar volumen, recortar
references/determinism-rules.mdconstruir una línea de tiempo seekable; prohibiciones de determinismo; lista blanca de propiedades animables; ajuste de diseño / texto
references/full-screen-motion.mdcrear movimiento a pantalla completa con fondos compartidos
references/storyboard-format.mdcrear un plan STORYBOARD.md (+ el manifiesto analizado)
references/script-format.mdcrear la narración bloqueada opcional SCRIPT.md
references/subagent-dispatch.mdmapear verbos de despacho de subagentes (fan-out paralelo / background / wait) a tu harness
references/tailwind.mdtrabajar en un proyecto Tailwind v4 (init --tailwind; el contrato en runtime difiere del Studio v3)

Para detalles específicos del runtime de animación (API de GSAP, Lottie, Three.js, etc.) ve a hyperframes-animation → adapters/<runtime>.md.

Construyendo una composición

Dos formas raíz (no intercambiables)

  • Independiente (index.html de nivel superior) — el <div data-composition-id="…"> raíz está directamente en <body>, sin envoltorio <template> (envolverlo oculta todo el contenido y rompe el renderizado).
  • Subcomposición (cargada vía data-composition-src) — la raíz debe estar envuelta en <template>.

⚠ Regla de transporte: el runtime solo clona los contenidos de <template>; todo lo exterior (incluyendo estilos/scripts de <head>) se descarta — coloca <style>/<script> dentro del template. ⚠ Regla de ID del host: el data-composition-id del slot del host debe coincidir exactamente con el data-composition-id del template interior y con la clave window.__timelines["<id>"] — sin sufijos -mount/-slot/-host.

Forma del archivo, cableado del host y lista de verificación previa al renderizado → references/sub-compositions.md.

La raíz debe tener tamaño (error de diseño silencioso)

La raíz independiente necesita un contenedor con tamaño explícito (width/height en px), y cada ancestro hasta un elemento con height:100% debe tener una altura resuelta — de lo contrario, un hijo flex/100% colapsa a ~0 y el contenido se acumula en la esquina superior izquierda. lint/validate/inspect no detectan esto. Esqueleto → references/minimal-composition.md.

Una línea de tiempo en pausa

Cada composición registra exactamente una gsap.timeline({ paused: true }) en window.__timelines["<id>"] (clave = data-composition-id de la raíz), construida síncronamente al cargar la página. La duración del renderizado = data-duration de la raíz, no la longitud de la línea de tiempo. No anides manualmente sublíneas de tiempo en el host. Contrato completo (incluyendo runtimes no GSAP) → references/determinism-rules.md + hyperframes-animation/adapters/.

Reglas no negociables (errores silenciosos que lint/validate/inspect no detectarán)

Se muestran aquí; la justificación completa está en la referencia enlazada. No las violes:

  • Sin relojes en tiempo de renderizado / Math.random no seedeado / red / estado de entrada; sin repeat: -1 (usa un conteo finito). → determinism-rules.md
  • Anima solo la lista blanca de propiedades visuales; nunca display/visibility; no uses gsap.set en clips de escenas posteriores. → determinism-rules.md
  • Sin <br> en el texto del cuerpo; los elementos transformados deben ser de nivel bloque + con tamaño; los decorativos absolutos pulsantes necesitan espacio máximo. → determinism-rules.md
  • <video>/<audio> debe ser un hijo directo de la raíz del host (nunca dentro de un <template>/envoltorio de sub-comp); el framework gestiona la reproducción. → variables-and-media.md
  • Cada id debe ser único en toda la página ensamblada; dentro de una sub-comp, prefija los ids con el id de la composición (#<id>-hero). Los ids duplicados de <video>/<img> renderizan en blanco — el productor inyecta frames mediante getElementById, y los duplicados entre archivos pasan desapercibidos para lint. → composition-patterns.md
  • Un relleno de escena a pantalla completa va en un hijo full-bleed (position:absolute; inset:0), nunca en la propia raíz de la composición — la composición de frames del productor puede eliminar el background del elemento raíz (el frame se renderiza negro) aunque la vista previa/snapshot lo muestren correctamente. → composition-patterns.md

Editando composiciones existentes

  • Lee los archivos primero. Preserva el timing, pistas, IDs, variables y rutas multimedia no relacionados.
  • Coincide con los IDs de composición y claves de línea de tiempo existentes.
  • Al añadir un clip: elige un data-track-index no superpuesto o ajusta el timing circundante intencionadamente.
  • Al añadir una subcomposición: verifica su data-composition-id interno antes de cablear el host.

Validación

Usa hyperframes-cli para detalles de comandos

  • npx hyperframes lint pasa (0 errores)
  • npx hyperframes validate pasa (0 errores de consola)
  • npx hyperframes inspect pasa (0 errores)
  • Proyectos con subcomposiciones: npx hyperframes snapshot --at <midpoints> y revisa cada frame visualmente
  • npx hyperframes preview para revisión (el usuario puede editar cualquier cosa en la línea de tiempo del Studio)
  • npx hyperframes render solo después de la aprobación del usuario

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

HyperFrames CLI dev loop. Use when running 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, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

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