music-generator
Generate AI music or lyrics from natural language with a single sentence. The system auto-detects whether to create a vocal song or pure instrumental BGM, and automatically polls the task: it returns a preview link first, then the final downloadable audio link.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/boner-bbb/musicful-music-generatorMusic Generator Skill (Full SOP)
Capability Overview
This skill supports the following intents:
- Generate a full song with lyrics
- Generate pure background music (BGM)
- Generate lyrics only (no audio)
- Query music generation task status
Users can describe the music they want in plain language. The system auto-determines the mode and handles parameter inference and task tracking.
Triggers and Natural Language Examples
The following natural language requests will trigger this skill:
- Generate a romantic love song
- Write lyrics about the night sky
- Create electronic music suitable for short‑video background
- Check my music generation progress
- I want a cheerful background music track
Execution (SOP Step‑by‑Step)
Preflight Check (Mandatory)
- Read MUSICFUL_API_KEY from the skill folder’s .env (resolved at runtime via the running script path): <skill_root>/.env
- If not configured (empty/missing), immediately inform the user:
- "MUSICFUL_API_KEY is not configured. Please visit https://www.musicful.ai/api/authentication/interface-key/ to obtain/purchase an interface key, then write the KEY into <skill_root>/.env under MUSICFUL_API_KEY."
- Stop subsequent calls and wait for the user to complete configuration before continuing.
- If not configured (empty/missing), immediately inform the user:
The execution flow is intent‑based and incorporates a two‑stage return and a "lyrics‑first" UX:
- Single command entry: /music_generator, with mode branch control:
- mode=normal (default): generate and show lyrics → submit generation → return preview (status=2) → return final (status=0)
- mode=bgm: pure music (instrumental=1), no lyrics → preview first → then final
- mode=lyrics: return lyrics text immediately
- When using the "custom lyrics" path (built into the normal flow or future extensions): submit generation directly and poll (preview first, then final)
Scenario A: Generate a Full Song with Lyrics
Typical user inputs:
- Generate a romantic electronic song
- Write a sad rock song and generate audio
- Here are some lyrics, please use them to create the song: [...user‑provided lyrics...]
Detailed Flow
Step 1: Intent Recognition
- If the user provides complete lyrics, treat it as lyrics‑provided generation;
- Otherwise, assume lyrics need to be generated automatically and then used to synthesize the song.
Step 2: Lyrics Handling
- If lyrics are provided → use them directly;
- If not provided → call the V1 Lyrics API to generate lyrics content;
Step 3: Submit Music Generation Task
- POST {BASE_URL}/v1/music/generate
- body:
{ action: "custom", lyrics: "<lyrics>", style: "<inferred from user>", mv: "<default to latest high‑quality model>" }
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-boner-bbb-musicful-music-generator": {
"enabled": true,
"auto_update": true
}
}
}