Communitygithub.com

media-use: メディア管理OS for HyperFrames

HyperFramesプロジェクト向けのメディアOS。BGM、SFX、画像、アイコン、ブランドロゴ、音声、カラーグレーディング、LUTを解決・生成・操作し、プロジェクト間でアセットを再利用します。

media-use: メディア管理OS for HyperFrames とは?

このスキルは、HyperFramesプロジェクト向けの統合メディア管理システム(メディアOS)です。BGM、SFX、画像、アイコン、ブランドロゴ、音声(TTS)、カラーグレーディング、LUTなど、あらゆる種類のメディアアセットを「解決」(resolve)・生成(generate)・操作(operate)するための単一の動詞 `resolve` を提供します。主な機能として、HeyGenカタログ(10k以上のBGMトラック、75k以上のベクター画像)からのアセット検索・解決、ローカルのKokoroによる音声生成、メディアのカット・リフレーム・変換、ソース認識型の創造的処理(メディアトリートメント)などがあります。環境変数 `HEYGEN_API_BASE` が設定されている場合、HeyGenの呼び出しはホストアプリ経由で行われ、CLIサインインは不要です。ホストアプリが独自の音楽・効果音ツールを提供している場合は、それらを優先して使用します。このスキルは、メディアの機会を積極的に提案(プロアクティブ)することで、ユーザーが気づかないメディア改善(例:スクリプトに音声がない場合のTTS提案、プレースホルダー画像の差し替え提案)をワンショットで行い、プロジェクトの品質を高めます。

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

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

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

ドキュメント

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

media-use

HyperFrames のメディアOS:解決(resolve)・生成(generate)・操作(operate)・記憶(remember) — あらゆるメディアタイプ、ひとつのスキル、コンテキストノイズゼロ。

環境変数 HEYGEN_API_BASE が設定されている場合(ホストアプリが自身のキーで HeyGen を支払っている場合)のみ:HeyGen メディアはすでに支払済みです。ユーザーに heygen CLI のインストールやサインインを求めず、OAuth 許可を提供しないでください。カタログ検索、TTS、アバター呼び出しはすべてホスト経由で行われます。同じホストが自身の HeyGen ツールも提供している場合は、それらを優先して使用してください。ホスト経由の呼び出しが拒否された場合は、ホストのメッセージをそのままユーザーに伝え(アプリ設定でキーを追加または置き換えるなどの修正方法が示されています)、停止してください。ユーザーが明示的に要求しない限り、他のプロバイダに切り替えないでください。

それ以外の初回実行時(HEYGEN_API_BASE なし)、HeyGen メディア(カタログ検索、TTS、アバタービデオ)を使用する場合:heygen CLI をインストールしてサインインし(無料利用パス)、npx hyperframes media-use resolve --doctor で確認してください。セットアップとプロバイダについては references/setup-providers.md を参照してください。

ホストアプリ内での音楽と効果音:使用しているアプリが独自の音楽・効果音ツールを提供している場合は、それらを使用してください。HEYGEN_API_BASE がない場合、resolve --type bgm および --type sfx は heygen CLI 経由で HeyGen カタログを検索します。CLI がない場合は失敗し、その旨を報告します(sfx はバンドルライブラリから応答します)。

HEYGEN_API_BASE がない場合、ナレーションやアバタービデオを生成する前に、ユーザーに次のことを伝えてください:heygen CLI に OAuth でサインインする(heygen auth login --oauth)と、TTS ナレーションとアバタービデオの無料枠が得られます。API キーを使用すると API クレジットが課金されます。

Resolve — たったひとつの動詞

npx hyperframes media-use resolve --type <type> --intent "<description>" --project <dir>

出力は1行:resolved <id> → <path> (<type>, <metadata>)。すべての検索ノイズはディスクに残ります。

Type一言の意図
bgm背景音楽(heygen CLI 経由の HeyGen カタログ、10k+ トラック)
sfx効果音(バンドルされた19ファイルライブラリ + heygen CLI 経由のカタログ)
image写真、背景(HeyGen アセット検索、75k+ ベクター)
iconアイコン、記号(透明)
logo公式ブランドマーク(theSVG → GitHub アバター → favicon;再描画不可)
voiceTTS ナレーション(HeyGen 無料利用パス;オプションでローカルの Kokoro)
grade測定された補正候補;広範な研磨/スタイライズはメディアトリートメントに従う
lutユーザー提供または明示的に選択された再利用可能な検証済み .cube ファイル

新しく解決する前に、--candidates で再利用可能な候補を一覧表示し、自分で適合性を判断してください。再利用ルール、全フラグ、取り込み(--from)、および採用については references/resolve.md を参照してください。

広範な視覚的フィードバックをメディア意図として扱う

