media-use
Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 631
- Forks
- 15
01 前言 Front Matter
- name
- media-use
- description
- Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.
02 资源文件 151
- 其他.gitignore17 B
- 资产文件audio/assets/sfx/chime.mp326.7 KB
- 资产文件audio/assets/sfx/click-soft.mp311.4 KB
- 资产文件audio/assets/sfx/click.mp311.4 KB
- 参考文档audio/assets/sfx/CREDITS.md1.2 KB
- 资产文件audio/assets/sfx/error.mp350.6 KB
- 资产文件audio/assets/sfx/glitch-1.mp382.4 KB
- 资产文件audio/assets/sfx/glitch-2.mp3109.5 KB
- 资产文件audio/assets/sfx/glitch-3.mp396.8 KB
- 资产文件audio/assets/sfx/impact-bass-1.mp366.1 KB
- 资产文件audio/assets/sfx/impact-bass-2.mp381.0 KB
- 资产文件audio/assets/sfx/key-press.mp33.8 KB
- 参考文档audio/assets/sfx/manifest.json3.6 KB
- 资产文件audio/assets/sfx/notification.mp376.7 KB
- 资产文件audio/assets/sfx/ping.mp325.8 KB
- 资产文件audio/assets/sfx/pop.mp322.5 KB
- 资产文件audio/assets/sfx/riser.mp3313.5 KB
- 资产文件audio/assets/sfx/sparkle.mp356.3 KB
- 资产文件audio/assets/sfx/typing.mp326.2 KB
- 资产文件audio/assets/sfx/whoosh-cinematic.mp3173.3 KB
- 资产文件audio/assets/sfx/whoosh-short.mp318.0 KB
- 资产文件audio/assets/sfx/whoosh.mp318.0 KB
- 参考文档audio/references/bgm.md7.8 KB
- 参考文档audio/references/captions/authoring.md8.8 KB
- 参考文档audio/references/captions/motion.md5.5 KB
- 参考文档audio/references/captions/transcript-handling.md5.3 KB
- 参考文档audio/references/remove-background.md8.3 KB
- 参考文档audio/references/requirements.md4.2 KB
- 参考文档audio/references/sfx.md3.4 KB
- 参考文档audio/references/transcribe.md2.7 KB
- 参考文档audio/references/tts-to-captions.md1.2 KB
- 参考文档audio/references/tts.md7.2 KB
- 脚本audio/scripts/audio.mjs12.5 KB
- 脚本audio/scripts/audio.test.mjs1.9 KB
- 脚本audio/scripts/heygen-tts.mjs4.2 KB
- 脚本audio/scripts/lib/bgm.mjs11.3 KB
- 脚本audio/scripts/lib/bgm.test.mjs1.2 KB
- 脚本audio/scripts/lib/concurrency.mjs527 B
- 脚本audio/scripts/lib/concurrency.test.mjs1.6 KB
- 脚本audio/scripts/lib/heygen.mjs6.9 KB
- 脚本audio/scripts/lib/heygen.test.mjs3.5 KB
- 脚本audio/scripts/lib/python.mjs2.5 KB
- 脚本audio/scripts/lib/python.test.mjs2.6 KB
- 脚本audio/scripts/lib/sfx.mjs5.3 KB
- 脚本audio/scripts/lib/sfx.test.mjs2.8 KB
- 脚本audio/scripts/lib/tts.mjs16.1 KB
- 脚本audio/scripts/lib/tts.spawn.test.mjs5.1 KB
- 脚本audio/scripts/lib/tts.test.mjs6.0 KB
- 脚本audio/scripts/lyria-recipe.py4.4 KB
- 脚本audio/scripts/wait-bgm.mjs5.4 KB
- 参考文档luts/index.json2.0 KB
- 参考文档luts/README.md1.1 KB
- 参考文档references/audio.md1.7 KB
- 参考文档references/grading.md6.6 KB
- 参考文档references/media-treatment-recipes.md35.0 KB
- 参考文档references/media-treatments.md13.6 KB
- 参考文档references/memory.md3.3 KB
- 参考文档references/meta.md6.6 KB
- 参考文档references/operations.md14.1 KB
- 参考文档references/resolve.md8.8 KB
- 参考文档references/setup-providers.md7.1 KB
- 参考文档references/telemetry-dashboard.md4.1 KB
- 脚本scripts/audio-duck.mjs3.9 KB
- 脚本scripts/dither.mjs9.7 KB
- 脚本scripts/dither.test.mjs4.6 KB
- 脚本scripts/eval.mjs14.5 KB
- 脚本scripts/lib/adopt.mjs4.3 KB
- 脚本scripts/lib/adopt.test.mjs2.7 KB
- 脚本scripts/lib/bgm-provider.mjs650 B
- 脚本scripts/lib/brand-provider.mjs1.6 KB
- 脚本scripts/lib/bundled-sfx-provider.mjs3.5 KB
- 脚本scripts/lib/bundled-sfx-provider.test.mjs3.1 KB
- 脚本scripts/lib/cache.mjs4.8 KB
- 脚本scripts/lib/candidates.mjs4.0 KB
- 脚本scripts/lib/candidates.test.mjs5.9 KB
- 脚本scripts/lib/codex-provider.mjs6.5 KB
- 脚本scripts/lib/codex-provider.test.mjs1.3 KB
- 脚本scripts/lib/coverage.test.mjs5.6 KB
- 脚本scripts/lib/cube-build.mjs5.7 KB
- 脚本scripts/lib/cube-build.test.mjs2.7 KB
- 脚本scripts/lib/cube-validate.mjs5.9 KB
- 脚本scripts/lib/cube-validate.test.mjs3.2 KB
- 脚本scripts/lib/cutlist.mjs6.0 KB
- 脚本scripts/lib/cutlist.test.mjs4.0 KB
- 脚本scripts/lib/duck.mjs3.0 KB
- 脚本scripts/lib/duck.test.mjs3.4 KB
- 脚本scripts/lib/error-diffusion.mjs6.5 KB
- 脚本scripts/lib/error-diffusion.test.mjs3.4 KB
- 脚本scripts/lib/freeze.mjs3.0 KB
- 脚本scripts/lib/freeze.test.mjs1.9 KB
- 脚本scripts/lib/grade-analyzer.mjs8.5 KB
- 脚本scripts/lib/grade-analyzer.test.mjs7.7 KB
- 脚本scripts/lib/heygen-cli.mjs7.3 KB
- 脚本scripts/lib/heygen-cli.test.mjs10.0 KB
- 脚本scripts/lib/heygen-search.mjs1.8 KB
- 脚本scripts/lib/heygen-search.test.mjs1.8 KB
- 脚本scripts/lib/heygen-video-provider.mjs3.6 KB
- 脚本scripts/lib/heygen-video-provider.test.mjs12.0 KB
- 脚本scripts/lib/image-provider.mjs1.4 KB
- 脚本scripts/lib/index-gen.mjs1.9 KB
- 脚本scripts/lib/local-models.mjs13.3 KB
- 脚本scripts/lib/local-models.test.mjs5.6 KB
- 脚本scripts/lib/local-run.mjs2.2 KB
- 脚本scripts/lib/local-run.test.mjs1.7 KB
- 脚本scripts/lib/logo-provider.mjs7.0 KB
- 脚本scripts/lib/logo-provider.test.mjs5.7 KB
- 脚本scripts/lib/ltx-video-provider.mjs1.9 KB
- 脚本scripts/lib/ltx-video-provider.test.mjs3.8 KB
- 脚本scripts/lib/lut-preset-provider.mjs8.5 KB
- 脚本scripts/lib/lut-preset-provider.test.mjs6.3 KB
- 脚本scripts/lib/manifest.mjs7.0 KB
- 脚本scripts/lib/manifest.test.mjs11.6 KB
- 脚本scripts/lib/match.mjs1.4 KB
- 脚本scripts/lib/mflux-provider.mjs3.2 KB
- 脚本scripts/lib/misses.mjs1.2 KB
- 脚本scripts/lib/misses.test.mjs2.5 KB
- 脚本scripts/lib/npx-sync.mjs1.3 KB
- 脚本scripts/lib/npx-sync.test.mjs2.0 KB
- 脚本scripts/lib/parakeet-words.mjs1.1 KB
- 脚本scripts/lib/parakeet-words.test.mjs1.4 KB
- 脚本scripts/lib/prefs-store.mjs6.4 KB
- 脚本scripts/lib/prefs-store.test.mjs7.2 KB
- 脚本scripts/lib/probe.mjs1.3 KB
- 脚本scripts/lib/probe.test.mjs1.6 KB
- 脚本scripts/lib/providers.mjs327 B
- 脚本scripts/lib/recipe-store.mjs12.7 KB
- 脚本scripts/lib/recipe-store.test.mjs12.5 KB
- 脚本scripts/lib/registry.mjs8.0 KB
- 脚本scripts/lib/registry.test.mjs7.4 KB
- 脚本scripts/lib/search.mjs906 B
- 脚本scripts/lib/search.test.mjs1.2 KB
- 脚本scripts/lib/sfx-provider.mjs700 B
- 脚本scripts/lib/specs.mjs3.2 KB
- 脚本scripts/lib/specs.test.mjs2.7 KB
- 脚本scripts/lib/stats.mjs3.7 KB
- 脚本scripts/lib/stats.test.mjs5.4 KB
- 脚本scripts/lib/telemetry.mjs8.6 KB
- 脚本scripts/lib/telemetry.test.mjs15.6 KB
- 脚本scripts/lib/tts-local-provider.mjs3.7 KB
- 脚本scripts/lib/tts-local-provider.test.mjs2.6 KB
- 脚本scripts/lib/usage.mjs1.8 KB
- 脚本scripts/lib/usage.test.mjs1.7 KB
- 脚本scripts/lib/voice-provider.mjs1.7 KB
- 脚本scripts/lib/voice-provider.test.mjs1.9 KB
- 脚本scripts/lib/words.mjs764 B
- 脚本scripts/prefs.mjs2.4 KB
- 脚本scripts/recipe.mjs4.0 KB
- 脚本scripts/resolve.mjs42.8 KB
- 脚本scripts/resolve.test.mjs33.5 KB
- 脚本scripts/transcribe.mjs6.5 KB
- 脚本scripts/transcript-cut.mjs7.1 KB
03 SKILL.md 正文
media-use
The media OS for HyperFrames: resolve · generate · operate · remember — every media type, one skill, zero context noise.
First run: install and sign in to the heygen CLI (the free-usage path), then verify with node <SKILL_DIR>/scripts/resolve.mjs --doctor. Setup and providers: references/setup-providers.md.
Resolve — the one verb
node <SKILL_DIR>/scripts/resolve.mjs --type <type> --intent "<description>" --project <dir>
Returns one line: resolved <id> → <path> (<type>, <metadata>). All search noise stays on disk.
| Type | One-line intent |
|---|---|
bgm |
background music (HeyGen catalog, 10k+ tracks) |
sfx |
sound effects (bundled 19-file library + catalog) |
image |
photos, backgrounds (HeyGen asset search, 75k+ vectors) |
icon |
icons, symbols (transparent) |
logo |
official brand marks (svgl → simple-icons → GitHub avatar → favicon; never redrawn) |
voice |
TTS voiceover (HeyGen free-usage path; optional local Kokoro) |
grade |
measured correction candidate; broad polish/stylization follows Media Treatments |
lut |
user-provided or explicitly chosen reusable validated .cube file |
Before resolving fresh, list reusable candidates with --candidates and judge fit yourself — reuse rules, all flags, ingest (--from), and adopt are in references/resolve.md.
Treat broad visual feedback as media intent
When a user explicitly asks to fix, polish, stylize, obscure, emphasize, or
reveal photographic media, read references/media-treatments.md even if they
do not name color grading or an effect. Inspect the real <img>/<video>,
choose one primary intent, then use deterministic persistence and verification.
Use a matching recipe as an optional tested seed, or inspect
hyperframes media-treatment --capabilities --json, then request one relevant
family/effect with --capability <id> and assemble a custom treatment from
canonical controls. Never load --all for ordinary authoring. A treatment may
compose correction, a preset, finishing, compatible shader effects, supported
keyframes, and optional Registry overlays. Add only source-justified bounded
tuning and compatible parts, never effects merely to make the result look more
sophisticated. Persist the final combined payload with
hyperframes media-treatment.
Use one progressively escalating workflow. For video, inspect one labeled early/middle/late contact sheet rather than reading frames separately. Apply one candidate and inspect one after-sheet for ordinary correction or polish. Escalate to individual frames or moving draft evidence only when the result is ambiguous, temporal, stylized, LUT-based, HDR/LOG-sensitive, private, or brand-critical.
For ordinary correction or polish, persist the final treatment's
preset/adjustment JSON.
Do not generate a .cube LUT merely to encode exposure, shadows, contrast, or
warmth. Use a LUT only when the user supplies one or the selected treatment
explicitly owns one. resolve --type grade --for ... --analyze is measurement
evidence, not permission to replace the chosen treatment with a generated LUT.
Do not recreate supported vignette, grain, blur, pixelate, color, or treatment
effects with CSS/SVG overlays; that bypasses Studio controls and the canonical
preview/render shader path.
Be proactive — run a media opportunity pass
The human usually can't tell which media would lift the piece. You can. When you build or review a composition, do one grounded scan and then ask once — don't silently add, and don't nag per asset.
Surface an opportunity only when a concrete signal is present:
| Signal detected | Offer |
|---|---|
| On-screen text / a script with no voiceover | TTS voiceover (audio engine) |
Emoji or a <div> styled as an icon |
resolve real icons |
| Image that is a placeholder, tiny, or upscaled-looking | a better image (and/or upscale — see references/operations.md) |
| Hard scene cuts / transitions with no sound | transition sfx |
| A piece over ~10s with no music bed | bgm |
| Footage that reads under/over-exposed or color-cast | a corrective grade (inspect it with hyperframes media-treatment --selector '#hero' --analyze --json) |
| Photographic media that feels visually flat or off-topic | one specific source-appropriate preset or custom treatment, with the intended target named |
| A meaningful media entrance/reveal that feels static | one supported seek-safe treatment animation; preserve color unless the request also justifies a preset |
Rules that keep this a help, not nagware: grounded, not generic (no signal → no suggestion); opinionated + concrete (propose the specific fix with defaults chosen — the human approves all / some / none); once per project (one consolidated ask; respect "leave it"); surface, never silently mutate (color grades especially: propose and preview — a gray-world "correction" ruins an intentional sunset or neon look).
Where to look — read only the file your task needs
| Task | Read |
|---|---|
| resolve / reuse / adopt / ingest, flags, cascade, inventory | references/resolve.md |
color grading, LUTs, smart grade (--for), grade-compare |
references/grading.md |
| voiceover / TTS, music, SFX, captions, transcription (audio engine) | references/audio.md |
| cut / reframe / transform existing media, exact error diffusion, HEVC | references/operations.md |
| source-aware creative treatments, realtime effects, overlays, reveals | references/media-treatments.md |
install + auth, provider table, RAM ladders, --local-only, --provider |
references/setup-providers.md |
| remembered preferences + frozen recipes (user memory) | references/memory.md |
| ownership matrix, usage stats, telemetry, privacy (maintainer-facing) | references/meta.md |
04 同仓库更多 Skills
trading-super-intelligence
Trading Super Intelligence Team. Named real-world personas across 8 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.
strategy-super-intelligence
Strategy Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.
risk-compliance-super-intelligence
Risk & Compliance (GRC) Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.
product-design-super-intelligence
Your product + design brain trust and decision partner. Named personas across 8 cells spanning product strategy, discovery/research, growth/metrics, design foundations/usability, design leadership/craft, UX/content, design systems, and a…
legal-ip-super-intelligence
Your legal, IP, and regulatory brain trust. 31 named personas across 7 cells covering patent strategy, tech licensing, regulatory litigation, AI governance, open-source compliance, privacy law, and antitrust.
healthcare-life-sciences-super-intelligence
Your healthcare and life sciences brain trust. 25 named personas across 7 cells covering drug discovery, medtech, biotech strategy, health policy, genomics, clinical trials, and healthcare economics.