Communitygithub.com

HyperFrames キーフレーム

HyperFrames コンポジションにパンチイン/アウト、ズーム、リフレーム、ケン・バーンズ効果、カメラ移動、ビジュアルマッチ/ウィップハンドオフ、その他シークセーフな 2D/3D キーフレームを適用するスキル。GSAP、CSS キーフレーム、Anime.js、WAAPI、FLIP、パス、マスク、SVG モーフ/ドロー、テキストトレイル、3D 深度、`hyperframes keyframes` 診断にも対応。

HyperFrames キーフレーム とは?

このスキルは、HyperFrames コンポジション内でのビジュアルモーション(キーフレームアニメーション)の作成、編集、検証に特化しています。パンチイン/アウト、ズーム、リフレーム、ケン・バーンズ効果、カメラパン、マッチカット/ウィップパン、クロップ&マスクリフレーム、スプリットスクリーンハンドオフなど、さまざまなカメラワークやトランジションの実装を、シークセーフかつ確定論的な方法で実現します。対応するランタイムは GSAP、CSS キーフレーム、Anime.js、WAAPI であり、FLIP、パス移動、シェイプ補間、SVG ストローク/モーフ、テキストアニメーション、3D 深度、Canvas/WebGL もサポートします。このスキルの動作領域はクリップそのものの編集(トリム、スプライス、並び替え)には及びません。それらは `/hyperframes-core` が担当します。「Creator editing boundary」セクションで役割分担を明確に定義し、キーフレームはあくまでクリップ内のラッパーに対する視覚的なモーションのみを担当します。ワークフローは手続き型で、アニメーションの対象と状態の特定、最小限のメカニズムの選択、シークセーフなキーフレームの作成、`hyperframes lint/check/keyframes/snapshot` コマンドによる検証、そしてフェイル時には最小の診断から修正を行うという流れです。各ランタイムごとにビルドルール(同期的な生成、再生制御、有限ループなど)が定められており、レンダリングにクリティカルなモーションでの `Date.now()` や非同期生成などの危険なパターンを禁止する規約も含まれています。さらに、エフェクト選択の指針(「Mechanism Choice」テーブル)やタイミング設計の原則(アンティシペーション、オーバーシュート、フォロースルーなど)も提供し、単なるツールの説明を超えた、プロフェッショナルなモーションデザインの規範を示しています。CLI ツールによる検証(`keyframes`、`--shot`、`--layout strip`、`--ghost`、`snapshot --at`)を用意し、各コマンドの検証内容も定義。エディタや CLI でシームレスに動作し、あらゆるキーフレームワークフローをカバーします。

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

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

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

ドキュメント

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

HyperFrames キーフレーム は何をしますか?

キーフレームはポーズ契約です。可視状態、被写体の連続性、シークセーフなランタイム、検証済みピクセル。

大まかなシーンレシピには hyperframes-animation を、完全なコマンドドキュメントには hyperframes-cli を、実装メカニズムの選択(視覚スタイルではない)には references/keyframe-patterns.md を使用してください。

クリエイター編集境界

キーフレームはクリップアセンブリではなく、ビジュアルモーションを担当します。ソース範囲のハードカット、トリム、スプライス、並び替えは /hyperframes-core の担当です。保持する範囲ごとに1つのメディア要素を作成し、data-start と data-duration で配置し、data-media-start でソースオフセットを選択します。隣接する範囲でハードカットになります。クロスフェードは、異なるトラック上の重なり合うクリップと視覚的な不透明度キーフレームを使用します。サウンドフェードは /hyperframes-audio を使用します。