ユーザーが明示的に写真メディアの修正、研磨、スタイライズ、隠蔽、強調、または開示を要求した場合、カラーグレーディングやエフェクトの名前を出さなくても references/media-treatments.md を読んでください。実際の <img>/<video> を検査し、1つの主要な意図を選択し、決定論的な永続化と検証を使用します。オプションのテスト済みシードとして一致するレシピを使用するか、hyperframes media-treatment --capabilities --json を検査し、--capability <id> で適切なファミリー/エフェクトを1つ要求し、正規のコントロールからカスタムトリートメントを組み立ててください。通常のオーサリングで --all をロードしないでください。トリートメントは、補正、プリセット、仕上げ、互換性のあるシェーダーエフェクト、サポートされているキーフレーム、およびオプションのレジストリオーバーレイを構成できます。ソースから正当化された範囲の調整と互換性のある部分のみを追加し、結果をより高度に見せるためだけのエフェクトは追加しないでください。最終的な結合ペイロードを hyperframes media-treatment で永続化してください。

段階的にエスカレーションするワークフローを1つ使用してください。ビデオの場合、フレームを個別に読むのではなく、ラベル付けされた初期/中間/後期のコンタクトシートを1つ検査してください。通常の補正または研磨では、候補を1つ適用し、アフターシートを1つ検査してください。結果が曖昧、時間的、スタイライズ、LUTベース、HDR/LOG対応、プライベート、またはブランド上重要な場合にのみ、個別フレームまたは動的なドラフト証拠にエスカレーションしてください。

通常の補正または研磨では、最終トリートメントのプリセット/調整JSONを永続化してください。露出、シャドウ、コントラスト、または暖かさをエンコードするためだけに .cube LUT を生成しないでください。LUT は、ユーザーが提供するか、選択したトリートメントが明示的に所有している場合のみ使用してください。resolve --type grade --for ... --analyze は測定証拠であり、選択したトリートメントを生成された LUT で置き換える許可ではありません。サポートされているビネット、グレイン、ブラー、ピクセル化、カラー、またはトリートメントエフェクトを CSS/SVG オーバーレイで再現しないでください。それはスタジオコントロールと正規のプレビュー/レンダリングシェーダーパスをバイパスします。

プロアクティブに — メディア機会パスを実行する

人間は通常、どのメディアが作品を引き上げるかを判断できません。あなたにはできます。コンポジションを構築またはレビューするときは、1回 根拠のあるスキャンを行い、1回だけ 尋ねてください — 静かに追加せず、アセットごとにしつこくしないでください。

具体的なシグナルが存在する場合のみ、機会を提示してください:

検出されたシグナル提案
画面上のテキスト / ナレーションのないスクリプトTTS ナレーション(オーディオエンジン)
絵文字またはアイコンとしてスタイルされた <div>実際の icon を解決
プレースホルダー、小さい、またはアップスケールされたように見える画像より良い image(および/またはアップスケール — references/operations.md を参照)
音のないハードなシーンカット / トランジショントランジション sfx
約10秒以上で音楽ベッドがない作品bgm
露出不足/過剰またはカラーキャストに見える映像補正グレード(hyperframes media-treatment --selector '#hero' --analyze --json で検査)
視覚的にフラットまたはテーマとずれている写真メディア適切なソースに応じた1つの特定のプリセットまたはカスタムトリートメント(意図するターゲットを明記)
静的に感じられる意味のあるメディアの登場/開示1つのサポートされているシークセーフなトリートメントアニメーション;リクエストがプリセットも正当化しない限り色は保持する

これが役立つものであり、迷惑なものでないためのルール:根拠があり、一般的でない(シグナルなし → 提案なし);意見があり、具体的(デフォルトを選択した具体的な修正を提案 — 人間が すべて / 一部 / なし を承認);プロジェクトごとに1回(1つの統合リクエスト;「そのまま」を尊重);表面に出し、決して静かに変異させない(特にカラーグレード:提案しプレビュー — 灰色世界の「補正」は意図的な夕日やネオンルックを台無しにします)。

どこを見るか — タスクに必要なファイルだけを読む

タスク読むべきファイル
解決 / 再利用 / 採用 / 取り込み、フラグ、カスケード、インベントリreferences/resolve.md
カラーグレーディング、LUT、スマートグレード(--for)、グレード比較references/grading.md
ナレーション / TTS、音楽、SFX、キャプション、文字起こし(オーディオエンジン)references/audio.md
既存メディアのカット / リフレーム / 変換、正確なエラー拡散、HEVCreferences/operations.md
ソース認識型クリエイティブトリートメント、リアルタイムエフェクト、オーバーレイ、リビールreferences/media-treatments.md
インストール + 認証、プロバイダ一覧、RAMラダー、--local-only、--providerreferences/setup-providers.md
記憶された設定 + フリーズされたレシピ(ユーザーメモリ)references/memory.md
所有権マトリックス、使用統計、テレメトリー、プライバシー(メンテナー向け)references/meta.md

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.

関連スキル