ai-music
Generate AI music on RunComfy via the `runcomfy` CLI — a smart router across the music-model catalog. Routes to ElevenLabs AI Music Generation (premium 44.1 kHz stereo vocal tracks, 5 s–5 min, $0.0083/s) and ACE Step / ACE Step 1.5 (StepFun-AI open-weights, tag-driven composition, multilingual lyrics, $0.0002–0.0003/s, ~27× cheaper), plus ACE Step audio-inpaint (regenerate a time range inside an existing track) and ACE Step audio-outpaint (extend a track before or after). Picks the right model for the user's actual intent — premium vocal hook, cheap background music library, multilingual pop song, repair a bad chorus, lengthen a 30 s draft into a 2 min cut — and ships each model's documented prompting patterns plus the minimal `runcomfy run` invoke. Triggers on "generate music", "make a song", "AI music", "background music", "instrumental track", "soundtrack", "jingle", "theme music", "royalty-free music", "compose", "music with lyrics", "extend music", "fix this song", "inpaint music", or any explicit ask to generate or edit music.
1How It Works & Mechanism
Pure prompt routing playbook: The skill directory contains only a single SKILL.md with zero scripts and zero code. The "engine" is the external RunComfy CLI + Model API; the skill's entire job is enabling the host agent to pick models based on user intent and assemble executable runcomfy run commands.
The agent reads these tables, classifies user intent (premium vs cost-sensitive · multilingual · vocal vs instrumental · generate vs edit), and picks the matching subsection below.
Capabilities = coverage across four routes: ElevenLabs generation (premium), ACE Step generation (cheap / open-weight), ACE Step audio-inpaint (modify time ranges), and ACE Step audio-outpaint (extend before or after). Each route includes a schematized --input JSON example.
**ACE Step audio-inpaint** — `acestep-ai/ace-step/audio-inpaint`
Intent classification is formatted as an explicit 5-question decision flow (generate vs. edit -> premium -> multilingual -> cost-sensitive -> edit type), allowing different agents to reproduce identical model selection outcomes.
**Premium polish required (brand / commercial)?**
Cost metrics are embedded as selection criteria: different models are annotated with $/second, multipliers, and duration caps (5 s–5 min / 5–240 s / cap 4 min), accompanied by recommendation blurbs setting clear "choose this / skip this" boundaries.
**$0.0002/s** — cheapest CLI-reachable music model on RunComfy.
The key mechanism for editing capabilities is time-range anchoring: inpaint uses start_time/end_time (which can anchor to the track start or end), while outpaint provides bidirectional extensions via extend_before_duration/extend_after_duration.
Regenerate a **time range** (start_time / end_time, anchorable to track start or end) inside an existing track.
Security considerations are author-declared and embedded as operational discipline: installations must use official package managers, tokens must be stored in 0600-permission files, prompts are passed via JSON without shell expansion, and outbound endpoints are strictly allowlisted.
The CLI does not shell-expand prompt content; it transmits the JSON body directly to the Model API over HTTPS. **No shell-injection surface from prompt content**.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | @runcomfy/cli(npm 官方 CLI,安装) |
| cli | runcomfy(login/run 子命令) |
| network | RunComfy Model API |
| network | 生成结果下载白名单域 |
| network | ElevenLabs AI Music Generation(经 RunComfy 网关) |
| network | ACE Step / 1.5 text-to-audio + audio-inpaint + audio-outpaint(经 RunComfy 网关) |
| network | 模型目录/文档站(正文链接,供人浏览) |
4Recommended Governance & Evidence
- 网络端点: Declares external network access: CLI → model-api.runcomfy.net (submitting and polling model requests)
- 本地工作目录: File I/O and artifact output: CLI downloads generated audio to --output-dir (e.g., ./out)
- SKILL.md: Declares execution via host CLI interpreter or external runtime environment
5Second-Pass Verification
- [ok] 外部资源条目复核:npm CLI 安装行、runcomfy login/run 调用点、model-api.runcomfy.net allowlist — 逐条在 SKILL.md 找到原文;runcomfy run 出现 8 次、allowlist 句与 '## How it works' 相互印证。
- [ok] '无 shell 注入面'声明反查 — 全文件除 --input JSON 示例与 runcomfy 命令外无其他执行形态;未发现反引号/管道/$( ) 拼接用户输入的指令。
- [ok] 隐藏脚本/混淆内容扫描 — 目录仅 SKILL.md(ls -a);正文代码块全部为 runcomfy 示例 JSON,无混淆/编码载荷。
- [discrepancy] 仓库 slug 一致性(安装命令 vs pin 仓库) — SKILL.md 安装行与 See-also 链均指向 agentspace-so/runcomfy-agent-skills,README 自称 runcomfy-agent-skills;而 git remote 与 GitHub API 显示本 pin 为 genmedia-labs/skills。按安装命令安装 ≠ 本分析对象,可能拿到不同/更新的内容。
- [unlocatable] 模型 id 与价格的远端真实性 — 模型 endpoint 存在性与 $/s 价格只能在 runcomfy.com/models 平台侧核实,源码仅能确认『skill 如此声明』;不影响本页展示,价格以平台为准。
- [ok] 第二遍对安全结论找反例 — 未发现漏掉的网络调用/凭证读取;'Credential' 相关词仅出现在自述安全章(禁止 echo token 等),无实际读取指令。
6Verdict & Scenarios
88f8e8b389a70680…