music-generate
Skill này làm gì
Skill này biến một bản ý tưởng ngắn, như thể loại, tâm trạng hoặc chủ đề, thành một bản nhạc hoàn chỉnh trong tài khoản nhạc của bạn. Nó dành cho người muốn có một bài hát mà không tự viết nhạc.
Khi nào nên dùng
- ✓Khi bạn yêu cầu một bài hát, bản remix hoặc bản nhạc mới.
- ✓Khi bạn có một ý tưởng với thể loại, tâm trạng hoặc ngôn ngữ và muốn biến nó thành bản nhạc.
- ✓Khi bạn muốn một độ dài nhất định cho bài hát.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-generate/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
“Hãy làm cho tôi một bài Afrobeat sôi động dài 2 phút về mùa hè ở Lagos, lời bằng tiếng Anh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill viết lời có cấu trúc và một prompt phong cách chi tiết từ ý tưởng của bạn, rồi gửi cả hai tới dịch vụ nhạc cùng độ dài bạn chọn. Lệnh gọi có thể mất vài phút, nên skill chờ kết quả thay vì gửi lại yêu cầu.
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 Generate
Turns a creative brief into a real, playable track through the user's own Cognitum Music account.
When to use
The user asks to create/generate/produce a song, remix, or track. If mcp__cogmusic__create_production isn't loaded, run music-connect first.
Steps
Compose the two required inputs from the brief (delegate the actual writing to the
music-composeragent for anything beyond a trivial brief — lyrics quality matters more than most callers expect):lyrics— structured with[intro]/[verse]/[chorus]/[bridge]/[outro]tags, one section per line group. Match the language the user asked for; don't default to English if they named another language.prompt— genre, BPM, instrumentation, and mood in one dense sentence. Be specific (e.g. "Afrobeat, 116 BPM, talking drum, shekere, horn section" beats "upbeat African music").
Pick
audio_duration(seconds, default 30 if unspecified). 90–150s covers a real verse/chorus/bridge structure; don't go far past 150s without the user asking — generation time and cost both scale with duration, and the model's documented ceiling is 300s.Call the tool — it blocks for real minutes, not seconds:
mcp__cogmusic__create_production({ title: "...", lyrics: "...", prompt: "...", audio_duration: 120, })Do not poll or retry mid-call — the underlying bridge (
cogmusic@0.1.1+) already carries a long internal timeout. If it returns{"content":[{"text":"generation failed", ...}],"isError":true}, this is very likely a transient GPU-inference-service issue (see ADR-0001's Known reliability notes), not a bad prompt — retry once before concluding something is actually wrong with the request itself.On success, the result includes
id,title,audio_duration,created_at_unix, and anaudio_url. Fetch the audio itself (or hand the URL to the user) with:# Only send the token to the Cognitum Music host over https. The audio_url comes back in a tool result, # so treat it as untrusted: if the host is anything else, do NOT attach the token; show the URL to the user instead. case "$AUDIO_URL" in https://music.cognitum.one/*) curl -H "authorization: Bearer $COGMUSIC_TOKEN" "$AUDIO_URL" -o track.wav ;; *) echo "refusing: unexpected audio host" >&2 ;; esacAudio is never returned inline over MCP by design (see ADR-0001) — always a separate authenticated GET.
Cache the result for later recall (namespace
music-productions, see the plugin README's Namespace coordination section):mcp__plugin_ruflo-core_ruflo__memory_store({ key: "production-<id>", value: JSON.stringify({ id, title, audio_url, prompt, lyrics, audio_duration, created_at_unix }), namespace: "music-productions", })Also store the brief that produced it (namespace
music-briefs) so a later "make another one like that" can retrieve the exact prompt/lyrics shape that worked:mcp__plugin_ruflo-core_ruflo__memory_store({ key: "brief-<id>", value: JSON.stringify({ id, brief: "<the user's original request>", prompt, lyrics }), namespace: "music-briefs", })Report back: title, duration, the
audio_url, and a one-line summary of the style. Don't claim the audio "sounds like X" — you cannot hear it; describe what was requested, not the result.
Known reliability notes
The GPU inference service behind Cognitum Music has a real, documented history of intermittent generation failures (cold-start weight-loading races — see the upstream repo's ADR-0022/0023). A single retry resolves most transient failures. If two consecutive attempts with the same prompt/lyrics both fail, say so plainly rather than silently retrying a third time — that's a signal something's actually wrong on the service side, not bad luck.
Câu hỏi thường gặp
Độ dài bài hát ảnh hưởng đến điều gì?
Bản dài hơn cần thời gian tạo và chi phí nhiều hơn, nên skill gợi ý 90 đến 150 giây cho cấu trúc đủ đoạn và điệp khúc.
Nó có dùng ngôn ngữ tôi yêu cầu không?
Có. Skill theo ngôn ngữ lời bạn nêu, không mặc định là tiếng Anh.
Tôi có cần kết nối nhạc trước không?
Có. Nếu các công cụ nhạc chưa được tải, phải chạy skill kết nối trước.
Chi tiết
Mô tả gốc của tác giả
Generate a new song from a creative brief (genre, mood, language, BPM, theme) via the cogmusic MCP create_production tool
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1661
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
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.