minimax-music-gen
它能做什么
这项技能使用 MiniMax 音乐服务生成歌曲和背景音乐。适合希望根据简短描述、自己的歌词或某种情绪获得一段音乐的人。
适用场景
- ✓当你想根据一个简短的想法写出并演唱一首歌的时候。
- ✓当你已有歌词,并希望把它变成歌曲的时候。
- ✓当你需要为某个场景或情绪配上纯音乐背景的时候。
技能链接
https://github.com/MiniMax-AI/skills/blob/main/skills/minimax-music-gen/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的烹饪视频做一段欢快的纯音乐,情绪温暖愉快。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用 mmx 命令行工具生成音乐,可以选择曲风、情绪、人声和速度。它也可以先帮你起草歌词,然后用本地播放器播放结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
MiniMax Music Generation Skill
Generate songs (vocal or instrumental) using the MiniMax Music API. Supports two creation modes: Basic (one-sentence-in, song-out) and Advanced Control (edit lyrics, refine prompt, plan before generating).
Prerequisites
mmx CLI (required): Music generation uses the
mmxcommand-line tool.Check if installed:
command -v mmx && mmx --version || echo "mmx not found"Install (requires Node.js):
npm install -g mmx-cliAuthenticate (first time only):
mmx auth login --api-key <your-minimax-api-key>The API key can be obtained from MiniMax Platform. Credentials are saved to
~/.mmx/credentials.jsonand persist across sessions.Verify:
mmx quota showAudio player (recommended):
mpv,ffplay, orafplay(macOS built-in) for local playback.mpvis preferred for its interactive controls.
CLI Tool
This skill uses the mmx CLI for all music generation:
Music Generation:
mmx music generate— model:music-2.6-free- Supports
--lyrics-optimizerto auto-generate lyrics from prompt - Supports
--instrumentalfor instrumental tracks - Supports
--lyricsfor user-provided lyrics - Structured params:
--genre,--mood,--vocals,--instruments,--bpm,--key,--tempo,--structure,--references
- Supports
Cover:
mmx music cover— model:music-cover-free- Takes reference audio via
--audio-file <path>or--audio <url> --promptdescribes the target cover style
- Takes reference audio via
Agent flags: Always add --quiet --non-interactive when calling mmx from agents.
Pipeline:
- Vocal:
User description -> mmx music generate --lyrics-optimizer -> MP3 - Instrumental:
User description -> mmx music generate --instrumental -> MP3 - Cover:
Source audio + style -> mmx music cover -> MP3
Storage
All generated music is saved to ~/Music/minimax-gen/. Create the directory if it doesn't
exist. Files are named with a timestamp and a short slug derived from the prompt:
YYYYMMDD_HHMMSS_<slug>.mp3
Language & Interaction
Detect the user's language from their first message and respond in that language for the entire session. This applies to all interaction text, questions, confirmations, and feedback prompts.
User-facing text localization rule:
- ALL text shown to the user — including preview labels, field names, confirmations, status messages, playback info, feedback prompts, and the prompt/description preview — MUST be fully translated into the user's language.
- The API prompt sent to the model should always be written in English for best generation quality. However, when previewing the prompt to the user, show a localized description in the user's language instead of the raw English prompt. The English prompt is an internal implementation detail — the user does not need to see it.
- The templates below are written in English as reference. At runtime, translate every label and message into the user's detected language.
Lyrics language rule:
- Default lyrics language = the user's language. A Chinese-speaking user gets Chinese lyrics; an English-speaking user gets English lyrics.
- Only generate lyrics in a different language if the user explicitly requests it.
- When a different lyrics language is needed, embed it naturally into the vocal or genre description in the prompt. For example, instead of appending "with Korean lyrics", use "featuring a Korean female vocalist" or specify a genre that implies the language (e.g., "K-pop", "J-rock", "Mandopop", "Latin pop").
Workflow
Step 0: Detect Intent
Parse the user's message to determine:
- Song category: vocal (with lyrics), instrumental (no vocals), or cover
- Creation mode preference: did they provide detailed requirements (Advanced) or a casual one-liner (Basic)?
If ambiguous, ask using this decision tree:
Q1: What type of music?
- Vocal (with lyrics)
- Instrumental (no vocals)
- Cover
Q2: Creation mode?
- Basic — one-line description, auto-generate
- Advanced — edit lyrics, refine prompt, plan
If the user gives a clear one-liner like "make me a sad piano piece", skip the questions — infer instrumental + basic mode and proceed.
Step 1: Basic Mode
Goal: User provides a short description, the skill auto-generates everything, then calls t
常见问题
设置它需要什么?
需要 mmx 命令行工具(它依赖 Node.js)以及一个 MiniMax API 密钥。
它能制作纯音乐吗?
能。这项技能支持纯音乐选项,生成没有人声的曲目。
如果我想使用自己的歌词怎么办?
这项技能允许你直接提供歌词,并可以在生成前对其进行润色。
详情
作者的原始描述
Use when user wants to generate music, songs, or audio tracks. Triggers on any request involving music creation, song writing, lyrics generation, audio production, or covers. Also triggers when user provides lyrics and wants them turned into a song, or describes a mood/scene and wants background music. Supports multilingual triggers — match equivalent phrases in any language. Do NOT use for music playback of existing files, music theory questions, or music recommendation without generation.
repo: MiniMax-AI/skills
热度
- GitHub 星标
- 14k
- 排名
- #11294
- 许可证
- MIT
- 更新时间
- 2026/4/18
评论
- …
同一仓库的更多技能
design-style-skill
14k帮你的智能体为幻灯片选定一种统一的视觉风格,从锐利紧凑到柔和、圆润或宽松,并配以相应的圆角和间距。
ppt-editing-skill
14k帮你的智能体安全地编辑现有的 PowerPoint 文件或模板,包括修改文字、调整或删除幻灯片,并重新打包成有效的演示文稿。
ppt-orchestra-skill
14k帮你的智能体在制作之前规划整套 PowerPoint 演示文稿,把每张幻灯片归入标准页面类型,并检查版式多样性和文字质量。
slide-making-skill
14k帮你的智能体用 JavaScript 和 PptxGenJS 编写单张 PowerPoint 幻灯片,涵盖版式、文字、图片、图表和字体,生成原生 .pptx 文件。