Communitygithub.com

samyakiasonline-ctrl/hyperframe

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

hyperframe とは?

HyperFrames Core は、HyperFrames でビデオをレンダリングするための HTML コンポジションの構造とルールを定義する技術契約です。このスキルは、コンポジションの構築方法、`data-*` 属性を使ったタイミング指定、`class="clip"` によるクリップ定義、トラックとサブコンポジションの管理、変数とメディアの扱い、決定論的レンダリングのルール、そして lint のような検証ツールの使い方をカバーします。GSAP や Lottie などのアニメーションランタイムは、別のスキル「hyperframes-animation」で扱います。主な対応プラットフォームは CLI ツール (npx hyperframes) で、強力な lint チェックにより、CSS と GSAP の競合やメディアの重複タイミングなどの一般的な落とし穴を防止します。このスキルは、プロジェクトがシーク可能で決定論的なタイムラインを持ち、メディアの再生がフレームワークによって完全に制御されることを保証し、正しい構築とレンダリングの成功を導きます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/samyakiasonline-ctrl/hyperframe/tree/HEAD/.claude/skills/hyperframes-core

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

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

ドキュメント

プラグインのインストール: セットアップや最新化コマンドの前に、このスキルが HyperFrames プラグイン内にある場合は、プラグイン実行ルール に従ってください。スタンドアロンインストールの場合は、以下の更新手順を維持してください。

HyperFrames Core

エージェントの落とし穴(最初に読んでください):

  • 中央揃えには flex/inset を使用し、後で GSAP の x/y でアニメーションさせるノードに CSS transform: translate(-50%,-50%) を使わないでください。 lint: gsap_css_transform_conflict。代わりに fromTo または xPercent/yPercent を使用してください。
  • シーン終了時に tl.set(..., {visibility:"hidden"}) を追加しないでください。ランタイムは既にタイミング指定されたクリップを非表示にします。内部ノード(または .clip の opacity)での透過フェードで十分です。キャプションの強制非表示は別のルールです。
  • window.__timelines["id"] はルートの data-composition-id と一致している必要があります。
  • render 後、サマリーの2行目を読んでください: beginframe vs screenshot、GPU モード、ステージタイミング。Linux での screenshot + software gpu は低速パスです。

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

このスキルは 技術契約 です — 1つの hyperframes プロジェクトを構築する方法です。以下の本文はビルドガイドです。トピックごとの詳細は references/(次のインデックス)にあり、オンデマンドで読んでください。プロセスドキュメント(概要、ストーリーボード、レビュー、プロダクション、ディスパッチ、フレームワーカー)は /hyperframes → references/ にあります。その他の関心事は、関連するドメインスキル — hyperframes-animation、hyperframes-creative、media-use、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、あるクリップを別のクリップに対してタイミング調整する方法を理解する; npx hyperframes timeline ですべてのトラックとクリップを一覧表示する
references/creator-editing-recipes.md正確なカット/トリム/並べ替え/リタイム/フリーズ/カメラ/マスク/クロスフェード/オーディオ編集レシピとその制限をコピーする
references/sub-compositions.mdサブコンポジション(ホスト属性、<template>、インスタンスごとの変数)を配線し、その内部でアニメーションさせる
references/variables-and-media.md変数を宣言する; <video>/<audio> を配置し、音量を設定し、トリミングする
references/determinism-rules.mdシーク可能なタイムラインを構築する; 決定論の禁止事項; レイアウト / テキストフィット
references/full-screen-motion.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> ラッパーはありません。スタンドアロンルートをラッピングするとすべてのコンテンツが非表示になり、lint はそれを拒否します(standalone_composition_wrapped_in_template、エラー)。
  • サブコンポジション(data-composition-src 経由でロード): ルートを <template> でラップします。これが記述する形状です。ローダーはプレーンな完全なドキュメントも受け入れ、その <body> にフォールバックしますが、テンプレート化された形式が例とツールが想定するものです。

⚠ 転送ルール: テンプレート化された サブコンポジションの場合、アセンブラはファイル自身の <head> の <style>/<script> を破棄します(packages/core/src/compiler/compositionAssembly.ts、hasTemplate ゲート)ので、<style>/<script> は テンプレートの内部 に配置してください。<link> はどちらの方法でもホイストされます。 ⚠ ホストIDの規則: ホストスロット、内部テンプレート、window.__timelines["<id>"] キーに 同じ ID を指定してください。異なるローカルIDもサポートされています(アセンブラはファイル内の最初のルートにフォールバックします)が、不一致は無言で進行するため、特別な理由がない限り一致させてください。

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

