Communitygithub.com

Music Library & Licensing Compliance Suite

Royalty-free music library integration, license whitelist enforcement, TASL attribution generation, and AI music licensing trap detection. Installed by BGM composer; binds fences G-BGM0..G-BGM5; uninstall revokes.

What is Music Library & Licensing Compliance Suite?

The Music Library & Licensing Compliance Suite is a comprehensive skill for AI agent workflows (e.g., Claude Code, Cursor) that manages music sourcing, licensing, and attribution in video/audio production pipelines. It provides three supply routes with a fixed fallback order: online sources (Jamendo, Freesound, Mubert, or customer indices) → local libraries (shipped fallback packs, customer-built, or workspace-local) → self-composed generation (no third-party rights, fully commercial). Online sources are strictly vetted: only CC0, CC BY, CC BY-SA, and royalty-free licenses are accepted; NC/ND/unknown are rejected. The skill enforces a license whitelist (fence G-BGM5), requires TASL attribution for CC BY/CC BY-SA tracks, and flags AI music licensing traps (e.g., MusicGen weights under CC-BY-NC). It also handles library tagging with confidence levels, file relocation with relative-path indexing, and fail-closed behavior for any unlicensed or low-confidence tracks. Failure modes are rigorously documented with detectors, actions, and real-world cases. The skill ensures every delivery can answer: where the license/order ID is, whether attribution was delivered, and who approved it.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/geniusdapeng-collab/WorkLoom-video-edit/tree/HEAD/bundles/ai-video/skills/bgm-library-license

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Music Library & Licensing (Can It Be Used Commercially? Depends on the License, Not on "Is It AI-Generated")

1. Two Supply Routes

RouteToolLicense TypeWhen to Use
Online Sources (preferred)bgmwrite.fetch (Jamendo / Freesound / Mubert / Customer self-built index)Track-by-track: CC0/CC BY/CC BY-SA/Royalty-Free; NC/ND/Unknown → rejectNetwork available, needs finished arrangement quality
Local Library (fallback)bgmread.library (customer self-built → shipped fallback 50 tracks → workspace-local tagged library)Same whitelist; shipped fallback is a royalty-free pack from the owner (royalty-free, source in licenseSource)Network unavailable or offline preference
Self-Composed (last resort)bgmwrite.composeSynthesized in-warehouse, no third-party rights, commercial use OK, no attribution requiredTiming needs to match video, needs beat sync, reproducibility needed; no suitable track in upper tiers

Track selection order is fixed: Online → Local → Self-Composed. Each downgrade must include the reason in the receipt (network/unconfigured/license non-compliance/no match).

1.4 Library Tagging (Turning Your Music Collection into a Searchable Library)

Customer/workspace media packs (often thousands of tracks) are ingested via bgmwrite.tag / bgm-cli tag, with three rules:

  1. License must be declared first (license required and in the commercial whitelist): Tracks with unknown sources are not allowed into the library (fence G-BGM8); Overwriting an existing library index requires explicit allow_overwrite=true to avoid wiping customer-collected libraries with a single misconfiguration;
  2. No guessing: If BPM cannot be reliably detected, set bpm=null, confidence=low; loudness, true peak, clipping evidence, structural segments, spectrum, silence are all written per track into tag-evidence.json; embedded ID3 metadata takes precedence over filenames (which are often abbreviations); if both are missing, leave blank;
  3. Low confidence requires human review: Tracks with confidence.style=low may be added to the fallback library but must be human-ear-reviewed before delivery (fence G-BGM9).

1.5 Library Relocation & "Customer's Separate Download Folder" (Auto-Association Rules)

  • Bundled folders must use relative paths: Use bgmwrite.library action=pack (bgm-cli library --pack) to write tracks.json into the asset directory and convert paths to relative — unpacking anywhere (downloads/external drive/shared drive) will auto-discover and work immediately;
  • Absolute path indexes must be rebound after relocation: Re-bind by filename+size (verify=size, default) or content hash (verify=sha256), reporting three states truthfully: matched / missing / ambiguous — never pretend a file is available when it's not;
  • Auto-discovery is "convenience", not "implicit": Discovered libraries appear as local-discovered after explicit configurations (customer-built/shipped-fallback/workspace-local), with same-id first-come-first-served; WORKLOOM_BGM_SCAN_ROOTS controls scan roots, WORKLOOM_BGM_DISCOVER=0 disables it. A library is "available" only after sample verification passes.

A quick note on "AI music licensing traps": External model weights often carry NC/ND (e.g., MusicGen weights CC-BY-NC), the weight license is not the same as the output license — which is why this warehouse defaults to "self-composed synthesis + declared commercial-use music packs".

1.2 Rules for Online Source Fetching (New)

1.3 Catalog Presets & "I Want Western Pop / Chinese Classical" (2026-09-23)

