Files
Links Deployment c1bbdab1e9 feat(links): 发布线上插件——接入正式HTTPS授权与七项创作技能
插件版本0.1.0,MCP服务https://43.161.201.228/mcp;仅含12个白名单文件,不包含商业源码和密钥。
源版本199bde88;分发ZIP SHA256 20d9445c28174ec29e6a97d716eb753aa52493e4b3740a7f108530112099e93f。
2026-10-27 11:31:31 +08:00

46 lines
5.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: links-music-ad
description: 使用本地 production 持久步骤制作程序配乐、节拍分析和三至五场景音乐广告计划,复用已有媒体并交付可编辑结果。
---
先读 [共用执行规则](../../resources/execution-rules.md)。此 Skill 是制作方法,不注册独立音乐工具。
1. 确认用户要原创程序配乐、已有音乐分析还是音乐广告计划,以及时长、节拍、场景和制作终点。盘点目标画布资产,`links_list_assets` 按 `canvasId/cursor/limit` 翻页;新音频通过携带 canvasId 的 `links_prepare_upload` / `links_complete_upload` 登记。已有音乐必须是已授权 audio,不抓取任意 URL。
2. 用户接受程序音时,在计划 steps 中加入 `category:"production"`、`request.mode:"score_music"`,调用 `links_validate_generation_plan` 预检,再用 `links_generate_media` 提交。D 写作 `durationSeconds`,2–120 秒;bpm 40–200,meter 3 或 4,key C/D/E/F/G/A,scale major/minor,style minimal_piano/ambient_pulse/warm_arpeggio/cinematic_steps,seed 非负整数,sourceRefs 必须为空。固定槽 0 audio、1 doc、2 text。这是程序合成音,非 ZenPiano、真实钢琴录音或指定演奏者;指定录音要求未满足时列待补充。
3. 对一个现有音频或 score 的槽 0 加 `analyze_music` 步骤,填写 `sourceRefs:[一个audio]`、可选 bpmHint、meter、phraseBars(2/4/8)。结果槽 0 text。报告的structure测量能量和频带变化候选,最多64点,附支持区间与阈值;无变化/静音/不足6秒保持unknown,semanticLabels始终unknown。候选不参与自动改动广告切点,不代表主歌/副歌或最优剪辑。节拍估计非语义乐句识别;人工听感和音乐版权判断不能由节拍报告替代。
4. 用 `plan_music_ad` 生成 3–5 场景计划:title、sourceRefs、music:{sourceRef,inSeconds}、durationSeconds、scenes、continuity、width/height,可附 referencePack:{sourceRef}。场景项用 id、space、action、sourceRef?、subjectIds;continuity 用 subject、cameraDirection、transitionPrinciple、immutableFeatures。所有使用的音乐、场景和参考包引用均在 request.sourceRefs 声明,step 引用必须有 dependsOn。production 的静态来源只用 request.sourceRefs/sourceRef,不设置 step.inputs;inputs 只用于后续图像/视频生成的 continuity 镜头。结果槽 0 text,是规划文本,不是自动生成的广告成片。
5. 以下仅为 `steps` 示例,asset:11 代表运行前必须查询并授权的真实图像 ID;替换 request 中的引用后补齐项目、画布和幂等字段,不添加 production step.inputs。后续广告计划依赖的是 score 槽 0 audio;不能将槽 1 doc 当音乐,也不能把 analyze 槽 0 text 当音频。
```json
{
"steps": [
{
"id": "score", "category": "production",
"request": { "mode": "score_music", "title": "山海节奏", "durationSeconds": 20, "bpm": 100, "meter": 4, "key": "C", "scale": "major", "style": "minimal_piano", "seed": 7, "sourceRefs": [] }
},
{
"id": "beats", "category": "production", "dependsOn": ["score"],
"request": { "mode": "analyze_music", "sourceRefs": ["step:score:0"], "bpmHint": 100, "meter": 4, "phraseBars": 4 }
},
{
"id": "ad_plan", "category": "production", "dependsOn": ["score", "beats"],
"request": {
"mode": "plan_music_ad", "title": "山海三景", "durationSeconds": 20,
"sourceRefs": ["step:score:0", "asset:11"], "music": { "sourceRef": "step:score:0", "inSeconds": 0 },
"bpmHint": 100, "meter": 4, "width": 1280, "height": 720,
"scenes": [
{ "id": "arrival", "space": "山间", "action": "主体进入晨光", "sourceRef": "asset:11", "subjectIds": ["product"] },
{ "id": "detail", "space": "室内", "action": "细节随节奏展开", "sourceRef": "asset:11", "subjectIds": ["product"] },
{ "id": "resolve", "space": "海边", "action": "落版留白", "sourceRef": "asset:11", "subjectIds": ["product"] }
],
"continuity": { "subject": "同一产品", "cameraDirection": "左向右", "transitionPrinciple": "动作衔接节拍", "immutableFeatures": ["轮廓比例", "品牌标识"] }
}
}
]
}
```
6. 调用 `links_validate_generation_plan` 预检,用 `links_generate_media` 提交,并通过 `links_get_job` 查询真实持久状态及每个输出槽。production 模型费 0;模型视频和媒体合成另按预检报价。已有音乐分支可省略 score,将授权 audio asset 的引用写入分析和广告计划的 request.sourceRefs/sourceRef,不添加 inputs。修改广告计划不会自动重制音乐。
7. 用户要成片时才根据计划生成/复用镜头并调用 `links_compose`。音量与淡变仅使用 manifest v7 的 `manifest.tracks[].clips[].audio:{gainDb,fadeInSeconds,fadeOutSeconds}`;legacy clips/audios 简式不接收 audio 控制。核对实际返回的可编辑 draft/时间线引用;调整声音复用成功视频。
8. 交付音频、文档、节拍文本、广告计划、真实费用、资产/Job、待补充项和质量证据。程序合成音非 ZenPiano;节拍估计非语义乐句;白模非产品拟真;当前任务 Blender 渲染须独立验收;公开分发/native Codex 未验。LibTV 只比较能力,不运行其脚本。无聆听/视听证据时质量为 unknown。