Communitygithub.com

DansiDanutz/Video-Editor

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

Video-Editor とは?

このスキルは HyperFrames ビデオ合成システムの技術契約であり、HTML ベースのビデオプロジェクトを構築するための完全なガイドを提供します。`data-*` 属性を用いた DOM ベースのタイミング宣言、`class="clip"` 要素、トラック、サブ合成、フレームワークによるメディア再生制御、そして決定論的レンダリングルールなど、主要な概念をカバーしています。主に Claude Code、Cursor、Codex などの AI エージェント向けに設計されており、`hyperframes-cli` ツールスイートを通じてチェック、プレビュー、レンダリングを行います。このスキルは、GSAP アニメーション、Tailwind CSS、サブ合成のネスト、参照による詳細なドキュメントへのリンクをサポートする一方で、AI エージェントが犯しがちな落とし穴(プロパティの競合、メディアの配置、タイムラインの登録など)を明確に警告します。開発者は、このスキルを使用して、ブラウザ上でシーク可能で決定論的なレンダリングが可能な、本番品質のビデオ合成を迅速に構築できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/hyperframes-core

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

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

ドキュメント

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

HyperFrames コア

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

  • センタリングには flex/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 ファイルです。

このスキルは 技術契約 です — 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.mddata-*(ルート / クリップ / サブコンポジションホスト / レガシーエイリアス)を調べる;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つの一時停止タイムライン

各コンポジションは、ちょうど1つの gsap.timeline({ paused: true }) を window.__timelines["<id>"](キー = ルート data-composition-id)に登録します。非同期コールバック(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 読み出しを含みます。抑制はありません。
  • 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 を使用しないでください(有限カウントを使用)。→ 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、変数、メディアパスを保持してください。
  • プロジェクトのタイムラインに何があるか(トラック、クリップ、開始、終了、再生内容)を知るには、npx hyperframes timeline [--json] を実行し、index.html とすべてのサブコンポジションファイルを読む代わりに使用してください。
  • 既存のコンポジション 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件の finding)
  • サブコンポジションを含むプロジェクト: npx hyperframes snapshot --at <midpoints> を実行し、各フレームを目視確認する
  • レビュー用に npx hyperframes preview --background を実行する(ユーザーは Studio のタイムラインで任意の項目を編集でき、サーバーは呼び出しコマンドを生き残ります)
  • ユーザーが承認した後にのみ npx hyperframes render を実行する

Individual skills in this repo

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: 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`.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

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.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

関連スキル