Communitygithub.com

DigitalRavagers/Experiment

Boucle de développement CLI HyperFrames. Utilisez cette compétence avec `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 pour diagnostiquer l'environnement de build/rendu HyperFrames. Point d'entrée pour le rendu cloud AWS Lambda (`hyperframes lambda deploy / render / progress / destroy / policies`).

Qu'est-ce que Experiment ?

Cette compétence fournit l'interface en ligne de commande HyperFrames, un outil complet pour créer, valider, inspecter et rendre des compositions vidéo HTML. Elle couvre l'ensemble du flux de travail du développement : du scaffold initial (`init`, `capture`) à la livraison finale (`render`, `publish`), en passant par des vérifications statiques (`lint`, `validate`) et dynamiques (`inspect`, `snapshot`). La compétence prend en charge le rendu local pour l'itération rapide ainsi que le rendu distribué sur AWS Lambda pour les projets longs ou volumineux. Elle intègre des conventions agent robustes comme la sortie JSON pour l'automatisation (sauf pour `render`, `preview`, `play`), la détection automatique du mode non-TTY, et des portes de contrôle de qualité (`--strict`, `--strict-all`, `--json` avec champ `ok`). Le résumé technique détaille chaque commande, les mécanismes de validation (timelines, sous-compositions, contraste WCAG, mouvements via `*.motion.json`), et les renvois vers d'autres compétences spécialisées (hyperframes-core, hyperframes-registry, hyperframes-media).

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DigitalRavagers/Experiment/tree/HEAD/.agents/skills/hyperframes-cli

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

CLI HyperFrames

Tout passe par npx hyperframes sauf si les instructions du projet spécifient un wrapper local. Respectez ce wrapper local à la lettre. Nécessite Node.js >= 22 et FFmpeg.

Workflow

  1. Scaffold — npx hyperframes init my-video (ou capture depuis une URL)
  2. Écrire — composer le HTML (voir la compétence hyperframes-core)
  3. Lint — npx hyperframes lint
  4. Valider — npx hyperframes validate (erreurs d'exécution + contraste)
  5. Inspection visuelle — npx hyperframes inspect
  6. Prévisualiser — npx hyperframes preview
  7. Rendre — choisissez la variante :
    • Itérer : npx hyperframes render --quality draft
    • Livrer : npx hyperframes render --quality high --output out.mp4
    • CI / reproductibilité multi-hôtes : npx hyperframes render --docker --strict --output out.mp4
    • Cloud (long / volumineux) : npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (voir Lambda ci-dessous)

Exécutez lint, validate et inspect avant la prévisualisation. lint détecte les data-composition-id manquants, les pistes qui se chevauchent et les timelines non enregistrées. validate charge la composition dans Chrome headless et rapporte les erreurs de console runtime ainsi que les problèmes de contraste WCAG. inspect parcourt la timeline et signale le texte qui dépasse des bulles/conteneurs ou du canevas — et, lorsqu'un fichier *.motion.json est présent, vérifie l'intention de mouvement (entrées déclenchées sous seek, ordre de stagger, dans le cadre, vivacité) par rapport à cette même timeline parcourue.

Pour les travaux axés sur le mouvement, privilégiez l'itération basée sur les snapshots et un fichier *.motion.json — voir references/lint-validate-inspect.md pour la discipline et les spécifications de vérification du mouvement.

Conventions Agent

Règles transversales qui s'appliquent à chaque commande :

  • --json est disponible sur toutes les commandes sauf render, preview et play. Utilisez-le pour toute invocation agent / CI des commandes prises en charge ; la sortie inclut une enveloppe _meta (version CLI, dernière disponible, conseil de mise à jour). render rapporte l'état via stdout + code de sortie uniquement — vérifiez le succès avec la vérification post-rendu ci-dessous ; preview / play sont des serveurs, pas de JSON.
  • doctor --json se termine toujours par 0, même si l'environnement est cassé. Filtrez sur le champ ok du payload : npx hyperframes doctor --json | jq -e '.ok' > /dev/null. Cela isole les pipelines des changements de version du CLI.
  • Le mode non-TTY est détecté automatiquement. Lorsque stdout n'est pas un TTY (CI, agents, sortie redirigée), le CLI bascule automatiquement en mode non-interactif ; init nécessite alors --example. Passez --non-interactive pour forcer ce mode même sur un TTY.
  • Porte de contrôle CI sur le rendu : --strict échoue sur les erreurs lint, --strict-all échoue aussi sur les avertissements, --strict-variables échoue sur les clés --variables non déclarées.
  • Les chemins dans --json sont masqués — $HOME devient le littéral $HOME afin que la sortie puisse être collée en toute sécurité dans les rapports de bug et les contextes agents.
  • Vérification post-rendu. Après que render renvoie le code 0, confirmez que le fichier de sortie existe et a une taille plausible avant de signaler le succès : [ -s "$OUTPUT" ] || echo "le rendu n'a produit aucune sortie". Le CLI imprime ◇ <chemin> en cas de succès ; pour les rendus longs, vérifiez aussi la durée avec ffprobe -i "$OUTPUT" -show_format -v error.

Routage

Vous voulez…Lisez
Créer un projet (init, capture, skills)references/init-and-scaffold.md
Vérifier l'exactitude (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
Prévisualiser ou rendre (preview, play, render, publish)references/preview-render.md
Diagnostiquer l'environnement (doctor, browser)references/doctor-browser.md
Rendu cloud sur AWS Lambda (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
Tout le reste (info, upgrade, compositions, docs, benchmark, telemetry, prétraitement assets)references/upgrade-info-misc.md

Passerelles Entre Compétences

  • Projets Tailwind (init --tailwind) → utilisez hyperframes-core (référence Tailwind) avant de modifier les classes ou les tokens de thème.
  • Blocs/composants du registre (hyperframes add, hyperframes catalog) → utilisez hyperframes-registry pour les chemins d'installation, le câblage des sous-compositions et la fusion des snippets.
  • Prétraitement des assets (tts, transcribe, remove-background) → utilisez hyperframes-media pour la sélection des voix, les règles du modèle Whisper, les sous-titres et la chaîne TTS-vers-sous-titres.
  • Rendus paramétrés (--variables) → déclarés via data-composition-variables sur <html> ; voir hyperframes-core pour le schéma complet.

Lambda (Rendu Cloud)

hyperframes lambda déploie le rendu distribué sur AWS Lambda et pilote les rendus depuis votre machine ou votre CI. De bout en bout, trois commandes :

npx hyperframes lambda deploy                                             # provisionne la pile SAM (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # démantèle la pile (le bucket S3 est conservé)

Utilisez Lambda lorsqu'un rendu est trop long / trop volumineux pour un seul hôte (vidéos de plusieurs minutes, 4K, gros lots parallèles) et que vous avez configuré des identifiants AWS. Pour l'itération en boucle de développement, restez sur le rendu local (render).

Voir references/lambda.md pour les prérequis, les 6 sous-commandes (deploy, sites create, render, progress, destroy, policies), la validation des politiques IAM, les fichiers d'état, et les règles de coût / nettoyage.

Porte de Complétion Minimale

Portes statiques

npx hyperframes lint
npx hyperframes validate

Ajoutez inspect pour les travaux sensibles à la mise en page et render --strict en CI pour échouer sur les erreurs lint.

Test visuel de fumée — requis lorsque le projet utilise des sous-compositions

lint / validate / inspect évaluent chaque composition en isolation. Ils ne chargent jamais index.html et ne montent pas les sous-compositions via data-composition-src, donc ils ne peuvent pas détecter les échecs de montage inter-fichiers (voir hyperframes-core → references/sub-compositions.md, "Pièges courants"). La seule porte qui les détecte est celle qui charge effectivement index.html et parcourt la timeline.

Utilisez hyperframes snapshot — il charge le projet de la même manière que render (donc il exécute le même chemin de montage) mais ne capture que les timestamps que vous demandez, donc c'est une question de secondes au lieu d'un rendu complet :

# Capture une image au milieu de chaque sous-composition.
# Milieux = data-start + data-duration/2 pour chaque emplacement hôte dans index.html.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# Ou, si vous n'avez pas besoin de ciblage par scène, un échantillon régulièrement espacé :
npx hyperframes snapshot --frames 9

La sortie atterrit dans snapshots/frame-NN-at-Xs.png. Examinez chaque image par rapport au plan de la scène.

Drapeaux rouges par image (chacun correspond à un mode d'échec spécifique que les portes statiques ne détectent pas) :

Ce que vous voyezCause racine
Le texte apparaît minuscule + non stylé dans le coin supérieur gaucheBloc <style> laissé dans <head> en dehors de <template> (Piège 1) — aucun CSS n'a atteint le DOM
Les éléments SVG/icônes sont agrandis à la taille du canevasIdentique ci-dessus — aucune contrainte de largeur/hauteur appliquée
L'élément principal de la scène est totalement absent ; seul fond + filigrane visibleL'identifiant hôte ≠ identifiant template (Piège 2) — la timeline n'a jamais été exécutée, image capturée à l'état initial
La commande snapshot enregistre Sub-composition timelines not registered after 45000msPiège 2 — confirmation directe

snapshots/ peut être supprimé après l'examen ; le rendu final utilisable est une passe séparée avec 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 associés