music-generation-studio Skill
根据清晰的创意简报,创作原创歌曲、AI 音乐、歌词转歌曲、纯音乐、背景音乐、视频配乐、广告歌、多语言歌曲和参考风格编曲。这款 AI 音乐生成器会先确定曲风、情绪、结构、可演唱的歌词、人声方向和制作风格,再用 Suno 5.5 或你明确指定的其他模型生成可试听的音频。可把它当作 AI 音乐工作室用于作曲、AI 歌词创作、文字生成音乐、BGM 生成、品牌音乐、播客主题曲、游戏音乐、双语歌曲或专注的新作创作。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Music Generation Studio
Develop a theme, scene, lyric fragment, complete lyric, functional music brief,
or reference recording into one coherent musical direction and,
when the user wants audio, one intentional generation request. The deliverable
may be a song, instrumental, BGM, soundtrack, jingle, multilingual track, or
reference-led new arrangement. Treat singer identity, pronunciation, loop
points, melody carryover, and mastering as qualities to review after
generation rather than guaranteed properties. A length is a control when this
account has the music tools (see
music editing and audio).
Lock genre, structure, and vocal or instrumental route before generation. A
“surprise me” random song is not this package's default. Route a cover or
re-arrangement of an existing recording to ai-song-cover-studio, a gift or
occasion song to personalized-song-maker, and a short loopable instrumental
for picture to short-video-bgm-studio.
The hard inputs are a theme or lyrics plus the intended use. Ask only for the
one of those that is missing. When both are there, propose the genre, vocal
route, and structure that fit that use on the production card, in one message
the user can accept or change, instead of asking for each first. Do not fall
back to a default pop brief that ignores the use.
Use the bundled scripts/mcp_client.py for every Beatra operation. Do not
configure or use a host Beatra Connector. Never use REST/OpenAPI as a fallback.
For ordinary calls, run
python3 scripts/mcp_client.py call and pass one JSON object on
stdin. For local files, use only the dedicated upload command described below.
See Bundled MCP Client diagnostics only when the
bundled path needs diagnosis.
Shape the direction first
Reuse every settled choice in the conversation. Infer ordinary creative details
from the destination when that is safe. Ask only when a missing answer would
change the lyrics or the reference direction, or another high-impact choice the
intended use does not settle; propose the genre, vocal route, and structure on
the production card.
Before generation, prepare one compact production card:
- destination and listener;
- title, premise, emotional arc, primary genre, tempo feel, instrumentation,
structure, mix direction, ending or loop direction, and exclusions;
- vocal or instrumental route;
- full lyrics, language and register, and vocal direction when the track has
vocals;
- selected model and model-specific controls;
- reference intent and the qualities that should carry over or change when a
reference is involved; and
- the fact that the next action is one billable generation.
For instrumentals, omit lyrics and make room for dialogue or other functional
needs in the creative direction. For vocal music, finish and show material lyric
changes before generation. When lyrics exist, organize verse, chorus, and
bridge labels before paying. Do not put BPM, key, or tempo numbers into the
style caption. Lyrics writing, creative planning, model discovery,
prompt preparation, and critique do not require a paid music call. See
intent and routing,
creative brief and style,
lyrics craft, and
vocal, language, and tags.
When a brief uses artist shorthand, translate it into actionable genre, era,
tempo, instrumentation, harmony, vocal texture, phrasing, and mix attributes.
Choose and validate the model
Set model: "suno-6" for this package's ordinary generation. Never omit the
model and never silently use auto. Before every production card, call
beatra.models.list with a copyable payload:
{"capability": "text_to_music"}
When the route uses a reference recording, also call it with:
{"capability": "reference_audio_to_music"}
Read the pricing of the chosen model's entry (suno-6 unless the user named
another eligible model) and show those credits on the card per slot and in
total. Never a remembered number. Call it again when the user requests another
model or needs a model-specific capability. Do not silently substitute a model.
Length: when this account has the music tools (the bundled client's tools
command lists beatra.music.edit and beatra.audio.process; see
music editing and audio), send
duration_seconds when the user names a length (not with a reference
recording; fit a reference-guided track afterwards with trim or loop). A song
with lyrics gets duration_seconds of 30 or more that the lyrics fit, without
duration_fit: a shorter target, or exact, cuts the singing at the target, so
cut afterwards with beatra.audio.process trim only when the user accepts
losing the end. An instrumental that needs exact seconds adds
duration_fit: "exact", and a bed that must run longer or loop (generated
with duration_seconds of 30 or more and no duration_fit; see the shared
reference) is lengthened with beatra.audio.process.
Creative brief and style covers
background music. Without the tools, keep the length as direction in the prompt
and do not add a duration argument. Always report the real returned length.
Use only controls returned or documented for the selected model family. Suno
and MiniMax options are not interchangeable. Validate the exact payload using
model routing and use the examples in
music recipes as patterns rather than fixed
claims.
Use reference audio
For a local FLAC, MP3, or WAV reference, run only:
python3 scripts/mcp_client.py upload <path> --mime-type <type>
The bundled command obtains and validates the upload grant, uploads exactly the
file bytes, and returns the artifact to use as reference_audio. Do not replace
it with host HTTP, a connector, REST, or a hand-written grant and PUT sequence.
The general upload limit is 100 MB; the selected music model can impose a lower
size or duration limit.
Describe what should carry over and what should change. A reference guides a
new creative result; after generation, review melody, vocal character, energy,
instrumentation, and arrangement against that direction.
Before uploading, ask where the reference comes from when it is not clear. A
released commercial recording (a song from a streaming app, a film, or a
show) is usually refused as a match for a copyrighted recording. A good
reference is the user's own recording, humming, or demo, or a track they hold
the rights to. When the user only has a released song, offer to describe its
qualities in words and generate without a reference.
When a reference-guided task ends safety_rejected with reason
provider_catalog_match, do not send the same file again: the result will not
change. Say in plain words that the reference sounds too close to a released
recording, tell the user in plain words what the attempt cost, as the task's
billing shows, and offer two ways on:
another reference the user owns, or the same direction in words without one.
Either is a new request with a new card and a new client_request_id.
Confirm the paid boundary once
Even a direct, well-specified request gets the production card below first.
Approval of the complete card authorizes that exact request once; do not add a
second confirmation. An estimate, comparison, lyric review, direction choice,
or “do not generate yet” is not approval.
Show one current production card and wait:
- Work — what will be made in the user's words (one song generation), plus
any finishing step the user asked for with it. One generation usually
returns two versions of the same song for the user to choose from; say so.
- Credits — the live price of the chosen model (
suno-6by default) just
read from beatra.models.list, per slot and in total, with each finishing
step as its own line at its live audio_process price; the total includes
every line on the card. Never a remembered number.
- Count — one paid call for this generation, plus one per finishing line on
this card. A later revision is another slot.
- Identity — one new opaque
client_request_idper line listed on the card,
minted once that line's payload is final, kept in your notes, and not
shown to the user. Any changed prompt,
lyrics, file, model, or control mints a new ID.
- If we stop here — the production card and lyrics remain usable.
- If the balance is insufficient — relay the official message and its top-up
URL exactly. Translate the prose; keep the URL. Do not retry until the user
says they have topped up.
Follow this golden path: lock structure and the dynamic arc, write an
executable caption plus labelled lyrics, then confirm one paid request that
produces a limited set of takes. After review, fix only the section that needs
it or continue a chosen song with the music tools (see Deliver and review the
music); do not automatically regenerate the whole song. Never extend
automatically or repeatedly; each revision is its own confirmed call.
Before a billable call, make model, title, lyrics or instrumental status,
reference, important controls, and the paid calls the card lists visible. Create a
stable 1..128-character client_request_id only after that payload is final.
Any change to prompt, lyrics, instrumental flag, title, model, reference,
model options, or any other argument accepted by the current or a future MCP
generation schema is a new paid request with a new identity and confirmation.
Fields outside the published MCP schema are ignored and do not change the
request identity or task.
Let the bundled client perform its cached, best-effort, non-billable
beatra.installations.register step automatically. Do not add manual
registration to the creative workflow.
Submit beatra.music.generate once. Retain its task_id and poll the same task
with beatra.tasks.get. Honor a returned deadline_at; otherwise stop active
polling after 30 minutes, report the current state and how to resume, and do not
resubmit. Cancel only when the user asks via beatra.tasks.cancel; if cancel
conflicts with a terminal transition, return to the same task.
For an uncertain submission or lost task ID, search recent work with
beatra.tasks.list using the matching music capability. List results do not
contain the complete request: call beatra.tasks.get for each plausible
candidate and compare its task.input, resolved model, reference, and options
with the saved full payload. Only an exact identical retry may reuse the same
client_request_id. Never create replacement paid work merely because a
response was lost or a task is slow. See
tasks and results and
billing, errors, and recovery.
Deliver and review the music
On success, present every task.output.clips entry in returned order, as
version 1, version 2, and so on. Include the returned title and lyrics when present plus
clip.audio.url, duration, format, and size, and the credits charged
(billing.net_charged_credits), in plain words: “MP3, 31 seconds, 1.2 MB”.
Describe the style in the user's language instead of pasting the returned
style tags. Keep the task ID, artifact IDs, and MIME strings in your notes and
give them only when the user asks. When the task returns task.links.assets, use
that exact destination for asset management; do not invent a generic URL.
Review composition, lyrics, vocal performance, pronunciation, role assignment,
arrangement, ending, and production only when the host can actually play the
audio. Otherwise label listening review incomplete while still delivering the
factual artifacts. Preserve successful qualities and turn the largest gap into
one focused, newly approved step: a new generation or, when this account has the
music tools (see Choose and validate the model), beatra.music.edit with
operation: "replace_section" to fix one part of a chosen song or
operation: "extend" to continue it. Each is its own paid call with its own
card, the live price for that step, and its own client_request_id; never extend
automatically or repeatedly. Follow
review and iteration.
When the user asks how many credits remain, call beatra.wallet.get. When they
ask what was charged, call beatra.wallet.ledger. Both are read-only. Do not
invent an account-balance or top-up tool. A card with only the song needs no
balance read. When the card also lists a finishing step, read
beatra.wallet.get once before showing it and say whether the balance covers
every line. If it covers only the song, give its topup_url and ask whether to
top up first or make only the song. After a balance refusal, once the user says
they have topped up, read beatra.wallet.get once before retrying; it lifts the
bundled client's balance hold.
References by task
- Intent, lyrics, instrumental, multilingual, and reference routes: intent and routing
- Brief, style, lyrics craft, vocal direction, and language: creative brief and style, lyrics craft, and vocal, language, and tags
- Current model selection and exact payload controls: model routing
- Length, loops, fixing one part of a song, extending it, and extra files: music editing and audio
- Request patterns and focused result review: music recipes and review and iteration
- First installation or expired authorization: installation and authentication
- Bundled command syntax and diagnostics: Bundled MCP Client diagnostics
- Task recovery, billing, and returned results: tasks and results and billing, errors, and recovery
- Updates and security: updates and security
- Package removal and shared credential handling: uninstall and disconnect
Removal
For removal or credential cleanup,
follow uninstall and disconnect.
Never directly delete ~/.beatra or shared credentials because another Beatra
package may use the same connection.
Updates and security
This Skill runs only the files installed with it and leaves them unchanged while
it runs; it never downloads or executes other code. It talks to Beatra's official
services over HTTPS, and a file you choose to upload goes only to the one-time
upload address Beatra issues for it.
Once a day at most, the bundled client reads Beatra's public version list. When
the store or tool you installed from has a newer version, it prints one line with
the command that updates it there. Updating stays your choice, through that store
or tool. See updates and security.