Skip to content
Skillpedia
Audio & voice14k Β· #11294

minimax-music-gen

What it does

This skill generates songs and background music using the MiniMax music service. It is for people who want a track from a short description, their own lyrics, or a mood.

When to use it

  • βœ“When you want a song written and sung from a short idea.
  • βœ“When you have lyrics and want them turned into a song.
  • βœ“When you want instrumental background music for a scene or mood.

Skill link

https://github.com/MiniMax-AI/skills/blob/main/skills/minimax-music-gen/SKILL.md

Copy 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

Use this skill to help me: https://github.com/MiniMax-AI/skills/blob/main/skills/minimax-music-gen/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want an upbeat instrumental track for my cooking video with a warm and happy mood.”

5 new skills a week. 1 minute to read.

How it works

The agent uses the mmx command line tool to create the music, with options for genre, mood, vocals, and tempo. It can help draft lyrics first, then play the result with a local player.

Technical content (original SKILL.md)

Original text by the author, straight from 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 mmx command-line tool.

    Check if installed:

    command -v mmx && mmx --version || echo "mmx not found"
    

    Install (requires Node.js):

    npm install -g mmx-cli
    

    Authenticate (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.json and persist across sessions.

    Verify:

    mmx quota show
    
  • Audio player (recommended): mpv, ffplay, or afplay (macOS built-in) for local playback. mpv is 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-optimizer to auto-generate lyrics from prompt
    • Supports --instrumental for instrumental tracks
    • Supports --lyrics for user-provided lyrics
    • Structured params: --genre, --mood, --vocals, --instruments, --bpm, --key, --tempo, --structure, --references
  • Cover: mmx music cover β€” model: music-cover-free

    • Takes reference audio via --audio-file <path> or --audio <url>
    • --prompt describes the target cover style

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:

  1. Song category: vocal (with lyrics), instrumental (no vocals), or cover
  2. 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

FAQ

What do I need to set it up?

You need the mmx command line tool, which needs Node.js, and a MiniMax API key.

Can it make an instrumental track?

Yes. The skill supports an instrumental option for tracks with no vocals.

What if I want to use my own lyrics?

The skill lets you supply lyrics directly and can refine them before generating.

Details

Original description by the author

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

Popularity

GitHub stars
14k
Ranking position
#11294
License
MIT
Updated
4/18/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills