技能图谱SKILLSGROVE
技能图谱/视频制作/beatra-ai/beatra-skills/beatra-ai-music-creator

beatra-ai-music-creator

安装

$npx skills add https://github.com/beatra-ai/beatra-skills --skill beatra-ai-music-creator
$git clone --depth 1 https://github.com/beatra-ai/beatra-skills.git /tmp/beatra-skills && mkdir -p ~/.claude/skills && cp -r /tmp/beatra-skills/skills/beatra-ai-music-creator ~/.claude/skills/beatra-ai-music-creator
请帮我安装这个 Agent Skill:https://github.com/beatra-ai/beatra-skills/tree/e6ca04e14dd2f60dd406772452e4f8975657fddd/skills/beatra-ai-music-creator ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT-0Create original songs, AI-generated music, lyrics-to-song tracks, instrumentals, background music, video soundtracks, jingles, multilingual songs, and reference-led arrangements from a clear creative brief. This AI music generator and AI song maker develops genre, mood, structure, singable lyrics, vocal direction, and production style, then creates reviewable audio with Suno 6 or another model you explicitly choose. Use it as an AI music studio for songwriting, an AI lyrics writer, text-to-music creation, BGM generation, brand music, podcast themes, game music, bilingual songs, or focused new versions of reference audio. Review vocals, pronunciation, duration, loop points, and arrangement fit after generation, then refine the strongest result.
以下 SKILL.md 内容转载自 beatra-ai/beatra-skills(提交 e6ca04e),依据 MIT-0 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 Beatra 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

AI Music Creator

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

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 <tool-name> 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

At the studio entrance, split first: original song, cover, gift song, or instrumental BGM. This package defaults to an original song. 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 pure instrumental BGM to short-video-bgm-studio. When the user asks for a song in their own voice, use the singer already made from their voice (see "Saved singers" in music editing and audio); if there is none, create one first ("A singer from the user's own voice").

Reuse every settled choice in the conversation. Infer ordinary creative details from the destination when that is safe. The hard inputs are a theme or lyrics plus the intended use. If genre is empty, ask before writing the production card. Ask only when a missing answer changes the lyrics, reference direction, vocal or instrumental route, exact paid payload, or another high-impact user choice.

Follow this golden path: lock structure, write an executable caption, generate a limited set of takes, then make one focused revision. Never extend automatically or repeatedly; each revision is its own confirmed call.

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

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:

  1. Work — what will be made in the user's words, a beatra.music.generate call, plus any finishing step the user asked for with it.
  2. Credits — the live price of the chosen model (suno-6 by 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.
  3. Count — one paid call for this generation, plus one per finishing line on this card. A later revision is another slot.
  4. Identity — one new opaque client_request_id per line listed on the card. Any changed prompt, lyrics, file, model, or control mints a new ID.
  5. If we stop here — the production card and lyrics remain usable.
  6. 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.

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. Include the returned title and lyrics when present plus clip.audio.url, artifact ID, duration, MIME type, and size. Report factual task identity and billing.net_charged_credits. 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. Do not make wallet.get a required step before every paid submit.

References by task

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.

查看许可证全文(MIT-0)
MIT No Attribution

Copyright 2026 Beatra

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.