クリエイターリクエスト真実のメカニズム
パンチイン / パンチアウトクリップ内の非タイミングのビジュアル/クロップラッパーに対して、scale と x/y またはパーセント移動を使用したキーフレーム。ハードなパンチにはセット/ショートトゥイーンを、スムーズな移動にはトゥイーンを使用します。
スムーズなマルチステートズームまたはリフレーム1つの被写体ラッパーを存続させ、セグメントごとのイージングを持つポーズラダーとして複数のズーム/リフレーム状態を作成します。
パン、リフレーム、またはケン・バーンズカメラ移動ラッパーの移動とスケールをアニメーション化。ジオメトリは作成時に指定。これは顔追跡や自動的な意味論的リフレームではありません。
連続カメラ移動1つの登録済みシークセーフタイムライン上で、ラベル付きのトランスフォームビートをチェーンします。
マッチカットまたはウィップパン/hyperframes-animation が視覚的なハンドオフを担当し、/hyperframes-registry がプリミティブを提供します。キーフレームは作成されたジオメトリ、方向、速度を保持します。自動的なマッチングフレームの発見はありません。
クロップとマスクリフレーム内側のビジュアルラッパー上で clip-path またはマスクを補間して、ソース時間を変更せずにクロップ/リフレームします。ポリゴンキーフレームでポリゴン/マスクトランジションを形成できます。
方向性ワイプカットまたはアイリス/リビールカット重なり合うビジュアルクリップ間でマスク/クリップ境界をアニメーション化。/hyperframes-animation がハンドオフのコレオグラフィーを担当します。
スプリットスクリーンハンドオフ両方のビジュアルクリップをコアで配置し、内部のクロップ/マスクラッパーと仕切りジオメトリをキーフレーム化します。
一定ソースリタイム/hyperframes-core がレンダリングセーフな画像とピッチ保存されたサウンドのために正規化された data-playback-rate(0.1..10)を担当。メディア要素全体で一定。
ソーススピードランプ<video>/<audio> 上の data-automation 内の rate レーン(t はクリップ秒、v は 0.1..10、対数補間)。これは一定レートよりも優先されます。
フリーズ / ホールドビジュアルポーズ、最終ソースフレーム、または完了したサブコンポジションをホールドできます。ソース途中の任意のフリーズはサポートされていません。静止画/派生セグメントを前処理して独自のクリップとして配置し、別のソース範囲で再開します。

ピクチャーとサウンドを一緒に編集する場合は、/hyperframes-core、ビジュアルモーション用のこのスキル、フェード、クロスフェード、ボリュームオートメーション、ダッキング/カービング、または配置されたトラックへのエフェクト用の /hyperframes-audio をロードします。

視覚的なトランジションやクロッピング処理は、時間的なソーストリムやスプライスではありません。/hyperframes-core がタイムライン、クリップタイミング、ソース範囲を担当します。キーフレームはそれらのクリップ内のラッパー上の可視的なハンドオフまたはクロップのみをアニメーション化します。コピー可能な結合ピクチャー/サウンドレシピについては、/hyperframes-core → references/creator-editing-recipes.md を使用してください。

手順

  1. アニメーションの対象、可視状態、最終状態、ランタイムを特定します。
  2. プロンプトを証明する最小のメカニズムを選択します。メカニズムが不明な場合のみ references/keyframe-patterns.md を読んでください。
  3. 宣言されたランタイム内でシークセーフなキーフレームを作成します。同期的に構築し、ランタイムインスタンスを登録します。
  4. hyperframes lint、hyperframes check、hyperframes keyframes、1つのフォーカスされた --shot、および証明時点でのスナップショットで検証します。
  5. 証明が失敗した場合、ソースキーフレームを修正し、レンダリング前に失敗した最小の診断を再実行します。

契約

  • 動く被写体に名前を付けます。
  • 意図された動きを証明するために必要なポーズに名前を付けます。最終状態を含みます。
  • 隠れたヘルパー状態ではなく、可視チャンネルをキーフレーム化します。
  • 連続性が重要な場合はオブジェクトの同一性を保持します。
  • 意図された動きが置換またはディゾルブである場合のみクロスフェードします。
  • 読み取り可能または意味論的な状態を、見えるのに十分な時間保持します。
  • 最終フレームはアニメーションの一部であり、クリーンアップではありません。
  • 要求されない限り、静止状態にリセットしないでください。
  • 要求されない限り、黒で終了しないでください。
  • スターターシーンを編集する場合、再設計を求められない限り、レイアウト、コピー、アセット、色、最終状態を保持します。

ランタイムルール

