Communitygithub.com

Alemoterani/auto-edit-hyperframes

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

auto-edit-hyperframes とは?

このスキルは HyperFrames フレームワークの**テクニカルコントラクト**であり、HTML をビデオにレンダリングするための単一のプロジェクトを構築する方法を定義します。合成 HTML の記述に必要なすべてのルールとパターンを網羅しており、`data-*` 属性による DOM タイミング宣言、`class="clip"` の使用、トラックとクリップの構造化、サブ合成の配線、決定論的レンダリングの保証、メディア再生のフレームワーク管理などを含みます。Claude Code、Cursor、Codex、および同様の AI コーディングエージェントと互換性があります。このスキルは、HyperFrames プロジェクトを自動編集、作成、または保守する AI エージェントにとって重要なリファレンスとして機能します。これは、GSAP のタイムラインと CSS の競合を回避したり、メディア要素を正しく配置したり、`lint` で検出される一般的な落とし穴を回避したりするための、絶対に守るべきルールを定義しています。付属の `references/` ディレクトリには、最小限の合成スケルトン、合成パターン、データ属性、トラックとクリップ、サブ合成、変数とメディア、決定論ルール、Tailwind 統合などのトピックに関する詳細なガイドが含まれています。HyperFrames プロジェクトで作業する AI エージェントは、合成 HTML ファイルに変更を加える前にこのスキルを読む必要があり、`npx hyperframes timeline` や `npx hyperframes check` などの CLI コマンドを使用して既存のプロジェクトを理解し、編集が正しいことを検証します。

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

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

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

ドキュメント

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

HyperFrames コア

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

  • 後で GSAP の x/y でアニメーションさせるノードでは、CSS の transform: translate(-50%,-50%) ではなく、flex/inset で中央揃えにしてください。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 からビデオをレンダリングします。コンポジション(合成)とは、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.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 つのポーズされたタイムライン

各合成は、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 の読み戻しも含まれます。抑制はできません。
  • <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 はエラーになります。そして、実際に失敗します(間違ったソースフレーム、その後クリップはスロット途中で消えます)。そのため、タイミングはラッパーまたはビデオのいずれかに設定し、両方には絶対に設定しないでください。サブコンポジションホストは例外です。サブコンポジション内のメディアは正しくレンダリングされます。もう 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

既存の構成の編集

  • 最初にファイルを読んでください。無関係なタイミング、トラック、変数、メディアパスは保持してください。
  • プロジェクトのタイムライン(トラック、クリップ、開始、終了、再生内容)を知るには、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.

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.

関連スキル