media-use
できること
このスキルは、動画用のメディアを探し、ローカルファイルとして保存します。音楽、効果音、画像、アイコンを手作業で探さずに済ませたい動画制作者向けです。
使う場面
- ✓コンポジションにBGMや効果音が必要なとき。
- ✓コンポジションに画像やアイコンが必要なとき。
- ✓出典の記録とともに、メディアファイルをローカルに保存したいとき。
スキルのリンク
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/media-use/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“チュートリアル動画に合う、明るいテック系のBGMと短いクリック音を探してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、メディアの種類と短い説明を指定して、1つのコマンドを実行します。メディアカタログを検索し、最も合うものをプロジェクトに保存して、ファイルパスを1行で返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
media-use
Resolve media needs into frozen local files. One verb, four types, zero context noise.
When to use
Call resolve whenever a composition needs media — background music, sound effects, images, or icons. media-use searches the HeyGen catalog, downloads the best match, freezes it locally, and registers it in a manifest. The agent gets back one line; all search noise stays on disk.
Resolve
node <SKILL_DIR>/scripts/resolve.mjs --type <type> --intent "<description>" --project <dir>
Returns one line: resolved <id> → <path> (<type>, <metadata>)
Types
| Type | What it finds | Provider |
|---|---|---|
bgm |
Background music | HeyGen audio catalog (10k+ tracks) |
sfx |
Sound effects | Bundled 19-file library + HeyGen catalog |
image |
Photos, backgrounds | HeyGen asset search (75k+ vectors) |
icon |
Icons, logos | HeyGen asset search (type=icon) |
Examples
# Background music
node <SKILL_DIR>/scripts/resolve.mjs --type bgm --intent "upbeat tech launch" --project .
# → resolved bgm_001 → .media/audio/bgm/bgm_001.mp3 (bgm, 25s)
# Sound effect
node <SKILL_DIR>/scripts/resolve.mjs --type sfx --intent "whoosh" --project .
# → resolved sfx_001 → .media/audio/sfx/sfx_001.mp3 (sfx, 0.57s)
# Image
node <SKILL_DIR>/scripts/resolve.mjs --type image --intent "gradient tech background" --project .
# → resolved image_001 → .media/images/image_001.jpg (image)
# Icon
node <SKILL_DIR>/scripts/resolve.mjs --type icon --intent "rocket" --project .
# → resolved icon_001 → .media/images/icon_001.png (icon, transparent)
Flags
| Flag | Description |
|---|---|
--type, -t |
Media type: bgm, sfx, image, icon |
--intent, -i |
What you need (natural language) |
--entity, -e |
Entity name for cache matching (optional) |
--project, -p |
Project directory (default: .) |
--adopt |
Bulk-import existing assets/ into manifest |
--json |
Output JSON instead of one-line result |
How it works
- Check project
.media/manifest.jsonlfor exact-prompt match - Scan existing
assets/directory for unregistered files matching the need - Check global cache
~/.media/for reusable asset - Search via provider (HeyGen audio catalog, HeyGen asset search)
- Freeze file to
.media/<type>/, register in manifest, regenerateindex.md
The agent gets back one line. Candidates, scores, provenance stay on disk.
Adopt existing projects
Most HyperFrames projects already have assets in assets/. media-use adopts them:
node <SKILL_DIR>/scripts/resolve.mjs --adopt --project .
# → adopted 9 assets from assets/
# bgm_001 → assets/bgm/mango-fizz.mp3 (bgm, 146.6s)
# image_001 → assets/images/avatar.jpg (image, 400×400)
ffprobe extracts real duration and dimensions. During resolve, unregistered files in assets/ matching the intent are adopted on the fly.
Reading the inventory
After resolve or adopt, read .media/index.md for the full inventory:
# .media · 4 assets
id type dur dims path description
bgm_001 bgm 25s — .media/audio/bgm/bgm_001.mp3 upbeat tech launch
sfx_001 sfx 0.6s — .media/audio/sfx/sfx_001.mp3 whoosh
image_001 image — 1920×1080 .media/images/image_001.jpg gradient tech background
icon_001 icon — 200×200 .media/images/icon_001.png rocket
Cross-project reuse
Assets are cached automatically on resolve. Subsequent resolves for the same prompt hit the global cache at ~/.media/ — no re-download, no provider call. Promote an asset explicitly with organize --promote <id> to make it reusable across all projects.
Files
.media/manifest.jsonl— machine SSOT, one JSON record per line.media/index.md— agent-readable table (id, type, dur, dims, path, description)~/.media/— global cross-project reuse cache (content-addressed, SHA-256)
CLI tools used
| Tool | Purpose | Required? |
|---|---|---|
ffprobe |
Probe duration, dimensions, codec on adopt | Yes |
heygen |
Audio catalog, a |
よくある質問
どの種類のメディアを探せますか?
BGM、効果音、画像、アイコンを探せます。
ファイルはどこに保存されますか?
ファイルは、出典の記録とともにプロジェクトのメディアフォルダに保存されます。
ウェブ検索もしますか?
メディアカタログを検索します。検索結果は会話を散らかさないよう、ディスク上に保存されます。
詳細
作者による元の説明
Agent Media OS — resolve any media need (BGM, SFX, image, icon) into a frozen local file + ledger record. One verb (`resolve`) handles the full cascade — project cache, global cache, HeyGen catalog search, freeze, register. Keeps search noise on disk, hands the agent a path. Use when a composition needs background music, sound effects, images, or icons.
repo: calesthio/OpenMontage
人気
- GitHubのスター
- 75k
- ランキング
- #2675
- ライセンス
- AGPL-3.0
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
3d-asset-generation
75kシーンに使う3Dオブジェクトの作り方を、カタログ、テキストや画像から3Dへのツール、最終的な組み立てのための Blender の中から選ぶよう、エージェントを支援します。
acestep
75k動画用の背景音楽、曲、ジングル、ステムを、オープンな ACE-Step の音楽生成ツールを使って作るよう、エージェントを支援します。
agents
75kElevenLabs を使って、顧客対応のボットやインタラクティブな音声キャラクターなど、音声のAIアシスタントを作ります。
ai-video-gen
75kテキストの説明や参考画像から、いくつかの動画生成サービスの中から選んで、AI の動画クリップを生成するよう、エージェントを支援します。