GSAP:

  • ページ読み込み時に同期的に構築
  • gsap.timeline({ paused: true }) を使用
  • window.__timelines[compositionId] として登録
  • レジストリキーは data-composition-id と一致する必要があります
  • レンダリングクリティカルなモーションに tl.play() を呼び出さない
  • 繰り返しは有限に保つ

CSS キーフレーム:

  • 有限の duration と iteration count
  • 決定論的な delay
  • animation-fill-mode: both
  • タイミングがクリップに属する場合は data-start を使用

Anime.js:

  • 同期的に作成
  • autoplay: false
  • 有限の duration と loops
  • すべてのインスタンスを window.__hfAnime にプッシュ

WAAPI:

  • 有限の duration
  • fill: "both"
  • 決定論的な構築
  • テキストサーフェスは WAAPI をリストしません。--shot(WAAPI をシークする)とスナップショットで検証します

レンダリングクリティカルなモーションには決して使用しない:

  • Date.now()
  • performance.now()
  • シードされていない Math.random()
  • ホバー/スクロールトリガー
  • タイマー
  • 非同期で作成されたタイムライン
  • 未登録の requestAnimationFrame
  • 無限ループ

GSAP スケルトン

const root = document.querySelector("[data-composition-id]");
const compositionId = root.dataset.compositionId;
const tl = gsap.timeline({ paused: true });

tl.addLabel("state-a", 0);
tl.to(".subject", {
  keyframes: [
    { x: 0, opacity: 1, duration: 0.2 },
    { x: 120, opacity: 1, duration: 0.4, ease: "power2.out" },
    { x: 100, opacity: 1, duration: 0.2, ease: "power2.inOut" },
  ],
  ease: "none",
});

window.__timelines = window.__timelines || {};
window.__timelines[compositionId] = tl;

意味論的な状態にはラベルを使用します。連鎖する遅延の代わりに位置パラメータを使用します。同じプロパティに触れる後続の from()/fromTo() トゥイーンには immediateRender: false を使用します。

キーフレーム形式

  • 配列キーフレーム: ステップごとの duration/ease を持つポーズラダー。
  • パーセンテージキーフレーム: 1つのトゥイーン内での正確なタイミング。
  • プロパティ配列: コンパクトなマルチストップ変更。
  • 各ストップが独自のイージングを持つ場合、親には ease: "none"。
  • すべてのセグメントが同じ感覚を共有する必要がある場合に easeEach。

例から数値的な距離やタイミングをコピーしないでください。実際のコンポジションのジオメトリと duration から導出してください。

2つのボックスの間を移動する1つの被写体の場合は、1つの連続トランスフォームトゥイーンまたは FLIP を優先してください。視聴者が異なるビートを感じるべき場合にのみ、x/y/scale を複数のイージングされたキーフレームに分割します。すべてのセグメントは速度を変更し、ヒッチとして認識される可能性があります。

チャンネル

コンポジター/ビジュアルチャンネルを優先: x/y/z、xPercent/yPercent、scale、rotationX/Y/Z、skew、transformOrigin、svgOrigin、opacity、autoAlpha、clip-path、マスク、CSS 変数、SVG パス/ダッシュ値、カメラトランスフォーム、シェーダーユニフォーム。

レイアウト/ライフサイクルチャンネルは避ける: top/left/right/bottom、width/height、margin/padding、display、visibility、後期 DOM 作成、被写体モーションを行うヘルパーオーバーレイ。

可視性の変更には、登録済みのシーク可能な GSAP タイムライン上の autoAlpha、または明示的な境界での duration ゼロの tl.set() を使用します。クリップでない要素またはクリップ内のラッパーのみをターゲットにします。.clip 自体は決してターゲットにしないでください。生の visibility を duration 付きでトゥイーンしたり、display をトゥイーンしたりしないでください。

メカニズムの選択

プロンプトを証明する最小のメカニズムを選択:

ニーズメカニズム
同じ被写体がボックスまたは階層を変更共有要素 / FLIP
被写体が可視ルートを移動パス移動
ストロークが成長またはトレースストロークドロー
シェイプが別のシェイプになるシェイプ補間
リビール境界が可視クリップ、マスク、またはシェーダーユニフォーム
多くのアイテムが順序を持って移動スタガー / インデックス付き遅延
テキスト自体が移動ライン、ワード、キャラクター、またはバンド細分化
サーフェスが曲がる、伸びる、またはクロップされる親/子カウンタートランスフォーム
UI に状態がある明示的なステートマシン
シーンに深度があるDOM 3D、Three.js、または WebGL カメラ/オブジェクトキーフレーム

