Communitygithub.com

1345AbhishekKumar/starter-nextjs

Le contrat de composition HyperFrames — construire un projet rendable. À utiliser pour la structure de composition, les attributs `data-*` de timing, `class="clip"`, les pistes, les sous-compositions, les variables, la lecture multimédia pilotée par le framework, les règles de rendu déterministe et la validation. À lire avant d'écrire le HTML de composition.

Qu'est-ce que starter-nextjs ?

Ce skill décrit le contrat technique fondamental d'HyperFrames, un framework qui génère des vidéos à partir de HTML. Il définit comment construire un projet de composition unique, où le DOM déclare le timing via des attributs `data-*`, le runtime d'animation est navigable et la lecture multimédia est contrôlée par le framework. Conçu principalement pour les développeurs utilisant Claude Code, Cursor ou Codex, il inclut des règles non négociables (pas d'horloge en temps réel, pas de `Math.random` non ensemencé, liste d'autorisation des propriétés animables) et couvre deux formes racine (autonome et sous-composition). Le skill référence 11 fichiers de documentation détaillée (références/minimal-composition.md, références/composition-patterns.md, etc.) et s'appuie sur des skills frères pour l'animation, le rendu créatif et la CLI. Il insiste sur le respect strict de la structure HTML, de l'attribution unique des IDs et de l'utilisation des commandes CLI (`lint`, `validate`, `inspect`, `snapshot`, `preview`, `render`) pour garantir un rendu correct sans bugs silencieux.

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

Demander à votre IA préférée

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

Documentation

HyperFrames Core

HyperFrames rend la vidéo à partir d'HTML. Une composition est un fichier HTML dont le DOM déclare le timing avec des attributs data-*, dont le runtime d'animation est navigable et dont la lecture multimédia est contrôlée par le framework.

Ce skill est le contrat technique — comment construire un projet hyperframes. Le corps ci-dessous est le guide de construction ; les détails par sujet se trouvent dans references/ (index à suivre), lisez à la demande. Les autres préoccupations se trouvent dans les skills de domaine frères — hyperframes-animation, hyperframes-creative, hyperframes-media, hyperframes-cli, hyperframes-registry. La carte des capacités dans /hyperframes indique ce que chacun couvre.

Références

