music-generate
What it does
This skill turns a short creative brief, such as a genre, mood or theme, into a finished track in your music account. It is for people who want a song made without writing the music themselves.
When to use it
- βWhen you ask for a new song, remix or track.
- βWhen you have a brief with a genre, mood or language and want it turned into a track.
- βWhen you want a particular track length for the song.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-music/skills/music-generate/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake me a 2-minute upbeat Afrobeat song about summer in Lagos, with lyrics in English.β
5 new skills a week. 1 minute to read.
How it works
The skill writes structured lyrics and a detailed style prompt from your brief, then sends both to the music service with the length you choose. The call can take several minutes, so the skill waits for the result instead of repeating the request.
Technical content (original SKILL.md)
Original text by the author, straight from 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
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.
FAQ
What does the song length affect?
Longer tracks take more generation time and cost, so the skill suggests 90 to 150 seconds for a full verse and chorus structure.
Will it use the language I asked for?
Yes. The skill matches the lyric language you name instead of defaulting to English.
Do I need the music connection first?
Yes. If the music tools are not loaded, the connection skill must be run first.
Details
Original description by the author
Generate a new song from a creative brief (genre, mood, language, BPM, theme) via the cogmusic MCP create_production tool
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1661
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
openai-whisper-api
394kLets your agent turn an audio recording into text using OpenAI's transcription service, with options for speaker labels and output files.
openai-whisper
394kHelps your agent transcribe audio on your own computer with the Whisper command, with no API key and no cloud upload needed.
sag
394kHelps your agent read text aloud with ElevenLabs voices and play the result on your computer, with tips for pronunciation and expression.