music-generation
Skill này làm gì
Skill này tạo nhạc gốc, có giọng hát hoặc chỉ là nhạc không lời. Skill dành cho những ai cần nhạc nền, jingle hoặc nhạc chủ đề.
Khi nào nên dùng
- ✓Khi người dùng yêu cầu soạn một bài hát, jingle hoặc nhạc chủ đề.
- ✓Khi người dùng cần nhạc nền hoặc bản nhạc không lời cho một video.
- ✓Khi người dùng có lời bài hát và muốn được hát theo giai điệu.
Liên kết skill
https://github.com/bytedance/deer-flow/blob/main/skills/public/music-generation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm giúp tôi một đoạn nhạc không lời ngắn, sôi động, làm phần mở đầu cho podcast của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill viết một file đặc tả nhỏ với tiêu đề, lời nhắc về phong cách và lời bài hát tùy chọn. Sau đó nó gửi đến dịch vụ tạo nhạc và trả về một file MP3.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Tôi có thể có một bản nhạc không có giọng hát không?
Có. Đặt tùy chọn instrumental thành true sẽ tạo bản nhạc không có giọng hát.
Tôi có phải viết lời không?
Không. Nếu bạn không đưa lời, mô hình sẽ tự viết lời.
Skill dùng dịch vụ nào?
Skill nói rằng nó dùng API tạo nhạc của MiniMax.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 85k
- Vị trí xếp hạng
- #1385
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
engineer-system-change
85kGiúp agent của bạn đánh giá xem một thay đổi phần mềm có thật sự cần thiết trước khi xây dựng, bằng cách kiểm tra vấn đề, người dùng và rủi ro.
academic-paper-review
85kGiúp agent của bạn đánh giá một bài báo khoa học như một người phản biện, gồm phương pháp, điểm mạnh, điểm yếu và các bước tiếp theo.
bootstrap
85kHướng dẫn một cuộc trò chuyện làm quen thân thiện để tạo file SOUL.md cá nhân, xác định đối tác AI của bạn là ai và cách nó hành xử.
chart-visualization
85kBiến số liệu của bạn thành ảnh biểu đồ, chọn từ 26 loại biểu đồ như đường, cột, tròn, bản đồ và phễu.
Skill tương tự
openai-whisper-api
394kCho phép agent của bạn chuyển bản ghi âm thành văn bản bằng dịch vụ chuyển đổi của OpenAI, với tùy chọn nhãn người nói và tệp đầu ra.
openai-whisper
394kGiúp agent của bạn chuyển âm thanh thành văn bản trên chính máy tính bằng lệnh Whisper, không cần khóa API và không cần tải lên đám mây.
sag
394kGiúp agent của bạn đọc văn bản thành tiếng nói bằng giọng ElevenLabs và phát kết quả trên máy tính, kèm mẹo về phát âm và biểu cảm.