Media Use 标志

Media Use

社区
waker240
media-use

将经审核的本地背景音乐、音效、图片、图标和品牌素材整理为冻结的项目文件及清单。当 HyperFrames 作品需要非语音媒体,且这些素材已提供、已放入 assets/、已存在于可信的本地缓存中,或在发现和试听后从本地审核目录中明确选定时使用。

Add to TypingMind

概览

发布者waker240
代码仓库FullVideoProductionSkill
技能名称media-use
星标数
211
复刻数
47
附带文件
15
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 15 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 waker240 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Media Use AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/waker240/FullVideoProductionSkill/tree/main/skills/media-use
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/waker240/FullVideoProductionSkill.git /tmp/FullVideoProductionSkill
mkdir -p .claude/skills
cp -r /tmp/FullVideoProductionSkill/skills/media-use .claude/skills/media-use
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Media Use,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Media Use。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Media Use 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

media-use

Turn an approved local asset into a stable project path and ledger record. This skill is an inventory and ingestion layer: it performs no web search, download, media generation, or voice synthesis.

For revisioned audition decisions, generated images/video, derivatives and the distinction between a reviewed asset and one actually used in a release, read review and derivative provenance. Keep those editorial records alongside the resolver manifest; do not pretend its existing flags implement a full editorial state machine.

Voice is outside this resolver. fish-audio-api is the bundled synthesis adapter. Respect supplied narration or a user-selected provider; prepare that audio through its supported route, then import the resulting local narration file and measured timing into the composition.

Public package setup

No media recordings, author library, review database or cache is included. Supply your own reviewed files and rights records. A new project can begin with an empty library; discovery may return no results. Use explicit --source ingestion when you already have a permitted file.

The project wrapper finds .agents/skills/media-use or the directory named by MEDIA_USE_SKILL_DIR. Its optional MEDIA_CATALOG points to a catalog within the project/workspace; --catalog overrides it. The resolver's optional MEDIA_USE_GLOBAL_CACHE_DIR selects a user-owned cache. These paths are configuration, not assets supplied by this release. Standalone resolver/catalog commands read environment variables; the scaffolded wrapper additionally reads the project .env.

Resolve

bash
node <SKILL_DIR>/scripts/resolve.mjs --type <type> --intent "<description-or-id>" --project <dir>

Types: bgm, sfx, image, icon, and the local-only brand record.

For brand, a local frame.md, FRAME.md, design.md, or DESIGN.md can be frozen as the design record. Flat YAML frontmatter is retained when present; a plain Markdown design document is still a valid local record.

Resolution is deterministic and local:

  1. Reuse a valid project-manifest record matching the requested id, path, exact prompt, or entity.
  2. Adopt a matching unregistered file from the project's assets/ tree, preserving supplied review/rights flags. Strict HyperFrames audio delivery still requires those fields before wiring.
  3. Reuse a frozen record from the local global cache. BGM and SFX cache entries must carry local-origin provenance.
  4. On a miss, stop with staging instructions. The agent or user selects and reviews the asset before retrying.

Review-catalog handoff

In a scaffolded HyperFrames project, npm run audio:discover -- --type bgm --query "<semantic job>" (or --type sfx) searches workspace review catalogs without copying or approving anything. Treat its result as a lead: inspect the source/license/technical metadata, audition the file, then ingest that exact reviewed candidate with --source, --reviewed, and the catalog's --expected-sha256. Preserve source id/page, catalog id, license name/URL, a substantive review note, and creator/attribution when present. Catalog membership alone is never approval, and a render must never reference the review-library path directly.

After explicit ingestion, the resolver prints one concise result:

text
resolved sfx_001 → assets/sfx/soft-whoosh.wav (sfx)

Ingest an explicit local file

Use --source after selecting and reviewing a file. The resolver copies it into .media/, probes its metadata, and records its local provenance.