FichierÀ lire pour…
references/minimal-composition.mdpartir du squelette de composition rendable le plus petit
references/composition-patterns.mdchoisir monolithique vs modulaire ; structurer un index.html modulaire ; choisir un archétype de sous-composition
references/data-attributes.mdrechercher un attribut data-* (racine / clip / hôte de sous-composition / alias hérités) ; utiliser class="clip"
references/tracks-and-clips.mdchoisir data-track-index, gérer le chevauchement / z-index sur la même piste, temporiser un clip par rapport à un autre
references/sub-compositions.mdcâbler une sous-composition (attributs hôte, <template>, variables par instance) et animer à l'intérieur
references/variables-and-media.mddéclarer des variables ; placer <video>/<audio>, régler le volume, rogner
references/determinism-rules.mdconstruire une timeline navigable ; interdictions de déterminisme ; liste d'autorisation des propriétés animables ; ajustement de la mise en page / du texte
references/full-screen-motion.mdcréer un mouvement plein écran avec des arrière-plans partagés
references/storyboard-format.mdrédiger un plan STORYBOARD.md (+ le manifeste parsé)
references/script-format.mdrédiger la narration verrouillée optionnelle SCRIPT.md
references/subagent-dispatch.mdmapper les verbes de dispatch du sous-agent (fan-out parallèle / arrière-plan / attente) vers votre harnais
references/tailwind.mdtravailler dans un projet Tailwind v4 (init --tailwind ; le contrat d'exécution diffère de Studio v3)

Pour les spécificités du runtime d'animation (API GSAP, Lottie, Three.js, etc.) allez dans hyperframes-animation → adapters/<runtime>.md.

Construire une composition

Deux formes racine (non interchangeables)

  • Autonome (index.html de niveau supérieur) — le <div data-composition-id="…"> racine se trouve directement dans <body>, pas de wrapper <template> (l'envelopper cache tout le contenu et casse le rendu).
  • Sous-composition (chargée via data-composition-src) — la racine doit être enveloppée dans <template>.

⚠ Règle de transport : le runtime clone uniquement le contenu de <template> ; tout ce qui est à l'extérieur (y compris les styles/scripts <head>) est ignoré — placez <style>/<script> à l'intérieur du template. ⚠ Règle d'ID hôte : le data-composition-id de l'emplacement hôte doit exactement correspondre au data-composition-id du template intérieur et à la clé window.__timelines["<id>"] — aucun suffixe -mount/-slot/-host.

Forme du fichier, câblage hôte et liste de contrôle avant rendu → references/sub-compositions.md.

La racine doit être dimensionnée (bug de mise en page silencieux)

La racine autonome nécessite une boîte dimensionnée explicite (width/height en px), et chaque ancêtre jusqu'à un élément height:100% doit avoir une hauteur résolue — sinon un enfant flex/100% s'effondre à ~0 et le contenu s'entasse dans le coin supérieur gauche. lint/validate/inspect ne captent pas cela. Squelette → references/minimal-composition.md.

Une timeline en pause

Chaque composition enregistre exactement une gsap.timeline({ paused: true }) à window.__timelines["<id>"] (clé = data-composition-id racine), construite de manière synchrone au chargement de la page. La durée du rendu = data-duration racine, pas la longueur de la timeline. N'imbriquez pas manuellement de sous-timelines dans l'hôte. Contrat complet (y compris les runtimes non GSAP) → references/determinism-rules.md + hyperframes-animation/adapters/.

Règles non négociables (bugs silencieux que lint/validate/inspect ne captent pas)

Exposées ici ; justification complète dans la référence liée. Ne violez pas :

  • Pas d'horloge en temps réel / Math.random non ensemencé / réseau / état d'entrée ; pas de repeat: -1 (utilisez un compte fini). → determinism-rules.md
  • Animez uniquement la liste d'autorisation des propriétés visuelles ; jamais display/visibility ; pas de gsap.set sur les clips de scènes ultérieures. → determinism-rules.md
  • Pas de <br> dans le texte du corps ; les éléments transformés doivent être de niveau bloc + dimensionnés ; les décoratifs absolus pulsés nécessitent un dégagement de pointe. → determinism-rules.md
  • <video>/<audio> doit être un enfant direct de la racine hôte (jamais à l'intérieur d'un <template>/wrapper de sous-composition) ; le framework possède la lecture. → variables-and-media.md
  • Chaque id doit être unique sur la page assemblée ; à l'intérieur d'une sous-composition, préfixez les ids avec l'id de composition (#<id>-hero). Les ids duplicate /rendent **vide** — le producteur injecte les images pargetElementById, et les doublons entre fichiers échappent à lint. → composition-patterns.md`
  • Un remplissage de scène plein écran va sur un enfant plein écran (position:absolute; inset:0), jamais sur la racine de composition elle-même — la composition d'image du producteur peut supprimer le background propre de l'élément racine (l'image rend noir) même si l'aperçu/snapshot l'affiche correctement. → composition-patterns.md

Modifier des compositions existantes

  • Lisez d'abord les fichiers. Préservez le timing, les pistes, les IDs, les variables, les chemins multimédia non liés.
  • Faites correspondre les IDs de composition et les clés de timeline existants.
  • Ajouter un clip : choisissez un data-track-index non chevauchant ou ajustez le timing environnant intentionnellement.
  • Ajouter une sous-composition : vérifiez son data-composition-id interne avant de câbler l'hôte.

Validation

Utilisez hyperframes-cli pour les détails de commande

  • npx hyperframes lint passe (0 erreurs)
  • npx hyperframes validate passe (0 erreurs console)
  • npx hyperframes inspect passe (0 erreurs)
  • Projets avec sous-compositions : npx hyperframes snapshot --at <milieux> et inspectez chaque image
  • npx hyperframes preview pour la révision (l'utilisateur peut éditer n'importe quoi dans la timeline de Studio)
  • npx hyperframes render uniquement après l'approbation de l'utilisateur

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 associés