
Music Generation
FreeGenerate custom music tracks from prompts and lyrics.
Free · Opens the source repo
What Music Generation does
The Music Generation skill allows users to create unique songs by utilizing the MiniMax music generation API. By providing a structured JSON specification, users can define the style, mood, and scene of the music they wish to generate. This skill supports both vocal and instrumental tracks, making it versatile for various musical needs, including background music, jingles, and theme songs. Users can either supply their own lyrics or let the model generate them based on the provided prompt.
To use the skill, you start by identifying the desired characteristics of the song, including the genre, mood, and whether vocals are needed. You then create a JSON file that outlines these specifications, including optional lyrics if desired. The skill processes this JSON file to generate an MP3 file of the music, which is saved in the specified output directory. This workflow is straightforward, requiring only basic knowledge of JSON formatting and command line execution.
This skill is particularly useful for developers and designers who need quick access to custom music tracks for projects, presentations, or creative endeavors. It eliminates the need for extensive music production knowledge, allowing users to focus on the creative aspects of their work while the skill handles the technical generation of music. Additionally, it can serve as a tool for artists looking to explore new musical ideas or for businesses needing unique audio branding.
Overall, the Music Generation skill provides an efficient and user-friendly way to create music tailored to specific needs, making it a valuable addition for anyone involved in creative projects requiring audio elements.
When to use it
Use this skill when you need to generate custom music tracks quickly, whether for personal projects, presentations, or commercial use.
When not to use it
This skill may not be suitable for users looking for highly intricate or professional-level music production, as it relies on predefined prompts and may not cater to every specific musical nuance.
What you can build with it
Creating Background Music for Videos
Generate custom background music for video projects by specifying the desired mood and style.
Composing Theme Songs for Events
Produce unique theme songs for events or presentations using tailored prompts and optional lyrics.
Exploring Musical Ideas
Use the skill to quickly explore different musical ideas and styles without needing extensive music production knowledge.
How to install Music Generation
View source1. Install with the skills CLI
npx skills add bytedance/deer-flow/music-generation --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by bytedanceMusic Generation Skill
Overview
This skill generates songs (vocal or instrumental) from a structured JSON spec using the
MiniMax music generation API (/v1/music_generation). You describe the style/mood/scene in
prompt, optionally provide lyrics, and the script returns an MP3.
Workflow
Step 1: Understand Requirements
Identify the desired style, mood, scene, language, and whether the user wants vocals or a pure instrumental track. Decide whether to supply lyrics or let the model write them.
Step 2: Create the Spec JSON
Write a JSON file in /mnt/user-data/workspace/ named {descriptive-name}.json:
{
"title": "Rainy Night Cafe",
"prompt": "indie folk, melancholic, introspective, walking alone, cafe",
"lyrics": "[verse]\nStreetlights glow the night wind sighs\n[chorus]\nPush the wooden door warm air inside"
}
Fields:
title(optional): a human-readable name.prompt(required): style, mood, and scene. Drives the musical character.lyrics(optional): song lyrics. Use\nbetween lines and structure tags such as[Intro],[Verse],[Pre Chorus],[Chorus],[Bridge],[Outro].is_instrumental(optional, bool): settruefor a pure instrumental track (no lyrics needed).
Behavior:
lyricsprovided → those lyrics are sung.is_instrumental: true→ instrumental, no vocals.- neither → the model auto-writes lyrics from
prompt(lyrics_optimizer).
Step 3: Execute Generation
python /mnt/skills/public/music-generation/scripts/generate.py \
--prompt-file /mnt/user-data/workspace/rainy-night-cafe.json \
--output-file /mnt/user-data/outputs/rainy-night-cafe.mp3
Parameters:
--prompt-file: Absolute path to the JSON spec (required).--output-file: Absolute path for the output MP3 (required).
[!NOTE] Do NOT read the python file, just call it with the parameters.
Environment
MINIMAX_API_KEY(required): your MiniMax interface key.MINIMAX_API_HOST(optional): defaulthttps://api.minimaxi.com.MINIMAX_MUSIC_MODEL(optional): defaultmusic-2.6-free(works for all API-key users); paid/Token-Plan users can setmusic-2.6for higher limits.
Output Handling
- Music is saved as MP3 (typically in
/mnt/user-data/outputs/). - Share the generated file with the user using the present_files tool.
- Offer to iterate on style or lyrics if adjustments are needed.
Notes
- Keep
promptfocused on style/mood/scene; put the actual sung words inlyrics. - For non-English songs, write
lyricsin the target language.
Frequently asked questions about Music Generation
Similar skills
Avatar Video
Create customizable AI avatar videos with ease.
AudioCraft Audio Generation
Generate music and sound effects from text descriptions.
Seedance Video Generation
Create AI-generated videos from text, images, and audio.
Seedance 2.0
Generate high-quality cinematic video clips effortlessly.
ElevenLabs Music Generation
Create AI-generated music from text prompts.
Face Swap
Easily swap faces in videos using AI technology.