bash
node <SKILL_DIR>/scripts/resolve.mjs \
  --type sfx \
  --intent "soft interface whoosh" \
  --source /absolute/path/to/reviewed-whoosh.wav \
  --reviewed \
  --expected-sha256 <64-hex-catalog-hash> \
  --source-id <source-provider-asset-id> \
  --source-page <original-asset-page> \
  --catalog-id <catalog-asset-id> \
  --license <license-name-or-id> \
  --license-url <license-page> \
  --review-note "auditioned under narration; clean short tail" \
  --project .

--source is an explicit ingestion path, so it bypasses discovery and cache matching. It accepts a regular local file only. When --catalog-id is present, the review, hash, source, rights, and substantive-note fields shown above are mandatory. The resolver verifies the hash both before and after freezing the copy, before it writes the manifest.

Flags

FlagMeaning
--type, -tbgm, sfx, image, icon, or brand
--intent, -iDescription, manifest id, or manifest path
--entity, -eOptional exact entity match
--sourceReviewed local file to freeze and register
--source-pageOriginal asset page retained as audit metadata
--licenseLicense name or identifier retained as audit metadata
--license-urlLicense page retained as audit metadata
--attributionAttribution text retained as audit metadata
--reviewedRecord that the candidate was explicitly reviewed before ingestion
--expected-sha256Require the source bytes to match a 64-hex catalog hash
--creatorCreator retained as audit metadata
--source-idSource provider's asset id retained as audit metadata
--catalog-idLocal review-catalog asset id retained as audit metadata
--review-noteHuman audition/review note retained as audit metadata
--project, -pProject directory; defaults to .
--adoptInventory supported files already under assets/; bulk inventory alone does not approve audio for rendering
--jsonEmit machine-readable output

Adopt an existing project

bash
node <SKILL_DIR>/scripts/resolve.mjs --adopt --project .

Adoption probes supported media with ffprobe, appends records to .media/manifest.jsonl, and regenerates .media/index.md. Bulk adoption is an inventory operation, not editorial approval: BGM/SFX records still need substantive review and rights provenance before the strict HyperFrames sound gate will allow them to render. Resolve a selected staged audio asset individually with the relevant review/license flags to make that provenance explicit. Narration and voice files are intentionally ignored; TTS outputs remain owned by the Fish Audio workflow.

Inventory and cache

  • .media/manifest.jsonl is the project source of truth.
  • .media/index.md is the readable inventory.
  • ~/.media/ is the frozen cross-project cache. MEDIA_USE_GLOBAL_CACHE_DIR may point the resolver at another trusted local cache root.

The resolver does not purge older cache entries. It simply refuses BGM or SFX records whose provenance does not establish local selection or adoption. Legacy adopted records marked with both provider: local and adopted: true remain reusable; a remote provider marker is never accepted as local provenance.

Cache eligibility is not current editorial approval. Before reuse, check the current project's decisions and exclusions by candidate id and source hash. A cached asset rejected in this project remains excluded even if an earlier project approved it.

Miss handling

When resolution misses, use the HyperFrames project's read-only audio:discover command, or select a properly licensed asset outside this skill, then ingest the reviewed file with --source. Preserve source, license, attribution, hash, catalog identity, and review notes in the project record.

Requirement

ffprobe is recommended for duration, codec, and dimensions. Resolution still works when probing fails, but those metadata fields remain empty.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Media Use AI 技能有什么作用?

将经审核的本地背景音乐、音效、图片、图标和品牌素材整理为冻结的项目文件及清单。当 HyperFrames 作品需要非语音媒体,且这些素材已提供、已放入 assets/、已存在于可信的本地缓存中,或在发现和试听后从本地审核目录中明确选定时使用。

为什么在 TypingMind 中使用 Media Use?

因为您只需安装一次,就能搭配任何模型使用。Media Use 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Media Use?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/waker240/FullVideoProductionSkill/tree/main/skills/media-use。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Media Use?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Media Use 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Media Use 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Media Use AI 技能免费吗?

是的。waker240 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