Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/maiscafe/video_motion/media-usenpx skills add maiscafe/video_motion --skill media-usegit clone --depth 1 https://github.com/maiscafe/video_motionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/maiscafe/video_motion/media-use)<a href="https://agentmods.dev/skills/maiscafe/video_motion/media-use"><img src="https://agentmods.dev/badge/skills/maiscafe/video_motion/media-use.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.01456 |
| Opus 5 | $0.00042 | $0.00728 |
| Sonnet 5 | $0.00017 | $0.00291 |
| Haiku 4.5 | $0.00008 | $0.00146 |
Grade C, and why
media-use scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://static.heygen.ai/cli/install.sh | bash # installs latest to ~/.local/bin Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://static.heygen.ai/cli/install.sh | bash # installs latest to ~/.local/bin This is a copy
100% identical to media-use — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on 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 |
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 17 B
- scripts/eval.mjs 15 KB runs code
- scripts/lib/adopt.mjs 3.5 KB runs code
- scripts/lib/bgm-provider.mjs 650 B runs code
- scripts/lib/brand-provider.mjs 1.6 KB runs code
- scripts/lib/cache.mjs 3.2 KB runs code
- scripts/lib/freeze.mjs 1.1 KB runs code
- scripts/lib/heygen-search.mjs 1.8 KB runs code
- scripts/lib/image-provider.mjs 1.4 KB runs code
- scripts/lib/index-gen.mjs 1.9 KB runs code
- scripts/lib/manifest.mjs 2.4 KB runs code
- scripts/lib/manifest.test.mjs 8.4 KB runs code
- scripts/lib/probe.mjs 1.3 KB runs code
- scripts/lib/probe.test.mjs 1.6 KB runs code
- scripts/lib/providers.mjs 759 B runs code
- scripts/lib/sfx-provider.mjs 700 B runs code
- scripts/resolve.mjs 7.7 KB runs code
- scripts/resolve.test.mjs 7.4 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 125 lines · 84 tokens per session scan C 139ac9d65345
media-use is a skill published in the GitHub repository maiscafe/video_motion (2 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,456 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). It is 100% identical to media-use, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…