Agent Skills0xsline/OpenChatCut › music-intelligence

music-intelligence

GitHub

提供基于本地缓存的音乐分析,辅助进行节拍、重拍或段落同步的视频剪辑规划与执行。支持BGM卡点、节奏分析及音乐结构查询,确保不触发重型推理。

src/agent/skills/music-intelligence/SKILL.md 0xsline/OpenChatCut

Trigger Scenarios

需要制作BGM卡点剪辑 询问音乐的BPM、节拍或曲风信息 请求根据音乐节奏自动规划视频切点

Install

npx skills add 0xsline/OpenChatCut --skill music-intelligence -g -y
More Options

Non-standard path

npx skills add https://github.com/0xsline/OpenChatCut/tree/main/src/agent/skills/music-intelligence -g -y

Use without installing

npx skills use 0xsline/OpenChatCut@music-intelligence

指定 Agent (Claude Code)

npx skills add 0xsline/OpenChatCut --skill music-intelligence -a claude-code -g -y

安装 repo 全部 skill

npx skills add 0xsline/OpenChatCut --all -g -y

预览 repo 内 skill

npx skills add 0xsline/OpenChatCut --list

SKILL.md

Frontmatter
{
    "name": "music-intelligence",
    "description": "Inspect cached local music analysis and plan or apply beat-, downbeat-, or section-synced video cuts.\nUse for BGM beat edits, rhythm cuts, 卡点剪辑, musical structure, BPM, mood, genre, or instrument questions.\n",
    "user-invocable": false
}

Music Intelligence

  1. Call inspect_music first. It only reads an existing local Beat This + CLAP cache; it never downloads models or starts analysis.
  2. Before editing, call music_edit_plan and show its bounded cut/target summary. Prefer timing:auto; choose sparse, medium, or dense from the requested pace.
  3. Only after the plan is accepted, call sync_cuts_to_music with the returned analysisRef. It recomputes the plan, rejects stale analysis, skips locked video tracks, and applies all splits as one undo step.
  4. If analysis is missing, tell the user to install rhythm-lite and music-semantics-lite locally if needed, analyze the media-pool asset in the UI, then retry. Never trigger heavy analysis from an Agent tool call.
  5. Never request, return, quote, summarize, or place the CLAP embedding in model context. Use tags, sections, confidence, and the opaque analysisRef only.

Preconditions

  • Analysis is opt-in and on-device. The media-pool asset must already have a cache for its current sourceRevision.
  • rhythm-lite supplies Beat This rhythm data; music-semantics-lite supplies CLAP tags and the private similarity vector.
  • An Agent call must never install a pack, download a model, decode media, or start inference. Direct the user to Settings and the media-card analysis action when the cache is unavailable.

Inspect

  • Identify the BGM by itemId, assetId, or an unambiguous name. Prefer the timeline item when the user intends to edit, because returned points are then mapped to timeline frames through the clip trim and playback rate.
  • inspect_music returns BPM, meter, confidence, tags, sections, counts, and bounded point lists. Lists are capped at 48 beats, 24 downbeats, 16 sections, and 12 tags; use a narrower range when truncated is true.
  • Treat analysisRef as opaque. It binds later planning and execution to the exact cached analysis without exposing the 512-value CLAP embedding.

Plan

  • timing:auto chooses section → downbeat → beat for sparse edits, downbeat → beat → section for medium edits, and beat → downbeat → section for dense edits.
  • Density samples every fourth, second, or first candidate for sparse, medium, or dense respectively.
  • Plans are bounded to 96 cut frames and 64 overlapping video targets. Report the returned summary and any cap or locked-target warning before applying.
  • A plan targets video clips that overlap the selected BGM range. It must never include or mutate the BGM item itself.

Apply and recover

  • Pass the same itemId, timing, density, range, target ids, and analysisRef to sync_cuts_to_music. Execution recomputes the plan from current state; do not replay an old list of frames.
  • A missing or stale ref means the project or analysis changed. Call inspect_music, then music_edit_plan, and ask for acceptance again.
  • Locked video tracks are skipped and reported. Never unlock a track implicitly.
  • Successful splits are submitted as one EditorCommands.batch, so the whole rhythm edit is one undo step.

Version History

  • 0c0c02d Current 2026-08-12 09:07

Same Skill Collection

src/agent/skills/ai-cinematic-short-film/SKILL.md
src/agent/skills/asset-import/SKILL.md
src/agent/skills/create-motion-graphics/SKILL.md
src/agent/skills/explainer-video/SKILL.md
src/agent/skills/export/SKILL.md
src/agent/skills/image-gen/SKILL.md
src/agent/skills/known-errors/SKILL.md
src/agent/skills/long-video-to-shorts/SKILL.md
src/agent/skills/motion-graphic-placement/SKILL.md
src/agent/skills/multi-clips-to-reels/SKILL.md
src/agent/skills/music/SKILL.md
src/agent/skills/news-rough-cut/SKILL.md
src/agent/skills/openchatcut-plugin-basics/SKILL.md
src/agent/skills/product-ad-video-script/SKILL.md
src/agent/skills/shader-gen/SKILL.md
src/agent/skills/storyboard-shot-breakdown/SKILL.md
src/agent/skills/transcription/SKILL.md
src/agent/skills/verification/SKILL.md
src/agent/skills/video-gen/SKILL.md
src/agent/skills/video-thumbnail-generator/SKILL.md
src/agent/skills/voice/SKILL.md
src/agent/skills/widget-forms/SKILL.md
skills/openchatcut/SKILL.md
src/agent/skills/product-help/SKILL.md
src/agent/skills/talking-head-guide/SKILL.md

Metadata

Files
0
Version
f56fc2f
Hash
fd35879e
Indexed
2026-08-12 09:07

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-12 22:16
浙ICP备14020137号-1 $お客様$