Langsung ke konten
Skillpedia
Audio & suara81k Β· #1661

music-generate

Fungsinya

Skill ini mengubah brief kreatif singkat, seperti genre, suasana, atau tema, menjadi trek jadi di akun musik Anda. Skill ini untuk orang yang ingin lagu dibuatkan tanpa menulis musiknya sendiri.

Kapan dipakai

  • βœ“Saat Anda meminta lagu baru, remix, atau trek.
  • βœ“Saat Anda punya brief dengan genre, suasana, atau bahasa dan ingin mengubahnya menjadi trek.
  • βœ“Saat Anda ingin panjang trek tertentu untuk lagunya.

Link skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-generate/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-generate/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan saya lagu Afrobeat yang ceria berdurasi 2 menit tentang musim panas di Lagos, dengan lirik dalam bahasa Inggris.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menulis lirik terstruktur dan prompt gaya yang rinci dari brief Anda, lalu mengirim keduanya ke layanan musik bersama panjang yang Anda pilih. Pembuatannya bisa memakan waktu beberapa menit, jadi skill menunggu hasilnya dan tidak mengulang permintaan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

  1. Compose the two required inputs from the brief (delegate the actual writing to the music-composer agent 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").
  2. 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.

  3. 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.

  4. On success, the result includes id, title, audio_duration, created_at_unix, and an audio_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 ;; esac
    

    Audio is never returned inline over MCP by design (see ADR-0001) β€” always a separate authenticated GET.

  5. 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",
    })
    
  6. 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.

Pertanyaan umum

Apa pengaruh panjang lagu?

Trek yang lebih panjang membutuhkan waktu generasi dan biaya lebih besar, jadi skill menyarankan 90 sampai 150 detik untuk struktur bait dan reff lengkap.

Apakah bahasa yang saya minta akan dipakai?

Ya. Skill mengikuti bahasa lirik yang Anda sebutkan dan tidak kembali ke bahasa Inggris secara default.

Apakah saya perlu koneksi musik lebih dulu?

Ya. Jika alat musik belum dimuat, skill koneksi harus dijalankan terlebih dahulu.

Detail

Deskripsi asli dari pembuat

Generate a new song from a creative brief (genre, mood, language, BPM, theme) via the cogmusic MCP create_production tool

repo: ruvnet/ruflo

Popularitas

Bintang GitHub
81k
Peringkat
#1661
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa