Communitygithub.com

DigitalRavagers/Experiment

Bucle de desarrollo CLI de HyperFrames. Úsalo al ejecutar 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, o al 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 Experiment?

Esta skill proporciona el CLI de HyperFrames, la herramienta central para gestionar el ciclo de desarrollo de composiciones de video interactivas. Permite desde la creación de proyectos con `npx hyperframes init`, pasando por la escritura de composiciones HTML, hasta la validación, inspección visual y renderizado final. Incluye comandos especializados como `lint` para errores estructurales, `validate` para verificación en tiempo de ejecución y accesibilidad, e `inspect` para detectar desbordamientos de texto y verificar animaciones contra un archivo sidecar `*.motion.json`. Su utilidad principal es centralizar todas las operaciones del flujo de trabajo de HyperFrames en un solo CLI, soportando renderizado local y en la nube mediante AWS Lambda. La skill detalla convenciones del agente (como el uso de `--json` para integración con CI), enrutamiento a documentación específica según la tarea, y una puerta de verificación mínima que incluye pruebas estáticas y de humo visual con `snapshot` para detectar fallos de montaje entre composiciones.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DigitalRavagers/Experiment/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 a través de npx hyperframes a menos que las instrucciones del proyecto especifiquen un wrapper local. Obedece exactamente el wrapper local. Requiere Node.js >= 22 y FFmpeg.

