Token导航 LogoToken导航TokenDH.com
音频生成敏感数据github未标认证来源可访问许可证需确认审计异常

music-generation音乐一代

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

903

周安装

38

GitHub Stars

10

下载量

316
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:music-generation(音乐一代)
来源仓库:https://github.com/michaelboeding/skills
仓库路径:skills/music-generation
安装命令:
npx skills add https://github.com/michaelboeding/skills --skill music-generation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/michaelboeding/skills --skill music-generation

简介

music-generation 用于辅助音频、音乐或语音合成处理,适合生成配乐说明或调用语音工具。

  • 适用于播客制作、视频配音或音效设计场景。
  • 使用时需确认输入音频来源、输出格式和时长限制。
  • 涉及人声克隆或版权音乐时应先核对授权和合规要求。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Music Generation Skill

Generate music, songs, and audio using AI (Suno, Udio, Google Lyria).

Prerequisites

At least one API key is required:

  • GOOGLE_API_KEY - For Google Lyria (same key as video/image) ✅
  • SUNO_API_KEY - For Suno music generation
  • UDIO_API_KEY - For Udio music generation

Available APIs

Google Lyria (Instrumental Only)

  • Best for: Background music, beats, soundtracks, game audio
  • Duration: Any length (streams in real-time)
  • Features: BPM control, key/scale, brightness, density
  • Output: 48kHz stereo WAV
  • API Key: Same GOOGLE_API_KEY as video/image generation ✅
  • ⚠️ INSTRUMENTAL ONLY - Cannot generate vocals

Suno (Recommended for Songs with Vocals)

  • Best for: Full songs with vocals, catchy melodies, various genres
  • Duration: Up to 4 minutes
  • Features: Lyrics generation, instrumental mode, style tags
  • Genres: Pop, rock, jazz, electronic, classical, hip-hop, and more

Udio

  • Best for: High-fidelity audio, experimental styles, remixes
  • Duration: Up to 2 minutes per generation
  • Features: Style control, audio quality options
  • Genres: Wide variety with strong electronic/experimental support

Workflow

Step 1: Ask Key Question - Vocals or Instrumental?

This determines which API to use:

NeedAPIWhy
Vocals/LyricsSuno or UdioLyria cannot generate vocals
Instrumental onlyLyria (preferred)Same API key as video/image, real-time control
Background musicLyriaBest for soundtracks, game audio
Full songsSunoBest vocal quality

Example prompt to user:

"I'll generate that music! Quick question:

  1. Do you need vocals/lyrics?

- Yes → I'll use Suno (best for songs) - No, instrumental only → I'll use Lyria (same key as video/image)

  1. What genre/mood? (e.g., chill lo-fi, epic orchestral, upbeat pop)
  2. How long? (Lyria: any length, Suno: up to 4 min)
  3. Any BPM preference? (e.g., 90 for chill, 128 for dance)"

Step 2: Understand the Request

Parse the user's music request for:

  • Genre/style: Pop, rock, jazz, electronic, classical, etc.
  • Mood: Happy, sad, energetic, calm, dramatic
  • Tempo: Fast, slow, medium, specific BPM
  • Vocals: With vocals → Suno/Udio, Instrumental → Lyria
  • Purpose: Background music, song, jingle, soundtrack
  • Duration: How long should it be?

Step 2: Craft the Prompt

Transform the user request into an effective music generation prompt:

  1. Specify genre: Be specific about the style
  2. Describe mood: Emotional tone and energy level
  3. Include instruments: What should be prominent
  4. Add production style: Lo-fi, polished, vintage, modern
  5. Set tempo: BPM or descriptive (upbeat, slow)

Example transformation:

  • User: "happy summer song"
  • Enhanced: "Upbeat indie pop song with bright acoustic guitar, cheerful ukulele, and sunny vibes. Feel-good summer anthem with catchy hooks and positive energy. Male vocals, 120 BPM, radio-friendly production"

Step 3: Handle Lyrics (If Needed)

For songs with vocals:

  • User provides lyrics: Use them directly
  • Generate lyrics: Ask Suno/Udio to generate, or use Claude to write them first
  • Instrumental: Specify "instrumental" to skip vocals

Lyrics format for Suno:

[Verse 1]
Your lyrics here

[Chorus]
Catchy chorus lyrics

[Verse 2]
More lyrics

Step 4: Select the API

Choose based on requirements:

Use CaseRecommended APIReason
Instrumental/backgroundLyriaSame API key, any duration, real-time control
Full songs with vocalsSunoBest vocal quality
Lo-fi beatsLyriaGreat for ambient/chill
Experimental/electronicUdioStrong in these genres
Specific lyrics neededSunoLyrics input support
Game/video soundtrackLyriaPrecise BPM/key control

Step 5: Generate the Music

Execute the appropriate script from ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/:

For Google Lyria (Instrumental):

python3 ${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:

python3 ${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):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \
  --prompt "minimal techno" \
  --prompt "deep bass, 808" \
  --bpm 128 \
  --duration 90

For Suno (with vocals):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/suno.py \
  --prompt "upbeat indie pop, summer vibes, acoustic guitar" \
  --title "Summer Days"

For Udio:

python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/udio.py \
  --prompt "cinematic orchestral, epic trailer music" \
  --duration 120

Step 6: Deliver the Result

  1. Provide the generated audio file path
  2. Share the prompt and settings used
  3. Mention the duration and format
  4. Offer to:

- Generate variations - Try different style/genre - Adjust tempo or mood - Extend the track - Add or remove vocals

Error Handling

Missing API key: Inform the user which key is needed:

Lyria 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.

Prompt Engineering Tips

Genre Tags (Suno Style)

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]

Mood Descriptors

  • Energetic: upbeat, driving, powerful, intense
  • Calm: relaxing, ambient, peaceful, gentle
  • Happy: cheerful, bright, sunny, joyful
  • Sad: melancholic, emotional, heartfelt, somber
  • Epic: cinematic, dramatic, sweeping, grand

Production Style

  • Lo-fi: warm, vintage, tape hiss, nostalgic
  • Polished: crisp, modern, radio-ready, professional
  • Raw: garage, live, organic, unpolished
  • Electronic: synthesizers, digital, processed

API Comparison

FeatureLyriaSunoUdio
API KeyGOOGLE_API_KEYSUNO_API_KEYUDIO_API_KEY
Max durationUnlimited4 minutes2 minutes
VocalsNo✅ Excellent✅ Good
Instrumentals✅ Excellent✅ Great✅ Excellent
BPM control✅ 60-200❌ No❌ No
Key/Scale control✅ Yes❌ No❌ No
Audio quality48kHz WAVVery goodExcellent
Lyrics input❌ No✅ Yes✅ Yes
Real-time steering✅ Yes❌ No❌ No
Best forBeats, soundtracksSongsExperimental

Example Prompts

Pop Song

Catchy pop song with female vocals, bright synths, and an anthemic chorus.
Feel-good energy, summer vibes, 120 BPM, radio-friendly production.

Cinematic Score

Epic orchestral trailer music with building tension. Powerful brass,
sweeping strings, thundering percussion. Dramatic and emotional.

Lo-fi Beat

Chill lo-fi hip hop beat, jazzy piano samples, vinyl crackle,
relaxed drums, perfect for studying. 85 BPM, nostalgic mood.

Electronic Dance

High-energy EDM track with massive drops, pulsing synths,
four-on-the-floor beat. Festival-ready, 128 BPM.

Lyria-Specific Examples

Lo-fi Study Beats

python3 lyria.py -p "lo-fi hip hop, jazzy piano, vinyl crackle, chill" \
  --duration 300 --bpm 85 --brightness 0.3

Techno/Dance

python3 lyria.py -p "minimal techno, deep bass, 808 drums" \
  --duration 120 --bpm 128 --density 0.7

Ambient/Meditation

python3 lyria.py -p "ambient, ethereal, soft pads, dreamy" \
  --duration 180 --brightness 0.8 --density 0.2

Game Soundtrack

python3 lyria.py -p "epic orchestral, cinematic, dramatic strings" \
  --duration 90 --scale "D" --mode quality

Lyria Prompt Tips

  • Instruments: piano, guitar, synth, drums, bass, strings, 808, Rhodes, Moog
  • Genres: lo-fi hip hop, minimal techno, ambient, jazz fusion, synthwave, chillout
  • Moods: chill, energetic, dreamy, dark, upbeat, melancholic, epic
  • Combine prompts: Use multiple -p flags to blend styles

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.67%
按下载量换算110

Claude

33.49%
按下载量换算106

Cursor

19.37%
按下载量换算61

Gemini CLI

10.42%
按下载量换算33

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills