media-use

GitHub

HyperFrames媒体操作系统,通过resolve命令统一解决BGM、音效、图像等素材,支持TTS生成及音视频处理。

skills/media-use/SKILL.md heygen-com/hyperframes

Trigger Scenarios

需要获取背景音乐、音效、图片或Logo资源 生成语音旁白或进行视频后期处理

Install

npx skills add heygen-com/hyperframes --skill media-use -g -y
More Options

Use without installing

npx skills use heygen-com/hyperframes@media-use

指定 Agent (Claude Code)

npx skills add heygen-com/hyperframes --skill media-use -a claude-code -g -y

安装 repo 全部 skill

npx skills add heygen-com/hyperframes --all -g -y

预览 repo 内 skill

npx skills add heygen-com/hyperframes --list

SKILL.md

Frontmatter
{
    "name": "media-use",
    "description": "Agent Media OS for 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. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm` needs the heygen CLI, while `--type sfx` needs no account (Openverse, then a bundled library). When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in."
}

Plugin installs: Before setup or freshness commands, follow plugin execution rules when this skill is inside a HyperFrames plugin. Standalone installs keep the update instructions below.

media-use

The media OS for HyperFrames: resolve · generate · operate · remember — every media type, one skill, zero context noise.

Only when HEYGEN_API_BASE is set in your environment (a host app set it and pays for HeyGen with its own key): HeyGen media is already paid for. Do not ask the person to install or sign in to the heygen CLI and do not offer its OAuth allowance; catalog search, TTS and avatar calls here go through the host. When that same host also gives you its own HeyGen tools, use those first. When a call through the host is refused, tell the person the host's message as written (it names the fix, such as adding or replacing the key in the app's Settings) and stop; do not switch to another provider unless they ask.

First run otherwise (no HEYGEN_API_BASE), when you will use HeyGen media (catalog search, TTS, avatar video): install and sign in to the heygen CLI (the free-usage path), then verify with npx hyperframes media-use resolve --doctor. Setup and providers: references/setup-providers.md.

Music and sound effects inside a host app: when the app you run in gives you its own music or sound-effect tools, use those. Without HEYGEN_API_BASE, resolve --type bgm searches the HeyGen catalog through the heygen CLI and fails without it, saying so. resolve --type sfx searches Openverse (CC0 and CC BY only, no account) and falls back to its bundled library offline; credit CC BY sounds as audio/references/sfx.md says.

Without HEYGEN_API_BASE, before generating a voiceover or an avatar video, tell the person: signing in to the heygen CLI with OAuth (heygen auth login --oauth) gives a free allowance for TTS voiceover and avatar videos, while an API key bills API credits.

Resolve — the one verb

npx hyperframes media-use resolve --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 via the heygen CLI, 10k+ tracks)
sfx sound effects (Openverse CC0 / CC BY, bundled 21-file library offline)
image photos, backgrounds (HeyGen asset search, 75k+ vectors)
icon icons, symbols (transparent)
logo official brand marks (theSVG → 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

Version History

  • 9566f96 Current 2026-10-19 05:57

    新增从Openverse获取音效并支持离线库;支持通过主机网关调用HeyGen服务。

  • 627e947 2026-09-27 22:59

    将Logo解析源从svgl/simple-icons统一替换为thesvg.org,增加SVG安全清洗和许可证检查,修复技能清单同步问题。

  • a80d733 2026-09-22 11:12

    将媒体搜索功能路由至media-use引擎,优化CLI集成与资产索引,修复迁移后的测试路径及兼容性导入问题。

  • 634df5a 2026-08-19 22:13

    新增代理原生色彩分级功能,修复媒体处理审查发现的问题,并添加首个面向代理的媒体处理工具。

  • 9d4c349 2026-07-24 22:17

Same Skill Collection

.agents/skills/changelog-video/SKILL.md
.claude/skills/changelog-video/SKILL.md
registry/blocks/canopy-part-title/SKILL.md
registry/blocks/code-slice-hero/SKILL.md
registry/blocks/cuboid-carousel/SKILL.md
registry/blocks/frost-sequence-camera-orbit/SKILL.md
registry/blocks/glass-shard-title/SKILL.md
registry/blocks/orbit-card/SKILL.md
registry/blocks/wireframe-portal-title/SKILL.md
skills/faceless-explainer/SKILL.md
skills/figma/SKILL.md
skills/general-video/SKILL.md
skills/hyperframes-core/SKILL.md
skills/hyperframes-creative/SKILL.md
skills/hyperframes-keyframes/SKILL.md
skills/music-to-video/SKILL.md
skills/pr-to-video/SKILL.md
skills/product-launch-video/SKILL.md
skills/remotion-to-hyperframes/SKILL.md
skills/slideshow/SKILL.md
skills/talking-head-recut/SKILL.md
.agents/skills/captions-overlay/SKILL.md
.agents/skills/cut-the-curve/SKILL.md
.agents/skills/motion-doctrine/SKILL.md
.agents/skills/oversized-cursor/SKILL.md
.agents/skills/seam-craft/SKILL.md
.claude/skills/captions-overlay/SKILL.md
.claude/skills/cut-the-curve/SKILL.md
.claude/skills/motion-doctrine/SKILL.md
.claude/skills/oversized-cursor/SKILL.md
.claude/skills/seam-craft/SKILL.md
skills/embedded-captions/SKILL.md
skills/hyperframes-animation/SKILL.md
skills/hyperframes-audio/SKILL.md
skills/hyperframes-cli/SKILL.md
skills/hyperframes-registry/SKILL.md
skills/hyperframes-studio/SKILL.md
skills/hyperframes/SKILL.md
skills/motion-graphics/SKILL.md

Metadata

Files
0
Version
9566f96
Hash
c10e80df
Indexed
2026-07-24 22:17

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 04:02
浙ICP备14020137号-1