Communitygithub.com

HyperFrames Core

HyperFrames 合成契約 — 一つのレンダリング可能なプロジェクトを構築します。合成構造、`data-*` タイミング属性、`class="clip"`、トラック、サブコンポジション、変数、フレームワーク所有のメディア再生、決定論的レンダリングルール、バリデーションに使用します。合成HTMLを作成する前に読んでください。

HyperFrames Core とは?

HyperFrames Core は、HTML からビデオをレンダリングするためのフレームワークである HyperFrames の中心的なスキルです。このスキルは、`data-*` 属性を使用して DOM のタイミングを宣言し、シーク可能なアニメーションランタイムを持ち、メディア再生をフレームワークが管理する合成プロジェクトを構築するための技術的な契約を定義します。開発者はこのスキルを使用して、スタンドアロンの `index.html` またはサブコンポジション(`<template>` でラップ)のいずれかの形式でコンポジションを作成し、`lint`、`validate`、`inspect` などの CLI ツールで検証します。主な機能には、決定論的レンダリング(ランタイムクロックや `repeat: -1` の禁止)、アニメート可能なプロパティのホワイトリスト、メディアファイルの正しい配置、一意の ID 要件、静的なレイアウトバグ(ルート要素のサイズ不足によるコンテンツの消失など)の回避が含まれます。このスキルは、Claude Code、Cursor、Codex などの開発ツールと連携し、コミュニティ設定エージェントとして機能します。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

HyperFrames Core は何をしますか?

HyperFrames は HTML からビデオをレンダリングします。コンポジションは、data-* 属性でタイミングを宣言し、アニメーションランタイムがシーク可能で、メディア再生がフレームワークに所有される HTML ファイルです。

このスキルは 技術契約 — 1つの hyperframes プロジェクトを構築する方法です。以下の本文はビルドガイドです。トピックごとの詳細は references/(次のインデックス)にあり、必要に応じて参照してください。その他の関心事は兄弟ドメインスキル — hyperframes-animation、hyperframes-creative、hyperframes-media、hyperframes-cli、hyperframes-registry にあります。/hyperframes の機能マップはそれぞれのカバー範囲を示します。

リファレンス

ファイルこれを読むと…
references/minimal-composition.md最小のレンダリング可能なコンポジションスケルトンから始められます
references/composition-patterns.mdモノリシック vs モジュラーを選択; モジュラー index.html を構造化; サブコンポジションアーキタイプを選択
references/data-attributes.md任意の data-*(ルート / クリップ / サブコンポジションホスト / レガシーエイリアス)を検索; class="clip" を使用
references/tracks-and-clips.mddata-track-index を選択; 同じトラックのオーバーラップ / z-index を処理; 別のクリップを基準にタイミングを設定
references/sub-compositions.mdサブコンポジションを接続(ホスト属性、<template>、インスタンスごとの変数)し、内部でアニメーション
references/variables-and-media.md変数を宣言; <video>/<audio> を配置、音量設定、トリミング
references/determinism-rules.mdシーク可能なタイムラインを構築; 決定論禁止事項; アニメート可能プロパティのホワイトリスト; レイアウト / テキストフィット
references/full-screen-motion.md共有背景を使用してフルフレームモーションを作成
references/storyboard-format.mdSTORYBOARD.md 計画(+ 解析されたマニフェスト)を作成
references/script-format.mdオプションの SCRIPT.md ロックされたナレーションを作成
references/subagent-dispatch.mdサブエージェントディスパッチ動詞(並列ファンアウト / バックグラウンド / 待機)をハーネスにマッピング
references/tailwind.mdTailwind v4 プロジェクトで作業 (init --tailwind; ランタイム契約は Studio の v3 と異なる)

アニメーションランタイムの詳細(GSAP API、Lottie、Three.js など)は hyperframes-animation → adapters/<runtime>.md に進んでください。

コンポジションの構築

2つのルート形式(互換性なし)

  • スタンドアロン(トップレベル index.html)— ルート <div data-composition-id="…"> が <body> に直接配置され、<template> ラッパーはなし(ラップするとすべてのコンテンツが隠れてレンダリングが壊れます)。
  • サブコンポジション(data-composition-src 経由でロード)— ルートは <template> でラップする必要があります。

