← Back to Skills Marketplace
sthk-mbm

Generate ai Music

by MakeBestMusic · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
313
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install generate-ai-music
Description
AI music generation assistant powered by MakebestMusic. Use when user wants to create AI-generated music, songs, or audio tracks. Perfect for content creator...
README (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.

Usage Guidance
This skill appears coherent: it only needs a MakebestMusic apiKey and calls the provider's API to create and query music jobs. Before installing, confirm you trust MakebestMusic (the skill's source/homepage metadata is missing), store the apiKey securely, and avoid setting MBM_API_BASE unless you trust the alternate endpoint (it would redirect where your key and prompts are sent). If you have doubts about provenance, review the small scripts (they are included and readable) or only enable the skill as user-invocable rather than globally automatic.
Capability Analysis
Type: OpenClaw Skill Name: generate-ai-music Version: 1.0.1 The skill facilitates AI music generation via the MakebestMusic API but contains a shell injection vulnerability. The instructions in SKILL.md direct the AI agent to execute shell commands by passing raw user-provided prompts into a command-line template (e.g., `node ... "<prompt>"`), which can be exploited to execute arbitrary system commands if the agent does not properly sanitize the input. While the scripts (generate.js and query.js) appear to be functional wrappers for the API (api.makebestmusic.com), the execution pattern recommended to the agent is inherently risky.
Capability Assessment
Purpose & Capability
Name/description (AI music generation) aligns with the code and SKILL.md. The only required secret is 'apiKey', which the scripts use as a Bearer token to call Makebestmusic endpoints. No unrelated services, binaries, or config paths are requested.
Instruction Scope
SKILL.md limits runtime behavior to running the included node scripts, prompting the user for a description when needed, and checking status. It does not instruct reading other files, scanning system state, or exfiltrating data to unexpected endpoints.
Install Mechanism
There is no install spec (instruction-only skill with two small JS scripts). Nothing is downloaded from arbitrary URLs or written to non-standard system locations.
Credentials
Only 'apiKey' is required and declared as primaryEnv, which is appropriate for a service API. The code also respects an optional MBM_API_BASE env var (defaults to api.makebestmusic.com); this allows redirecting the endpoint and should only be set to trusted values. No other sensitive env vars or unrelated credentials are requested.
Persistence & Privilege
Skill is not 'always: true' and does not request system-wide config changes. It runs as a user-invoked/autonomously-invokable skill (the platform default) and does not modify other skills' settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install generate-ai-music
  3. After installation, invoke the skill by name or use /generate-ai-music
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- No changes detected in this version. - Functionality and documentation remain the same as the previous release.
v1.0.0
- Rebranded skill as "text-to-music" with updated instructions for MakebestMusic integration. - Enhanced user guidance for generating both vocal and instrumental AI music. - Added step-by-step process for obtaining and configuring your API key. - Expanded example prompts and clarified how to specify genre, mood, and instrumentation. - Included directions for checking song task status and handling results. - Added troubleshooting section for common issues (API key, generation time, failures).
Metadata
Slug generate-ai-music
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Generate 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 313 downloads so far.

How do I install Generate ai Music?

Run "/install generate-ai-music" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Generate ai Music free?

Yes, Generate ai Music is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Generate ai Music support?

Generate ai Music is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Generate ai Music?

It is built and maintained by MakeBestMusic (@sthk-mbm); the current version is v1.0.1.

💬 Comments