Communitygithub.com

geniusdapeng-collab/WorkLoom-video-edit

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

WorkLoom-video-edit 是什么?

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

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/geniusdapeng-collab/WorkLoom-video-edit/tree/HEAD/bundles/ai-video/skills/bgm-score-design

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Scoring and Key-Setting (What Music, What Key, What Tempo)

Applicable Scenarios

  • Adding a musical bed that matches the tone of a finished video (commercials/voice-overs/documentaries/dramas/promotions)
  • When you need a "consistent musical style" rather than "randomly changing tracks per segment"
  • When you need to decide "whether the video should even have music"

1. The Four Key Questions (Answer Before Acting)

1.0. Read the Prompt First (New 2026-09-23, Overrides the Four Questions)

The input source for scoring is the original prompt submitted for rendering (render_scripts.md / prompt_package / one-sentence brief). First run:

bgmread.brief --prompt-text "City neon at night, the protagonist running in the rain, a twist revealed at the end, fast-cut high energy"

It translates the prompt into a scoring brief; the answers to the four questions are often already there:

Brief FieldSourceUsage
recipeId / genreTags32-subject keyword table (bilingual, e.g., 美食/food, 科技/AI/tech, 口播/讲解/talking head, 婚礼/wedding, 体育/sports); includes counter-examples (e.g., "sports meet" in humanities/voice-over text does not trigger sports)Lock in the recipe
energyLevel + bpmScaleEmotion words (燃/fast-cut → high energy; 治愈/soothing → low energy; 克制/sophisticated → low energy)Tune BPM and intensity
instrumentation.avoidForbidden words (no drums → remove kick/hat; keep ambient sound → use keep-all)Filter candidates, determine layers
climax.position/atSecClimax clues (twist at end → 85% mark; golden three seconds → 8% mark; mid-section burst → 50% mark)Basis for segment alignment
musicLevelDeltaDb"Music should be quiet / prominent"Fine-tune scoring level (±3dB)
noMusic"No background music"Directly determine no music needed (do-no-harm)

If a subject cannot be matched, the brief honestly reports low confidence, selecting a recipe based on explicit requests and track metadata; does not analyze the source video's sound/dialogue/energy quality to decide acceptance. Defaults to compose-only sourcing locally; only connects to the internet for other sourcing policies upon explicit request.

  1. Subject: 32 categories—16 existing (product commercials/voice-over interviews/food/tech/travel/night scenes/beauty/parenting/automobiles/real estate/promotions/documentaries/luxury brands/drama/suspense/comedy) + T-15 new (weddings/sports/esports/fashion/maternal/infant/home/new energy/finance/city dusk/festivals/science education/life vlogs/emotional stories/brand manifestos/pets/fitness)—determines the style family. These subjects are used to request the brief and music candidate metadata; they do not form a source video quality score; selects one actual plan per request, no trial renders of quality candidates.
  2. Scene and Subject: Studio white background, indoor half-body, close-up of a dish, screen demo, street shot B-roll... determines instrumentation thickness (the finer the subject, the thinner the instrumentation).
  3. Emotional Goal: Clean and trustworthy / Trustworthy and friendly / Tempting and warm / Calm and precise / Open and airy / Dramatic and modern / Transparent and trustworthy / Bright with warmth / Strong and precise / Bright and airy / Intense and urgent / Genuine and restrained / Restrained and textural / Emotional progression / Unsettling tension / Light and bright—determines mode (major/minor/Dorian/Phrygian) and intensity.
  4. Platform: Douyin/Xiaohongshu/Video Account/Bilibili/YouTube—determines whether high frequencies need to be brighter and low frequencies more contained (for phone speakers).

If the four questions cannot be answered, first take the closest recipe from the bgmread.recipes cheat sheet, then explain "why this one, and which ones were ruled out."

2. Recipe Library Usage

bgmread.recipes --list                     # Current bundled recipes (32)
bgmread.recipes --genre food --mood tempting-warm   # Targeted search
bgmread.recipes --id food                  # Get a single recipe (includes forbidden items and notes)

Recipe fields and meanings:

FieldMeaningUsage
key / modeKey / ModeDetermines "bright/dark": major = bright, aeolian = introspective, dorian = calm, phrygian = unsettling
bpmRecipe base tempoOnly a baseline; actual tempo also depends on edit rhythm (see Section 3)
chordsChord progression4-chord loop; I/IV = bright, vi/iv = introspective
instrumentationInstrumentationpad (foundation) / bass (low-frequency movement) / pluck (drive) / kick·hat (rhythm) / bell (accent)
musicLevelDbAverage BGM level in the final videoVoice-over -26, commercial -22, promotion -19 (higher value = more "front stage")
duckingDbDucking depth when speech occursVoice-over/documentary 13–14, commercial/promotion 10–12
avoidCreative forbidden itemsFilters music options during selection; already-processed videos are not automatically re-done

3. Tempo Decision: Recipe BPM or Cut-Point Back-Calculation

If the beat doesn't match, 90% of the time it's the wrong tempo. Two rules:

  1. Edit Rhythm Priority: Adjacent cut-point distance ÷ one beat = whole number of beats, back-calculate BPM (bpm_strategy=cut-driven); if the relative difference from the recipe BPM is ≤25%, use the back-calculated value; otherwise, use the recipe BPM and explain the conflict.
  2. One project, one tempo: Don't use "128 for the intro, 96 for the main body"—it sounds like two different videos spliced together.

Explicit cut-point grid reference: nearest beat point error ≤80ms can be used for clear diagnostic downbeat marking; this is not a default source-shot quality gate. The response records the adopted BPM and the requested grid; if beat-matching compliance is not tested, it cannot be marked as passed, and no automatic remixing is performed.