⚠ トランスポートルール: ランタイムは <template> の内容のみをクローンします; 外側(<head> スタイル/スクリプトを含む)はすべて破棄されるため、<style>/<script> はテンプレート 内側 に配置してください。 ⚠ ホストIDルール: ホストスロットの data-composition-id は、内部テンプレートの data-composition-id および window.__timelines["<id>"] キーと 完全に一致 する必要があります — -mount/-slot/-host 接尾辞は付けないでください。

ファイル形状、ホスト配線、およびレンダリング前チェックリスト → references/sub-compositions.md。

ルートのサイズ指定が必要(静的なレイアウトバグ)

スタンドアロンルートは明示的な サイズ指定ボックス(width/height をpxで)が必要であり、height:100% 要素までのすべての祖先が解決された高さを持っている必要があります — そうしないと、flex/100% の子が約0に潰れてコンテンツが左上隅に詰まります。lint/validate/inspect はこれを キャッチしません。スケルトン → references/minimal-composition.md。

1つの一時停止タイムライン

各コンポジションは、ページロード時に 同期的に 構築された gsap.timeline({ paused: true }) を window.__timelines["<id>"](キー = ルート data-composition-id)に ちょうど1つ 登録します。レンダリング期間 = ルート data-duration、タイムラインの長さではありません。サブタイムラインを手動でホストにネストしないでください。完全な契約(非GSAPランタイムを含む)→ references/determinism-rules.md + hyperframes-animation/adapters/。

譲れないルール(lint/validate/inspect がキャッチしない静的なバグ)

ここに提示; 完全な根拠はリンクされたリファレンスにあります。違反しないでください:

  • レンダリングタイムクロック / 未シードの Math.random / ネットワーク / 入力状態なし; repeat: -1 なし(有限カウントを使用)。→ determinism-rules.md
  • ビジュアルプロパティのホワイトリストのみアニメート; display/visibility は絶対に使用しない; 後続シーンのクリップに gsap.set を使用しない。→ determinism-rules.md
  • 本文テキストに <br> を使用しない; 変換された要素はブロックレベル + サイズ指定が必要; パルスする絶対配置装飾はピーククリアランスが必要。→ determinism-rules.md
  • <video>/<audio> はホストルートの 直接の子 である必要があります(サブコンポジション <template>/ラッパー内には絶対に配置しない); フレームワークが再生を所有します。→ variables-and-media.md
  • すべての id は 組み立てられた ページ全体で一意でなければなりません; サブコンポジション内では、id にコンポジションIDをプレフィックスとして付けます(#<id>-hero)。重複する <video>/<img> id は 空白 をレンダリングします — プロデューサーは getElementById でフレームを注入するため、ファイルをまたがる重複は lint をすり抜けます。→ composition-patterns.md
  • フルスクリーンシーンの塗りつぶしは、完全ににじみ出る 子(position:absolute; inset:0)に配置し、コンポジションルート自体には決して配置しないでください — プロデューサーのフレーム合成は、ルート要素自身の background をドロップする可能性があります(フレームは 黒 でレンダリングされます)。プレビュー/snapshot では正しく表示されていても。→ composition-patterns.md

既存のコンポジションの編集

  • 最初にファイルを読んでください。関係のないタイミング、トラック、ID、変数、メディアパスを保持してください。
  • 既存のコンポジションIDとタイムラインキーに一致させてください。
  • クリップを追加する場合: 重複しない data-track-index を選択するか、意図的に周囲のタイミングを調整してください。
  • サブコンポジションを追加する場合: ホストを配線する前に、内部の data-composition-id を確認してください。

検証

コマンドの詳細は hyperframes-cli を使用

  • npx hyperframes lint がパスする(エラー0)
  • npx hyperframes validate がパスする(コンソールエラー0)
  • npx hyperframes inspect がパスする(エラー0)
  • サブコンポジションを含むプロジェクト: npx hyperframes snapshot --at <midpoints> で各フレームを目視確認
  • npx hyperframes preview でレビュー(ユーザーは Studio のタイムラインで何でも編集可能)
  • 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

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.

関連スキル