bgmwrite.fetch / bgmwrite.best support the catalog parameter, translating "what style" into search criteria for each source:

catalogMeaningJamendo TagsFreesearch Terms
western-popWestern pop style (modern pop/electronic/dance), not "the latest commercial hits"pop / dance / electronicpop music loop upbeat
chinese-classicalChinese classical / national style (guzheng, erhu, pipa, dizi, folk music)traditional / chinese / worldguzheng erhu pipa dizi chinese traditional
cinematic-scoreFilm score (orchestral/atmospheric/driving)soundtrack / classical / cinematiccinematic orchestral score

Copyright boundaries (must be clearly stated to the customer, no ambiguity):

  1. "The latest Western pop hits" (e.g., current chart-toppers) cannot be fetched or stored: They are copyright-protected commercial recordings; distributing them with open-source libraries or using them in customer deliveries is infringement. The only legal paths are:

    • Connect to a licensed commercial library (customer's own subscription account / customer's own library → point to it via generic-http, or place purchased tracks in WORKLOOM_BGM_LIBRARY_DIR);
    • Use same-style CC0/CC BY/royalty-free tracks (catalog=western-pop does this).
  2. Chinese classical music: Scores of traditional pieces (e.g., "Spring River Flower Moon Night", "High Mountains Flowing Water") are mostly public domain, but recordings carry performer and producer rights — so use CC0/CC BY or licensed sources, don't grab any recording.

  3. The workspace does only three things: search (register provider), license gate, download cache; no scraping, no bypassing authentication, no forging licenses.

  4. Only use public APIs or customer-built indexes, no web scraping, no authentication bypass, no unauthorized sources (fence G-BGM7 — one-vote veto);

  5. First-time enablement of a provider or provider change requires human review (fence G-BGM6); credentials read only from environment variables/controlled secret storage, never echoed, never written to file;

  6. Check license before download (license_ccurl / Freesound license / Mubert royalty-free declaration): Non-commercial tracks are rejected — never "download first, check later";

  7. Downloads land in workspace cache (WORKLOOM_BGM_CACHE_DIR, default ~/.workloom-bgm/cache), with sha256; duplicate tracks hit cache and skip download;

  8. Size limit and protocol validation (only http(s), WORKLOOM_BGM_MAX_DOWNLOAD_BYTES default 80MB);

  9. Attribution-required tracks produce a TASL attribution file with delivery; if online fetch fails, fall back to local library and list each failure reason in the attempts field of the receipt.

2. License Whitelist (Enforceable, Fence G-BGM5)

licenseCommercial UseRequires AttributionNotes
cc0-1.0✅❌Public domain
cc-by-4.0✅✅Attribution required for commercial use
cc-by-sa-4.0✅✅Derivatives must be shared under same license (note: viral)
royalty-free✅❌Subject to platform terms (keep order/license ID)
workloom-self-generated✅❌Self-composed synthesis in this warehouse
cc-by-nc-4.0 / cc-by-nd-4.0 / cc-by-nc-nd-4.0❌—One-vote veto for commercial use
Unmarked / Unknown source❌—Treat as non-compliant (fail-closed)

No "use first, ask later": Tracks with unknown licenses cannot enter commercial deliveries; G-BGM1 requires human review for first-time library ingestion.

3. TASL Attribution How-To

CC BY / CC BY-SA license family requires attribution using the TASL format:

"Title" — Author · Source (Link) · License

Workspace behavior: bgmwrite.mix with attribution_out=CREDITS.md automatically writes the attribution file; bgmread.library --attribution-out can produce attribution at the track selection stage for early scheduling. The attribution file is part of the delivery: it must accompany the video description/press release, not stay in the workspace.

4. AI Music Licensing Traps (Easiest to Trip Over)

ProjectCode LicenseModel Weight LicenseCan Be Used in Commercial Deliveries
Meta MusicGen / AudioCraftMITCC-BY-NC 4.0 (no commercial use)❌ No (unless separately licensed)
Mubert (Commercial API)——✅ Officially stated generated/streamed tracks are royalty-free and commercial-use OK (subject to contract terms)
Self-Composed (this warehouse)This warehouse's ownNo third-party weights✅

Bottom line: "AI-generated" does not equal "no copyright risk"; you must check weight licenses, training data sources, and platform terms.

5. Rules for Integrating External Libraries

  1. Library directory + tracks.json provided by customer/workspace (contract in library/bgm-library/README.md); workspace does not download or re-upload;
  2. Each track registers: title/author/source/license/path/BPM/duration/mood/topic;
  3. Commercial delivery only searches commercialOk=true tracks; NC/ND are filtered at search stage;
  4. First-time library ingestion requires G-BGM1 human review; pre-verified tracks auto-pass;
  5. Platform credentials (API key / license token) go only into controlled secret storage, not into files, logs, or events.