3.2. Section Selection: Picking "the Most Suitable Part" from a Track (Including Climax)

External tracks are often 2–3 minutes long, while videos are only 15–60 seconds—"which part to cut" is as important as "which track to use."

bgmread.structure --in track.wav          # Analyze structure: intro/verse/build/drop/breakdown/outro + BPM + climax candidates
bgmwrite.mix ... --section auto           # Auto-select section (default behavior)
bgmwrite.mix ... --section climax         # Explicitly request climax section
bgmwrite.mix ... --section calm           # Explicitly request calm section
bgmwrite.mix ... --section-start 62 --section-end 78   # Manual specification (seconds)

Section selection only analyzes the requested music: auto/climax/calm use the track's rule-based structure; explicit start/end follow the provided seconds; does not calculate source video dialogue peaks, non-dialogue energy, lip movements, or "safe windows." best defaults to full track/composition single mix; section response retains mode/chosen/reason.

Three rules:

  • Explicit start/end must be within limits: start ≥ 0, end > start, and end does not exceed track duration; invalid parameters cause a clear failure.
  • Structure identification is a rule-based segmentation using music energy quantiles, direction, and attack density; it is not a score or deep learning semantic proof.
  • Untested video climax, dialogue percentage, and quality margin remain null/not reviewed; do not fabricate "climax aligned"; no automatic secondary processing based on diagnostics.

4. Structure (The Video Length Equals the Track Length)

SectionPercentageInstrumentationFunction
Intro~15%Only pad + bassDon't overshadow the first sentence
Body~73%Add pluck, kick/hat if necessaryProvide propulsion
Outro~12%Drop back to padNatural end, no hard cut

No "song chopping": If an external track is shorter than the video, loop to fill (using actual local loop concatenation and timeline filters); don't cut a melody short to match the duration.

5. Creative Forbidden Items (Reference for Selection; User Feedback Forms New Requests)

  • Emotion opposite to the image (e.g., wedding video with a suspense score, memorial scene with a promotion rhythm);
  • Mixing multiple scoring languages in one project (inconsistent key/instrumentation);
  • Percussion hitting voice-over punctuation (voice-over videos default to no kick/hat);
  • When users explicitly care about dialogue clipping/noise floor, record feedback separately; do not default to measuring source audio quality, auto-separating, or reverting upstream;
  • Adding embellishments around key information points (like punchlines/reveals/prices) that steal attention (leave white space where needed).

6. Allowed Conclusion: No Music

bgmwrite.best only gives no_bgm_needed when the brief explicitly requests "no background music/keep original sound," preserving the real-source SHA256; cannot automatically decide against music based on existing music, speech activity ≥90%, noise floor, or no safe window. When ambient sound is content, you can explicitly request no added music in the request; without such a request, execute the selected plan once.

Default retains the full original program; only if separate tracks are dropped does it go the original program path; explicit independent tracks must be real and valid; cannot claim source audio as separated dialogue. Audio source/license/tenant/current byte failure remains clear; no silent track swap or downgrade.

Output Contract

The selection explanation must answer four questions: What subject, what scene/subject, what emotional goal, what platform, and include: recipe ID, key/mode, BPM and basis (recipe/cut-point back-calculation), instrumentation list, scoring level, ducking depth.

Parameter Boundaries and Single Execution

  1. BPM/level/ducking/fade in/out are handled within the actual interface's valid ranges; request targets are not measured quality values.
  2. Only music material is analyzed to calculate section selection and requested gain; source dialogue/ambient/loudness/lip-sync quality is not measured.
  3. Source video is read-only; original program audio is default; music-only must explicitly drop permission, replace-bed must have independent dialogue source.
  4. best selects one plan per request and music metadata; score=null; no quality candidate voting across source video or final video.
  5. Actual FFmpeg/source access/permission failures cause a clear failure; no auto 3dB retry or silent replacement of original audio.

Failure Modes (Symptom → Cause → Resolution)

SymptomDetector/CauseResolutionExample
Requested recipe or track doesn't existCurrent track library ID/fileName the missing item, stop; don't swap for an unknown track—
Track permission/signature mismatchReal source authorization and current SHA256Authorization fails; don't bypass by changing source via internet—
User says subject or emotion doesn't matchRequest brief and adopted recipeForm a clear request for a new recipe; no automatic quality retryFC-BGM-001
User says music too loud/not prominent enoughUser feedback and requested levelClearly adjust level/ducking; new local request; don't default to measuring margin and declare failure—
User requests beat-matching but rhythm doesn't matchExplicit cut_points and adopted BPMAdjust request speed or state the selection basis; old video remains unchanged—
Section selection out of bounds / cannot be readExplicit start/end and track specsReturn request/tool error; don't fabricate climax position—
Local synthesis/mixing failsFFmpeg stderr, output pathSave real failure; no output means incomplete—
Original audio muted / existing music / high noise floorOriginal program actual streamDefault accept; cannot auto-decide not to score or append ASR/TTS—

Knowledge Base Reference

Knowledge base: library/bgm-kb/ — SCORE-002 Subject-style fit decision tree (basis for Four Key Questions and recipe selection), SCORE-003 Beat-matching and music structure (basis for tempo decision and section alignment), SCORE-006 Explicit no-music request (no music is user intent, not automatic source-quality veto), SCORE-008 Common accident case library (entry point for reviewing mis-scoring accidents). Access entry: 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 分发):无版权曲库怎么接、许可白名单与商用红线、TASL 署名怎么出、AI 生成音乐的许可陷阱(MusicGen 权重 CC-BY-NC)、自算作曲为什么是默认路径。安装后被 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、显式签章分轨与配乐的来源、策略、时间轴和一次混流方法;默认保留原声,不自动分离或测声音品质,真实非法分轨与混流失败明确停止。

相关技能