ルートはサイズ指定が必要(無言のレイアウトバグ)

スタンドアロンルートは width/height: 100% を設定します。キャンバスサイズは data-width/data-height です。ランタイムはそれらのピクセルをコンポジションルートにスタンプします。1920px/1080px を #root にハードコードしないでください。スケルトン → references/minimal-composition.md。

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

各コンポジションは、window.__timelines["<id>"](キー = ルート data-composition-id)に 1つだけ の gsap.timeline({ paused: true }) を登録します。非同期コールバック(document.fonts.ready)内で構築することもサポートされています。重要なのは、構築が完了した後にのみ登録する ことです。レンダリング長はルートの data-duration であり、タイムラインの長さ ではありません:それを超えて実行されるタイムラインは切り落とされ、早期に終了するタイムラインは最後のフレームを保持します。ルート data-duration を省略すると、代わりに長さが推測されます(タイムライン、メディアウィンドウ、またはアダプター)。window.__timelines = window.__timelines || {} は必要ありません。ランタイムはインラインスクリプトが実行される前にレジストリを作成し、lint はもはやそれを要求しません。サブタイムラインを手動でホストにネストしないでください。ランタイムが登録された子タイムラインを自動的にネストします。完全な契約(非GSAPランタイムを含む) → references/determinism-rules.md + hyperframes-animation/adapters/。

ファーストパス lint の落とし穴(保証された最初のビルド失敗)

lint が 確かに キャッチするルールですが、後になってからです。最初から正しく書いてください:

  • CSS の初期 transform と GSAP のトゥイーンを 同じ プロパティで絶対にペアにしないでください — CSS 値とトゥイーンの開始が競合し、lint は gsap_css_transform_conflict で拒否します。CSS の transform: translateX(-40px) の代わりに、gsap.fromTo(el, { x: -40 }, { x: 0 }) でトゥイーン内に初期状態を設定してください。
  • <video>/<audio> に crossorigin を絶対に付けないでください。lint は media_crossorigin_breaks_preview(エラー)で無条件に拒否します。これにはキャンバス/WebGL/WebAudio の読み戻しも含まれます。抑制方法はありません。
  • <video data-start> に、同じく data-start を持つ祖先要素を絶対に与えないでください。lint は video_nested_in_timed_element(エラー)で拒否します。ラッパー または ビデオのどちらかにタイミングを設定し、両方には設定しないでください。
  • すべての <audio> には id が必要です。lint は media_missing_id で拒否し、ID のない <audio> はミキサーに決して拾われないため、レンダリングは 無音 になります。
  • .clip を autoAlpha または visibility でトゥイーンしないでください — lint は gsap_animates_clip_element で拒否します。代わりに子要素をアニメーションさせてください。
  • 名前付き CSS font-family には、出荷されたローカルファイルへの @font-face がファイル内にある必要があります。そうしないと、lint は font_family_without_font_face を発行します。
  • サブコンポジションの #root は、1920px/1080px のハードコードではなく、width/height: 100%(または inset: 0)を使用します。キャンバスサイズは data-width/data-height です。

lint エラー は、レイアウトおよびコントラスト監査もオフにします。check はその後 0 sample(s) と 0/0 text checks を報告し、これはクリーンなファイルのように見えますが、何も実行されなかったことを意味します。それらの数値を信頼する前に、lint エラーをクリアしてください。

交渉不可能なルール(自動ゲートが見逃す可能性のある無言のバグ)

