Communitygithub.com

laviedezidane/hyperframes-skill

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

hyperframes-skill とは?

このスキルは、HyperFrames フレームワークの中核となる技術的契約を定義します。HyperFrames は、HTML DOM 要素に `data-*` 属性でタイミングを宣言し、シーク可能なアニメーションランタイムとフレームワーク所有のメディア再生を備えたビデオをレンダリングします。このスキルは、スタンドアロンまたはサブ合成としてのプロジェクト構築方法、GSAP との競合を避けるためのレンダリングコード作成、`data-composition-id` や `data-duration` などの属性設定、そして決定論的レンダリングのための禁止事項(例:ランタイムクロックや非シード乱数)といった非交渉ルールを網羅しています。また、`npx hyperframes check` や `npx hyperframes render` などのCLIツールを使用した検証プロセスも含まれています。このスキルは、Claude Code、Cursor、Codex、GitHub Copilot、Windsurf などの主要なAIエージェントプラットフォームで動作し、開発者がHyperFramesのアーキテクチャ、制約、ベストプラクティスを理解して効率的に合成を作成できるように支援します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/skills/hyperframes-core

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

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

ドキュメント

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

HyperFrames コア

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

  • フレックス/insetで中央揃えにし、後でGSAPのx/yを適用するノードにCSS transform: translate(-50%,-50%)を使用しないでください。リンター: 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 です。ランタイムはそれらのピクセルをコンポジションルートにスタンプします。#root に 1920px/1080px をハードコードしないでください。スケルトン → 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(エラー)で無条件に拒否します。これには canvas/WebGL/WebAudio の読み戻しも含まれます。抑制はありません。
  • data-start を持つ <video> に、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 は width/height: 100%(または inset: 0)を使用し、1920px/1080px をハードコードしないでください。キャンバスサイズは 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つの厳しい制限:data-start を持つ <video> が、data-start も持つ別のプレーンな要素の内部にある場合、lint はエラーを出し、実際に失敗します(間違ったソースフレーム、その後クリップがスロット途中で消えます)。そのため、タイミングはラッパーかビデオのどちらか一方にのみ設定し、両方には設定しないでください。サブコンポジションホストは例外です:サブコンポジション内のメディアは正しくレンダリングされます。もう1つの注意点は配置ではなくタイムラインです:サブコンポジションのタイムラインはホストルート要素をアニメーションさせることができません。→ 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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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

laviedezidane/hyperframes-skill

Agent Media OS for 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. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

laviedezidane/hyperframes-skill

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.

関連スキル