メカニズムは組み合わせることができますが、それぞれがアイデアを明確にする必要があります。装飾は証明ではありません。

タイミング

  • アンティシペーションは、原因または方向を明確にする場合のみ。
  • 加速は静止から始まります。
  • ピーク証明はメカニズムを間違いなく示します。
  • フォロースルーはエネルギーと方向を伝えます。
  • オーバーシュートは、被写体が弾力的または触感的であるべき場合のみ。
  • 一定速度のパス移動は通常 ease: "none" が必要。
  • 個別の UI 状態は通常、シャープなイーズアウトが必要。
  • 繰り返される要素には、同一のタイミングではなく、順序付けられたオフセットが必要。
  • 最終ロックアップは、トランジションポーズよりも長いホールドが必要。
  • スムーズさとは、同じ被写体における連続的な速度を意味します。
  • 同じトランスフォームプロパティを書き込むトゥイーンは、意図的で検証されたオーバーラップでない限り重複させないでください。
  • 主要なヒーローサーフェスが同時にスケーリングまたは移動している間は、大きな clip-path/マスク変更のアニメーションを避けてください。メインの移動が落ち着いた後にネストされたリビールを使用してください。

テキスト

ラインボックス、単語間隔、可読性、最終的なフィット感を保持します。テキストが内部で移動する場合、テキスト周りの装飾だけでなく、グリフまたはマスクされたバンドを移動します。可読フレームをスナップショットします。

SVG

ストローク成長には DrawSVGPlugin を優先し、次に stroke-dasharray/stroke-dashoffset。シェイプ補間には MorphSVGPlugin を優先します。必要に応じてプリミティブをパスに変換し、複雑なシルエットをより単純な部分に分割します。

3D

スケールだけでは偽の深度です。安定した親に perspective、transform-style: preserve-3d、z 移動、回転、カメラ/ワールドモーション、オクルージョン、およびオブジェクトが交差するときのレイヤー順序を使用します。

深度関係を明らかにする1つまたは2つの診断角度を使用します。角度付きの証明が深度交差を示さない場合、z/カメラ/オクルージョンを改善します。

Canvas / WebGL

カメラ位置、カメラターゲット、オブジェクトトランスフォーム、マテリアル不透明度、シェーダーユニフォーム、ポストプロセス強度を決定論的な状態でキーフレーム化します。HyperFrames 時間からレンダリングします。マーカーボックスは内部のキャンバスモーションを見ることができないため、--ghost を使用します。

CLI 証明

npx hyperframes lint
npx hyperframes check
npx hyperframes keyframes .
npx hyperframes keyframes . --json
npx hyperframes keyframes . --runtime all
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --samples <n>
npx hyperframes keyframes . --selector "<selector>" --shot "<file>" --layout strip --from <t0> --to <t1>
npx hyperframes keyframes . --shot "<file>" --ghost --angle <angle>
npx hyperframes snapshot . --at <times>

実際のアニメーション対象には <selector> を選択します。最初のフレーム、証明ポーズ、最終マイナスホールド、正確な最終には <times> を選択します。深度を証明する必要がある場合のみ <angle> を選択します。

ツール証明内容
keyframesターゲット、明示的なストップ、パス、トレース、合成された親/子モーション、CSS ストップ、Anime 登録
--shotゴースト、ルート形状、時間間隔、DOM 3D 投影、フォーカスされたセレクター証明
--layout stripインプレースモーション、オーバーラップ、コンタクト、微妙なスケール/不透明度、テキストウェーブ
--ghostキャンバス、WebGL、シェーダーモーション、レンダリングされた 3D
snapshot --atマスク、テキスト可読性、完全状態、最終ロックアップ、黒/リセットテール

セレクター証明が w の場合

…[翻訳のため省略]

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

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

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

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.

関連スキル