Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill for AI music generation. Triggers include: "generate music", "create a song", "make music", "compose", "create a beat", "generate audio", "make a soundtrack", "create a jingle", "instrumental music", "background music", "lo-fi beats", "electronic music" Supports vocals (Suno/Udio) and instrumental-only (Google Lyria).
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 120% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 129% | 0% |
Generate music, songs, and audio using AI (Suno, Udio, Google Lyria).
At least one API key is required:
GOOGLE_API_KEY - For Google Lyria (same key as video/image) ✅SUNO_API_KEY - For Suno music generationUDIO_API_KEY - For Udio music generationGOOGLE_API_KEY as video/image generation ✅This determines which API to use:
| Need | API | Why | |------|-----|-----| | Vocals/Lyrics | Suno or Udio | Lyria cannot generate vocals | | Instrumental only | Lyria (preferred) | Same API key as video/image, real-time control | | Background music | Lyria | Best for soundtracks, game audio | | Full songs | Suno | Best vocal quality |
Example prompt to user:
"I'll generate that music! Quick question:
Parse the user's music request for:
Transform the user request into an effective music generation prompt:
Example transformation:
For songs with vocals:
Lyrics format for Suno:
[Verse 1]
Your lyrics here
[Chorus]
Catchy chorus lyrics
[Verse 2]
More lyricsChoose based on requirements:
| Use Case | Recommended API | Reason | |----------|----------------|--------| | Instrumental/background | Lyria | Same API key, any duration, real-time control | | Full songs with vocals | Suno | Best vocal quality | | Lo-fi beats | Lyria | Great for ambient/chill | | Experimental/electronic | Udio | Strong in these genres | | Specific lyrics needed | Suno | Lyrics input support | | Game/video soundtrack | Lyria | Precise BPM/key control |
Execute the appropriate script from ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/:
For Google Lyria (Instrumental):
bashpython3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \ --prompt "chill lo-fi hip hop, jazzy piano, vinyl crackle" \ --duration 60 \ --bpm 85
Lyria with key/scale:
bashpython3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \ --prompt "ambient, ethereal synths, dreamy" \ --duration 120 \ --scale "C" \ --brightness 0.7
Lyria with multiple prompts (blended):
bashpython3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \ --prompt "minimal techno" \ --prompt "deep bass, 808" \ --bpm 128 \ --duration 90
For Suno (with vocals):
bashpython3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/suno.py \ --prompt "upbeat indie pop, summer vibes, acoustic guitar" \ --title "Summer Days"
For Udio:
bashpython3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/udio.py \ --prompt "cinematic orchestral, epic trailer music" \ --duration 120
Missing API key: Inform the user which key is needed:
GOOGLE_API_KEY as video/image - https://aistudio.google.com/apikeyLyria requires google-genai package: pip install google-genai
User wants vocals but only has GOOGLE_API_KEY: Explain Lyria is instrumental-only, suggest Suno/Udio.
Content policy violation: Rephrase lyrics or prompt.
Generation failed: Retry with simplified prompt.
Quota exceeded: Suggest waiting or trying other provider.
Include specific genre tags for best results:
[pop, upbeat, female vocals, 128 BPM][jazz, smooth, saxophone, laid-back][electronic, synthwave, 80s, driving][classical, orchestral, emotional, strings]| Feature | Lyria | Suno | Udio | |---------|-------|------|------| | API Key | GOOGLE_API_KEY ✅ | SUNO_API_KEY | UDIO_API_KEY | | Max duration | Unlimited | 4 minutes | 2 minutes | | Vocals | ❌ No | ✅ Excellent | ✅ Good | | Instrumentals | ✅ Excellent | ✅ Great | ✅ Excellent | | BPM control | ✅ 60-200 | ❌ No | ❌ No | | Key/Scale control | ✅ Yes | ❌ No | ❌ No | | Audio quality | 48kHz WAV | Very good | Excellent | | Lyrics input | ❌ No | ✅ Yes | ✅ Yes | | Real-time steering | ✅ Yes | ❌ No | ❌ No | | Best for | Beats, soundtracks | Songs | Experimental |
Catchy pop song with female vocals, bright synths, and an anthemic chorus.
Feel-good energy, summer vibes, 120 BPM, radio-friendly production.Epic orchestral trailer music with building tension. Powerful brass,
sweeping strings, thundering percussion. Dramatic and emotional.Chill lo-fi hip hop beat, jazzy piano samples, vinyl crackle,
relaxed drums, perfect for studying. 85 BPM, nostalgic mood.High-energy EDM track with massive drops, pulsing synths,
four-on-the-floor beat. Festival-ready, 128 BPM.bashpython3 lyria.py -p "lo-fi hip hop, jazzy piano, vinyl crackle, chill" \ --duration 300 --bpm 85 --brightness 0.3
bashpython3 lyria.py -p "minimal techno, deep bass, 808 drums" \ --duration 120 --bpm 128 --density 0.7
bashpython3 lyria.py -p "ambient, ethereal, soft pads, dreamy" \ --duration 180 --brightness 0.8 --density 0.2
bashpython3 lyria.py -p "epic orchestral, cinematic, dramatic strings" \ --duration 90 --scale "D" --mode quality
-p flags to blend stylesOther measured skills in the registry, with their headline benchmark lift.