6. Relationship with Common Music Libraries (2026-09-22 Verified Stance)

  • Jamendo: Developer API clearly separates Non-Commercial / Commercial plans; library contains mixed CC licenses, NC tracks require separate licensing for commercial use → only connect to Commercial plan and register per-track.
  • ccMixter / Free Music Archive: Per-track CC, requires automatic NC/ND filtering before use.
  • Mubert: Commercial API, outputs claimed royalty-free and commercial-use OK; register contract/order ID as proof.
  • Tunetank MCP endpoint (third-party MCP service): Not locally verified for availability or terms; must self-verify before integration (don't skip compliance just because "no API key needed").

7. Evidence (Prove It When Problems Arise)

Every delivery must answer: Where is this track's license/order ID, was attribution delivered with the video, who approved it and when? Corresponding artifacts: license field in bgm_report, TASL attribution file, approval record (G-BGM1), five-element event.

8. Failure Modes (Symptom → Detector → Action)

SymptomDetectorActionExample
NC/ND track slipped into commercial deliveryLicense whitelist filter + G-BGM5 hard gateBlock and replace; search only commercialOk=trueFC-BGM-003
Attribution required but no TASL fileDelivery checklist validation (CREDITS.md present?)Add attribution before delivery; attribution file is part of delivery—
Unmarked/unknown source track usedlicense required + fail-closed decisionTreat as non-compliant: reject, no "use first, ask later"FC-BGM-004
Web scraping / authentication bypassG-BGM7 one-vote vetoBlock and log; only public APIs or customer indexes—
Platform credentials in file/log/eventSecret scan + credentials-only-from-env ruleRotate credentials immediately; treat as incident and sanitize—
First-time library ingestion without human reviewG-BGM1 approval record checkBlock ingestion, require approval before use—
Low-confidence (style=low) track used directly in deliveryG-BGM9 human ear review recordAdd human ear review; no review means no delivery—
Online fetch failure treated as "no music available"Track selection order (online→local→compose) + attempts receiptDowngrade step by step with each failure reason, no skipping or silent replacementFC-BGM-005

Knowledge Base Reference

Knowledge Base: library/bgm-kb/ — SCORE-005 Music License Compliance Quick Reference (whitelist, TASL attribution, AI music trap criteria), SCORE-008 Common Incident Case Library (licensing incident post-mortem). Entry point: library/bgm-kb/_INDEX.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

geniusdapeng-collab/WorkLoom-video-edit

配乐交付规范官方套件:原节目默认来源、显式独立分轨授权、单次实际混音、曲目许可与字节证据,完整平台/电平/选段工艺参数和用户返修归因。成功源镜不经声音品质复检,不按余量/可闻度/卡点分数自动重试或降级;绑定 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

配乐定调官方套件(随 bundles/ai-video 分发):题材×场景×情绪→调式/调性/BPM/和弦/配器/结构的选型法,含 32 个题材配方(16 既有 + T-15 新增 16)、速度决策(配方 BPM vs 剪辑点反推)、禁忌清单与"允许不配"。安装后被 BGM 配乐师调用;绑定围栏 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

人声分离纪律官方套件(随 bundles/ai-video 分发):什么时候真需要分轨、两档引擎链(demucs/audio-separator → ffmpeg 中心声道近似)、质量等级与诚实标注、单声道与失败处理、与 UVR/Spleeter 的关系。安装后被 BGM 配乐师调用;绑定围栏 G-BGM0..G-BGM5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

SRT/ASS、字体解析、实际烧录与文字扩展轨的完整执行纪律;默认一次处理、原片原声保持,核对时间轴和真实产物,不抽帧评审可现度或循环选优;遵守 G-SUB 围栏的原片、字体、权限和执行回执约束。

geniusdapeng-collab/WorkLoom-video-edit

摄影知识库调用技能(随 bundles/ai-video 分发):19 篇九章式摄影知识(光学/景别/运镜/光线/色彩/材质/天气/风格/情绪),每篇第六章是「意图→提示词」核心调用区。用于写镜头提示词前定光圈/焦距/景别/光位/色调/材质,把参数意图翻译成画面语言。绑定制片与摄影指导岗位及围栏 G-KB0–G-KB4;卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

调色交付规范官方套件:Rec.709 本地加工、平台派生、滤镜和来源证据、真实产物哈希、版本回滚与用户反馈归因。成功渲染素材默认接受,保留完整参数与工艺参考,未测画面品质如实为空,实际缺件、授权或加工失败保持阻断;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

调色执行纪律官方套件(随 bundles/ai-video 分发):规格读取、明确校正与风格配方、单次请求加工、多镜参考匹配、来源和输出字节留痕,保留目标值与 profile 工艺知识。成功源镜默认接受,独立诊断不接入品质否决或自动重做;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

题材、场景、情绪与平台到单次调色配方的选型方法;保留题材表、参数建议、操作流程与失败诊断,成功渲染素材默认进入后期,不以画面评分复核或重做。

geniusdapeng-collab/WorkLoom-video-edit

多镜色彩一致性官方套件:指定参考镜、逐镜派生曝光和色度校正、完整批次结果、原片只读与当前字节证据。保留参考选择与诊断残差的工艺知识,成功源镜默认接受,成片不以残差、肤色或主观跳变自动拒绝重做;绑定 G-COL0..G-COL4,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

评论三级分流 SOP 官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):评论采集→意图分类→三级分流(夸赞 auto/咨询 review/负面 review+告警/敏感 block)、投诉维权关键词必审+告警、外发回执落账。安装后被评论区运营调用;绑定围栏 G10,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