ここに示します。完全な理由はリンク先のリファレンスにあります。違反しないでください:

  • レンダリング時のクロック / シードされていない Math.random / ネットワーク / 入力状態は使用しないでください。repeat: -1 は有限のルート data-duration 下でのみ使用してください(エクスポートクリップはそれに切り詰められます — そうでない場合は有限カウントを使用してください)。→ determinism-rules.md
  • .clip 要素で display、visibility、または autoAlpha をトゥイーンしないでください。フレームワークはクリップの可視性を所有し、lint はそれを拒否します(gsap_animates_clip_element)。代わりに子要素をアニメーションさせてください。→ determinism-rules.md
  • ボディテキストに <br> を使用しないでください。変換された要素はブロックレベルでサイズ指定されている必要があります。パルスする絶対配置の装飾要素にはピーククリアランスが必要です。→ determinism-rules.md
  • <video>/<audio> はフラットなドキュメントクエリで検出されるため、フレームワークは 任意のネスト深度(サブコンポジション <template> またはラッパー内を含む)でそれらをシークおよびデコードします。1つのハードリミット:<video data-start> が同じく data-start を持つ別の プレーンな 要素の内側にある場合、lint はエラーを出します。そして、その失敗は実際のものです(間違ったソースフレーム、その後クリップがスロット途中で消えます)。そのため、ラッパーまたはビデオのどちらかにタイミングを設定し、両方には決して設定しないでください。サブコンポジションホストは例外です:サブコンポジション内のメディアは正しくレンダリングされます。もう一つの注意点は配置ではなくタイムラインです:サブコンポジションのタイムラインはホストルート要素をアニメーションできません。→ variables-and-media.md
  • アセンブルされた ページ全体で各 id を一意に保ってください(サブコンポジションの ID にはコンポジション ID をプレフィックスとして付けます、例:#<id>-hero)。これにより、自身の #id CSS と getElementById 呼び出しが解決されます。フレームインジェクションはもはやこれに依存しません:コンパイラはすべての video[src]/audio[src]/img[src] にドキュメント全体で一意の data-hf-render-id をスタンプします。src 属性の代わりに <source> 子要素を使用するメディアはスタンプ されない ため、そこでは一意の ID が依然として重要です。→ composition-patterns.md
  • コンポジション ルート への全画面塗りつぶしは、通常のレンダリングでは問題ありません。これはレイヤーコンポジットパス(HDR コンテンツ、またはシェーダートランジションを使用するコンポジション)でのみドロップされます。そのパスでは、エンジンはすべてのコンポジションルートを透明にして、下のレイヤーが見えるようにします。コンポジションがシェーダートランジションまたは HDR メディアを使用する場合は、塗りつぶしを全幅の 子要素(position:absolute; inset:0)に配置してください。→ composition-patterns.md

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

  • 最初にファイルを読んでください。無関係なタイミング、トラック、ID、変数、メディアパスは保持してください。
  • プロジェクトのタイムライン上にあるもの(トラック、クリップ、開始、終了、再生されるもの)を確認するには、index.html とすべてのサブコンポジションファイルを読む代わりに、npx hyperframes timeline [--json] を実行してください。
  • 既存のコンポジション ID とタイムラインキーを一致させてください。
  • クリップの追加: 周囲のクリップに対して意図的に data-start/data-duration を設定してください。data-track-index は Studio の表示レーンであり、タイミング制約ではないため、空いている必要はありません。
  • ルート data-duration を超えて終了するクリップは切り落とされます。同じ編集でルート data-duration をクリップの終了位置まで拡張してください(lint は clip_ends_past_root_duration を警告します)。
  • 任意のコンポジション要素の data-hidden は、プレビューとレンダリングの 両方 でそれを非表示にし、その時間ウィンドウをオーバーライドします。これは非破壊的/可逆的であり、Studio のタイムラインの目アイコンで切り替えられます。
  • サブコンポジションの追加: ホストを配線する前に、その内部の data-composition-id を確認してください。

検証

コマンドの詳細には hyperframes-cli を使用してください

  • npx hyperframes check がパスすること(lint、ランタイム、レイアウト、モーション、コントラストにわたって0件の検出)
  • サブコンポジションがあるプロジェクト: npx hyperframes snapshot --at <midpoints> を実行し、各フレームを目視確認すること
  • レビュー用に npx hyperframes preview --background(ユーザーは Studio のタイムラインで任意のものを編集でき、サーバーは呼び出しコマンド後も存続します)
  • ユーザーが承認した後にのみ npx hyperframes render を実行すること

Individual skills in this repo

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

samyakiasonline-ctrl/hyperframe

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

samyakiasonline-ctrl/hyperframe

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

samyakiasonline-ctrl/hyperframe

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

samyakiasonline-ctrl/hyperframe

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). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

samyakiasonline-ctrl/hyperframe

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

samyakiasonline-ctrl/hyperframe

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

samyakiasonline-ctrl/hyperframe

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

samyakiasonline-ctrl/hyperframe

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

samyakiasonline-ctrl/hyperframe

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

samyakiasonline-ctrl/hyperframe

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

samyakiasonline-ctrl/hyperframe

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

samyakiasonline-ctrl/hyperframe

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

samyakiasonline-ctrl/hyperframe

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

samyakiasonline-ctrl/hyperframe

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

関連スキル