music-generation
What it does
This skill creates original music, either with sung vocals or as an instrumental track. It is for people who need background music, a jingle or a theme song.
When to use it
- ✓When a user asks to compose a song, jingle or theme song.
- ✓When a user wants background music or an instrumental track for a video.
- ✓When a user has lyrics and wants them sung to a melody.
Skill link
https://github.com/bytedance/deer-flow/blob/main/skills/public/music-generation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make me a short upbeat instrumental jingle for my podcast intro.”
5 new skills a week. 1 minute to read.
How it works
The skill writes a small spec file with a title, a style prompt and optional lyrics. It then sends this to a music generation service and returns an MP3 file.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Music 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/). - Returned audio must decode to nonempty bytes and have an ID3 tag header or MPEG frame signature. This is a header sanity check, not complete audio decoding.
- Malformed, empty or unrecognized audio is rejected before creating the output directory or opening the output file; an existing output is preserved.
- Missing audio reports "MiniMax returned no audio data"; whitespace-only hex reports "MiniMax audio decoded to empty bytes".
- 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.
FAQ
Can I get a track with no vocals?
Yes. Setting the instrumental option to true creates a track with no singing.
Do I have to write lyrics?
No. If you give no lyrics, the model writes them automatically.
What service does it use?
The skill says it uses the MiniMax music generation API.
Details
Original description by the author
Use this skill when the user requests to generate, create, compose, or produce music or songs — background music, theme songs, jingles, or instrumental tracks. Generates a song from a style/mood prompt and optional lyrics via the MiniMax music API.
repo: bytedance/deer-flow
Popularity
- GitHub stars
- 85k
- Ranking position
- #1385
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
engineer-system-change
85kHelps your agent judge whether a software change is really needed before building it, checking the problem, users and risks.
academic-paper-review
85kHelps your agent review a research paper like a peer reviewer, covering methods, strengths, weaknesses and next steps.
bootstrap
85kGuides a friendly onboarding chat that builds a personal SOUL.md file, defining who your AI partner is and how it acts.
chart-visualization
85kTurns your numbers into a chart image, choosing from 26 chart types such as line, bar, pie, map and funnel.
Similar skills
openai-whisper-api
394kLets your agent turn an audio recording into text using OpenAI's transcription service, with options for speaker labels and output files.
openai-whisper
394kHelps your agent transcribe audio on your own computer with the Whisper command, with no API key and no cloud upload needed.
sag
394kHelps your agent read text aloud with ElevenLabs voices and play the result on your computer, with tips for pronunciation and expression.