封面设计官方套件:按明确标题、主视觉镜号/时刻、平台与账号字体色板一次本地合成,保留字号、安全区、人物布局和标题工艺知识。成功源镜默认接受,不调用模型选帧或整图质量评审,不做 PSNR/墨迹投票自动重做;实际来源、字体、请求和产物失败明确,绑定 G-MAT1/G-SUB3。

geniusdapeng-collab/WorkLoom-video-edit

封面设计知识库(cover-kb)调用技能。为封面设计师岗位提供「平台规范 / 账号定位 / 题材映射 / 钩子公式 / 构图工艺」的结构化检索与注入纪律(14 篇九章式,确定性检索,无向量库)。绑定围栏 G-SUB2/G-SUB3/G-MAT1;卸载即撤销封面 know-how 注入能力。

geniusdapeng-collab/WorkLoom-video-edit

母版、旁挂字幕、软轨、封面、变体、工程与清单的完整交付纪律;含产物表、变体设计、执行参数、来源哈希与逐层失败 SOP。按声明配方实际执行,保留来源与真实错误,不以差异评分、声音质量或默认增强模型再次拒收素材;绑定 G-DLV0..G-DLV9,供后期交付与封面岗位调用。

geniusdapeng-collab/WorkLoom-video-edit

返修闭环官方套件:反馈归因、层影响分析、基础工程版本/SHA 前置条件、独占版本认领、本地增量重合成与复用证据。保留完整反馈表、并发冲突和存储失败 SOP;成功镜头默认接受,组件或旧品质失败不重新生成,点名新生成保持 G8/G-DLV5,绑定 G-DLV4..G-DLV7。

geniusdapeng-collab/WorkLoom-video-edit

导演评审官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):6 问评审 + 5 维评分 + 硬阻断打回、事实红线一票否决、跨集连贯性校验,含硬阻断优先级/平均分不得掩盖短板/事实红线以 confirmed 字段为准等决策原则、四种评审形态打法、五步 SOP 与失败模式表。安装后被连贯审查官调用;绑定围栏 G6,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

字体许可合规官方套件(字幕师专业套件):OFL-1.1/Apache-2.0/厂商免费商用三类白名单判定、OFL 四条义务(可商用/禁单售/改后改名/保留声明)、不做子集化的理由、客户自备商用字体的登记口径、证据留痕与围栏 G-SUB5 对应关系。安装后被字幕师调用;绑定围栏 G-SUB1/G-SUB5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

字体选型官方套件(字幕师专业套件):场景×语言硬过滤、五维加权打分(作品类型/BGM节奏/粗细/艺术气息/气质关键词)、账号视觉锤锁定、中英混排搭配、上位提示词气质命中、否决项与"允许报告无合适字体"。安装后被字幕师调用;绑定围栏 G-SUB0/G-SUB1/G-SUB3/G-SUB5,卸载即撤销。

geniusdapeng-collab/WorkLoom-video-edit

情报五站方法论官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):采集/评价/竞品/核验/装订五站流水,含决策原则(无源不入库/置信度三级/域名去重/冲突不仲裁)、实物 8 路与服务 6 路两套打法、五步 SOP(每步带回执与失败路径)、关键指标护栏与失败模式表。安装后被情报科五站与调研员调用;绑定围栏 G1,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

营销 Brief 解析官方套件(随 bundles/ai-video 分发,F8.1 官方套件级):Brief 要素抽取、缺口反问、12 字段创意主题衔接、合规三级预检,含卖点 ≤3/用户共识优先/inferred 不得作核心卖点等决策原则、四种 Brief 形态打法、五步 SOP 与失败模式表。安装后被创意策划调用;绑定围栏 G2,卸载即撤销(F8.2/L8.3)。

geniusdapeng-collab/WorkLoom-video-edit

原声 program、显式签章分轨与配乐的来源、策略、时间轴和一次混流方法;默认保留原声,不自动分离或测声音品质,真实非法分轨与混流失败明确停止。

Related Skills