← 返回 Skills 市场
sthk-mbm

Ai Music

作者 MakeBestMusic · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
339
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ai-music
功能描述
AI music generation assistant powered by MakebestMusic. Use when user wants to create AI-generated music, songs, or audio tracks. Perfect for content creator...
使用说明 (SKILL.md)

🎵 AI Music Studio

✨ Describe your vision, let AI compose the melody ✨


🚀 Get Your API Key

  1. Visit 👉 MBM官网 and sign up 📝
  2. Go to My Account → Claw key 🔑
  3. Click Create Key and copy it ✂️
  4. ⚠️ Important: Save your key immediately — it won't be shown again!

⚙️ Configure Your Key

  1. Open OpenClaw app 📱
  2. Click Skills in the left menu 📋
  3. Find text-to-music 🎶
  4. Click Configure or Environment Variables
  5. Enter your Claw key (xxx...) in the apiKey field 🔐
  6. Save — you're ready to go! 🎉
  7. Restart openclaw

💫 How It Works

Just tell me what kind of song you want! For example:

  • "Create a happy pop song about summer"
  • "Generate an upbeat K-pop dance track"
  • "Make a relaxing piano piece for studying"

Instrumental or Vocals?

  • If you want vocals (song with singing): just describe your song
  • If you want pure music (no singing): include words like "instrumental", "pure music", or "no vocals" in your request

What to include in your description:

  • 🎼 Genre: Pop, Electronic, Classical, Rock, Jazz, R&B, Hip-hop, K-pop, Chinese-style
  • 😊 Mood: Happy, Sad, Romantic, Energetic, Calm, Exciting
  • 💖 Theme: Love, Dreams, Nature, Night, Adventure
  • 🎸 Instruments: Piano, Guitar, Drums, Synth, Strings

I'll default to vocals if you don't specify!


💬 Example Requests

With Vocals (Default)

  • "Create a happy pop song about summer with synth and guitar"
  • "Generate an upbeat K-pop dance track about love"
  • "Write a romantic R&B song about heartbreak"
  • "Make an energetic electronic song for a workout"

Instrumental

  • "Create an instrumental piano piece for studying"
  • "Generate a relaxing ambient track, no vocals"
  • "Make a pure music classical piano piece"

Check Status

  • "How's my song going?"
  • "Is my song ready?"

🎵 Generating a Song

When user requests a song:

  1. If user provides description: Use their description, default to vocals (false) unless they explicitly say "instrumental" or "pure music"
  2. If user says "create a song" or "generate music" without description: Ask them what kind of song they want

Then run:

node ~/.openclaw/workspace/skills/text-to-music/scripts/generate.js "\x3Cprompt>" \x3Cinstrumental>

Parameters:

  • \x3Cprompt>: Song description
  • \x3Cinstrumental>: "true" for instrumental/pure music, "false" for vocals

Returns:

{
 "success": true,
 "music_ids": ["abc123", "def456"],
 "status": "pending",
 "message": "Music generation started!"
}

🔍 Query Task Status

Check generation status:

node ~/.openclaw/workspace/skills/text-to-music/scripts/query.js "\x3Cmusic_id_1> \x3Cmusic_id_2> ..."

Returns (completed):

[
 {
 "music_id": "abc123",
 "status": "completed",
 "url": "https://makebestmusic.com/app/shared-music/abc123"
 }
]

Returns (processing):

[
 {
 "music_id": "abc123",
 "status": "pending"
 }
]

Status handling:

  • completed: Present with celebration! Show title, duration (if available), and clickable link
  • pending: Tell user it's still processing, suggest they ask again later
  • failed: Explain failure, suggest retrying with different description

⏱️ Generation Time

  • ⏱️ Typical time: 2-3 minutes
  • 💡 Ask "How's my song going?" to check the status

❓ Troubleshooting

Q: "API Key invalid" error?

Make sure the key is copied completely (includes "sk-" prefix). No extra spaces. Try generating a new key if issues persist.

Q: How long does it take?

Usually 2-3 minutes. Ask me "How's my song going?" to check!

Q: What if generation fails?

Try a simpler description. Avoid special characters. Try again with different keywords.

安全使用建议
This skill appears to do what it claims: it sends prompts and your apiKey to MakebestMusic and reports back status/links. Before installing: 1) Confirm you trust makebestmusic.com and the key you generate (review their privacy/tos if needed). 2) Treat the apiKey like a secret — only grant it to this skill and consider whether the provider lets you scope or rotate keys. 3) Ensure no untrusted MBM_API_BASE environment variable is set on your system (it can redirect requests to another host). 4) If you need higher assurance, inspect the scripts yourself or run them in an isolated environment to observe network calls.
功能分析
Type: OpenClaw Skill Name: ai-music Version: 1.0.1 The skill provides an interface for AI music generation via the MakebestMusic API. It is classified as suspicious due to a potential shell injection vulnerability in the execution instructions provided in SKILL.md, which directs the agent to run shell commands (node scripts/generate.js "<prompt>") using unsanitized user input. While the scripts (generate.js and query.js) appear to function as intended for the stated purpose and only communicate with api.makebestmusic.com, the lack of input escaping in the command-line pattern poses a security risk to the host environment.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the two scripts all target MakebestMusic's API and only require a single apiKey credential — this matches the stated purpose of generating music.
Instruction Scope
Runtime instructions only run the included node scripts and return or show status/links from the MakebestMusic API. The scripts do not read unrelated files or attempt to transmit data to other services beyond the configured API endpoint.
Install Mechanism
No install spec; skill is instruction-only with small JS scripts. No downloads or archive extraction are performed by the skill itself — low installation risk.
Credentials
The skill declares a single required credential (apiKey), which is appropriate. One minor point: both scripts optionally read MBM_API_BASE from the environment to override the API base URL, but MBM_API_BASE is not listed in the declared requirements. This override is commonly used for testing but could be misused if an environment variable were maliciously set to redirect requests to an attacker-controlled endpoint; consider ensuring MBM_API_BASE is not set to an untrusted host.
Persistence & Privilege
The skill is not always-enabled, is user-invocable, and does not request system-wide configuration changes or access to other skills' credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-music
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-music 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- No file changes detected in this update. - Version and documentation remain unchanged. - No new features, fixes, or adjustments in this release.
v1.0.0
AI music generation skill for OpenClaw, powered by MakebestMusic. - New guided instructions for setup and API key configuration - Enhanced usage guide with clear instructions and example prompts - Supports both vocal and instrumental music generation, based on request - Explains how to check song generation status and handle different outcomes - Troubleshooting and FAQ section added for common issues
元数据
Slug ai-music
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Ai Music 是什么?

AI music generation assistant powered by MakebestMusic. Use when user wants to create AI-generated music, songs, or audio tracks. Perfect for content creator... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 339 次。

如何安装 Ai Music?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-music」即可一键安装,无需额外配置。

Ai Music 是免费的吗?

是的,Ai Music 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ai Music 支持哪些平台?

Ai Music 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ai Music?

由 MakeBestMusic(@sthk-mbm)开发并维护,当前版本 v1.0.1。

💬 留言讨论