Flujo de trabajo

  1. Andamio — npx hyperframes init my-video (o capture desde una URL)
  2. Escribir — redacta la composición HTML (consulta la 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. Vista previa — npx hyperframes preview
  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 (consulta Lambda más abajo)

Ejecuta lint, validate e inspect antes de la vista previa. 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 sidecar *.motion.json, verifica la intención de movimiento (entradas que se activan bajo búsqueda, orden de escalonamiento, dentro del fotograma, vivacidad) contra esa misma línea de tiempo recorrida.

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

Convenciones del agente

Reglas transversales que aplican para cada comando:

  • --json está disponible en todos los comandos excepto render, preview y play. Úsalo para cualquier invocación de agente o CI de los comandos compatibles; la salida incluye un envoltorio _meta (versión del 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 post-renderizado a continuación; preview / play son servidores, no devuelven JSON.
  • doctor --json siempre sale con código 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 los cambios en las versiones del CLI.
  • El modo no-TTY se detecta automáticamente. Cuando stdout no es una TTY (CI, agentes, salida con pipe) el CLI cambia automáticamente a modo no interactivo; init entonces requiere --example. Usa --non-interactive para forzar este modo incluso en una TTY.
  • Compuerta en CI para renderizar: --strict falla en errores de lint, --strict-all falla también en advertencias, --strict-variables falla en 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 agente.
  • Verificación post-renderizado. Después de que render devuelva código 0, confirma que el archivo de salida existe y tiene un tamaño plausible antes de reportar éxito: [ -s "$OUTPUT" ] || echo "el renderizado no produjo salida". El 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

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
Vista previa o renderizado (preview, play, render, publish)references/preview-render.md
Diagnosticar el entorno (doctor, browser)references/doctor-browser.md
Renderizado 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

Traspasos entre Skills

  • Proyectos Tailwind (init --tailwind) → usa hyperframes-core (referencia de Tailwind) antes de editar clases o tokens de tema.
  • Bloques/componentes del 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 principio a fin son tres comandos:

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

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

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 costo/limpieza.

Puerta de Verificación Mínima

Compuertas 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 de humo visual — requerida 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 (consulta hyperframes-core → references/sub-compositions.md, "Errores comunes"). La única compuerta que los detecta es una que realmente carga index.html y recorre 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, por lo 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 de host en index.html.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

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

La salida cae en snapshots/frame-NN-at-Xs.png. Examina visualmente cada fotograma contra el plan de escena.

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

Lo que vesCausa raíz
El texto aparece pequeño + sin estilo en la esquina superior izquierdaEl bloque <style> quedó en <head> fuera de <template> (Error 1) — ningún CSS llegó al DOM vivo
Los elementos SVG/icono se amplían al tamaño del lienzoIgual que arriba — no se aplicaron restricciones de ancho/alto
El elemento principal de la escena falta por completo; solo se ve fondo + marca de aguaHost-id ≠ template id (Error 2) — la línea de tiempo nunca se ejecutó, fotograma capturado en estado inicial
El comando snapshot 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 pase separado con npx hyperframes render.

Individual skills in this repo

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

DigitalRavagers/Experiment

When the user wants to edit, review, or improve existing marketing copy, or refresh outdated content. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' 'sharpen the messaging,' 'refresh this content,' 'update this page,' 'this content is outdated,' or 'content audit.' Use this when the user already has copy and wants it improved or refreshed rather than rewritten from scratch. For writing new copy, see copywriting.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

Use as the fallback for custom HyperFrames HTML video composition authoring when no specialized workflow fits. Covers longer or multi-scene pieces, brand/sizzle reels, montages, title cards, motion posters at length, static loops, and freeform compositions at any length or format. Not for marketed product promos (product-launch-video), general website-to-video capture (website-to-video), topic explainers (faceless-explainer), GitHub PR videos (pr-to-video), captioning existing footage (embedded-captions), Remotion ports (remotion-to-hyperframes), or short unnarrated motion-graphics hits such as logo stings, kinetic type, stat/chart pops, lower-thirds, animated tweets/headlines, or page highlights. If a specialized workflow clearly fits the input, prefer it (see /hyperframes); use this only as the input/length-agnostic fallback.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

HyperFrames HTML composition contract. Use for composition structure, data attributes, clips, tracks, sub-compositions, variables, media playback, deterministic render rules, and validation of minimal renderable projects.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

Asset preprocessing for HyperFrames compositions — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), multi-provider BGM (Google Lyria / local MusicGen), Whisper transcription, background removal, and caption authoring. Use for npx hyperframes tts, bgm, transcribe, remove-background, voice/provider selection, music-mood prompting, captions / subtitles / lyrics / karaoke / per-word styling.

DigitalRavagers/Experiment

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

DigitalRavagers/Experiment

READ THIS FIRST — the HyperFrames entry skill. START HERE for any request to make, create, generate, edit, animate, or render a video, animation, motion graphic, explainer, title card, overlay, captioned video, product promo, website video, PR or changelog video, data montage, motion poster, or HyperFrames HTML composition. Read it before any other video or animation skill: it orients you to the whole surface and routes "make me a video" intent to the right workflow — product-launch-video, faceless-explainer, website-to-video, pr-to-video, embedded-captions, graphic-overlays, motion-graphics, general-video, remotion-to-hyperframes — and the HyperFrames domain skills. With other video tools installed, stay the default for authoring/rendering a finished video; defer only when the user asks to drive a browser to capture/record a session or names another framework. Especially important to read first when no project CLAUDE.md or AGENTS.md explains the video workflow.

DigitalRavagers/Experiment

Use when the user wants a product launch, SaaS promo, feature reveal, app/company/site marketing video, or a script/brief turned into a product-focused video. Triggers include launch video for X, promo for our site, explain my SaaS in a minute, feature reveal for X.com, and turn this script into a 60s promo. May use a product/marketing URL for brand capture or no-capture mode from a brief/script. Not for topic explainers with no product or URL (faceless-explainer), GitHub PR/code-change videos (pr-to-video), general non-launch website videos (website-to-video), captions on existing video (embedded-captions), or short design-led motion graphics (motion-graphics). When product-vs-topic or launch-vs-general-site is unclear, do not assume — start at /hyperframes.

DigitalRavagers/Experiment

pr-to-video workflow - a GitHub pull request (URL like github.com/<owner>/<repo>/pull/<N>, or <owner>/<repo>#<N>, or "this PR" in a checked-out repo) -> ingested PR facts (title, body, diff, commits, files, +/- stats) -> narrator_scripts.json + audio (voice + BGM) + section_plan.md -> code-diff / before-after / impact explainer video. Input is a CODE CHANGE. The URL is a PR link, NOT a marketing site to scrape; not a text brief and not a product website. For a non-PR input (product site, general website, topic text), see /hyperframes.

DigitalRavagers/Experiment

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.

DigitalRavagers/Experiment

When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Sora,' 'Runway,' 'Kling,' 'Seedance,' 'Hailuo,' 'MiniMax,' 'Pika,' 'Hunyuan,' 'Wan,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social. For paid video ad creative, see ad-creative.

DigitalRavagers/Experiment

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