Agent Skillsbytedance/deer-flow › music-generation

music-generation

GitHub

基于 MiniMax API 生成音乐或歌曲的技能。通过构建包含风格、情绪及可选歌词的 JSON 规范,调用脚本将提示转化为 MP3 音频文件,支持人声与纯器乐创作。

skills/public/music-generation/SKILL.md bytedance/deer-flow

Trigger Scenarios

用户请求生成背景音乐、主题曲或广告歌 用户希望根据特定风格或情绪创建歌曲

Install

npx skills add bytedance/deer-flow --skill music-generation -g -y
More Options

Non-standard path

npx skills add https://github.com/bytedance/deer-flow/tree/main/skills/public/music-generation -g -y

Use without installing

npx skills use bytedance/deer-flow@music-generation

指定 Agent (Claude Code)

npx skills add bytedance/deer-flow --skill music-generation -a claude-code -g -y

安装 repo 全部 skill

npx skills add bytedance/deer-flow --all -g -y

预览 repo 内 skill

npx skills add bytedance/deer-flow --list

SKILL.md

Frontmatter
{
    "name": "music-generation",
    "description": "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."
}

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 \n between lines and structure tags such as [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro].
  • is_instrumental (optional, bool): set true for a pure instrumental track (no lyrics needed).

Behavior:

  • lyrics provided → 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): default https://api.minimaxi.com.
  • MINIMAX_MUSIC_MODEL (optional): default music-2.6-free (works for all API-key users); paid/Token-Plan users can set music-2.6 for 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 prompt focused on style/mood/scene; put the actual sung words in lyrics.
  • For non-English songs, write lyrics in the target language.

Version History

  • a5acc25 Current 2026-08-20 17:00

Same Skill Collection

.agent/skills/blocking-io-guard/SKILL.md
.agent/skills/deerflow-maintainer-orchestrator/SKILL.md
skills/public/academic-paper-review/SKILL.md
skills/public/bootstrap/SKILL.md
skills/public/chart-visualization/SKILL.md
skills/public/claude-to-deerflow/SKILL.md
skills/public/code-documentation/SKILL.md
skills/public/data-analysis/SKILL.md
skills/public/deep-research/SKILL.md
skills/public/find-skills/SKILL.md
skills/public/frontend-design/SKILL.md
skills/public/github-deep-research/SKILL.md
skills/public/image-generation/SKILL.md
skills/public/newsletter-generation/SKILL.md
skills/public/podcast-generation/SKILL.md
skills/public/ppt-generation/SKILL.md
skills/public/skill-creator/SKILL.md
skills/public/skill-reviewer/SKILL.md
skills/public/surprise-me/SKILL.md
skills/public/systematic-literature-review/SKILL.md
skills/public/vercel-deploy-claimable/SKILL.md
skills/public/video-generation/SKILL.md
skills/public/web-design-guidelines/SKILL.md
.agent/skills/engineer-system-change/SKILL.md
skills/public/consulting-analysis/SKILL.md

Metadata

Files
0
Version
a5acc25
Hash
b8b17571
Indexed
2026-08-20 17:00

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 13:52
浙ICP备14020137号-1 $방문자$