Communitygithub.com

Alemoterani/auto-edit-hyperframes

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

auto-edit-hyperframes とは?

このスキルは、HyperFramesエコシステム内でキーフレームアニメーションを扱うための専用ツールです。パンチイン/アウト、ズーム、リフレーム、ケン・バーンズ効果、カメラ移動、マッチカット、ワイプなど、クリエイターが求めるあらゆる視覚的なモーションをシークセーフな方法で実現します。GSAP、CSSキーフレーム、Anime.js、WAAPI、FLIP、SVGモーフ/ドロー、3D深度など、複数のアニメーションメカニズムをサポートし、各メカニズムに特化したランタイムルールとベストプラクティスを提供します。CLIコマンド(`hyperframes keyframes`、`hyperframes check`、`hyperframes snapshot`)を用いてアニメーションの検証とデバッグを行い、`--shot`や`--ghost`などのオプションで、DOM、Canvas、WebGL上の動作を正確に確認できます。このスキルは、クリップのアセンブルやソース編集(ハードカット、トリムなど)は担当せず、それらは`/hyperframes-core`に委ねられます。視覚的なモーションとオーディオのフェード/クロスフェードを組み合わせる場合は、`/hyperframes-core`と`/hyperframes-audio`を併用する必要があります。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/hyperframes-keyframes

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

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

ドキュメント

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

HyperFrames Keyframes

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

ブロードなシーンレシピには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. 宣言されたランタイム内でシークセーフなキーフレームを作成します。ビルドが完了した後にのみランタイムインスタンスを登録します。document.fonts.ready内でのビルドは問題ありません。
  4. hyperframes check(lintを実行)、hyperframes keyframes、1つのフォーカスされた--shot、および証明時間でのスナップショットで検証します。
  5. 証明が失敗した場合は、ソースキーフレームを修正し、レンダリング前に最小の失敗診断を再実行します。

契約

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

ランタイムルール

GSAP:

  • ページ読み込み時またはdocument.fonts.ready内でビルドし、ビルド完了後にのみ登録します
  • gsap.timeline({ paused: true })を使用します
  • window.__timelines[compositionId]として登録します
  • レジストリキーはdata-composition-idと一致する必要があります
  • レンダリングクリティカルなモーションにはtl.play()を呼び出さないでください
  • 繰り返しは有限に保ちます

CSSキーフレーム:

  • 有限の持続時間と反復回数
  • 決定論的な遅延
  • animation-fill-mode: both
  • タイミングがクリップに属する場合はdata-startを使用します

Anime.js:

  • 同期的に作成します
  • autoplay: false
  • 有限の持続時間とループ
  • すべてのインスタンスを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を使用します。

キーフレームフォーム

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

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

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、または明示的な境界でのゼロ持続時間のtl.set()を使用します。非クリップ要素またはクリップ内のラッパーのみをターゲットにします。.clip自体は決してターゲットにしないでください。生のvisibilityを持続時間トゥイーンしたり、displayをトゥイーンしたりしないでください。

メカニズムの選択

プロンプトを証明する最小のメカニズムを選択してください:

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

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

タイミング

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

テキスト

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

SVG

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

3D

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

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

Canvas / WebGL

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

CLI 証明

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マスク

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

関連スキル