/medit-plugin:music-generationfrom medit
Produce music for a purpose in medit: background music, a soundtrack or cue for a video, a podcast or game, an intro or jingle, a loop, or a full song, composed with medit's instruments or generated with AI (ComfyUI ACE-Step / Stable Audio, ElevenLabs Music, Replicate), then fitted to length, mixed, mastered to a loudness target and checked for rights. Use when asked to make, generate, compose or arrange music, a song, an instrumental, a soundtrack or background music, or to prepare music for a video.
Ships in medit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a request for music into a finished, measured track in medit, with its timing, loudness and rights written down. The medit MCP server does the work; its own instructions cover tool details.
Get these from the request and note every value you chose yourself as an assumption:
Choices that belong to the user (genre, key, tempo, which version to keep) go to them: ask_user when the medit editor is open, otherwise ask in the conversation.
Call ai_status before promising any AI generation, and say how long local generation may take.
| Path | When | Tools |
|---|---|---|
| Compose in medit | Default. Exact timing, editable notes, no third-party model terms. | project_create, structure, add_drums, add_chords, add_bassline, add_arpeggio, add_melody, set_instrument |
| Generate a whole song (sung or instrumental) | The user wants vocals or a produced sound medit's instruments cannot give. | generate_song (style tags as prompt, lyrics with [Verse]/[Chorus] tags, instrumental) |
| Generate a part | A loop, texture, riser or instrument phrase inside a composed track. | generate_audio (bars at the song tempo) |
Online services (ElevenLabs Music, Replicate) cost the user money: use them only if the user picked one as default (ai_services) or asks for it. API keys are never handled in the conversation; the user adds them in the editor or with medit key <service> <key>.
For each generated piece, write down the backend, model, prompt, seed and that service's or model's licence terms for the intended use. If those terms are unknown or do not allow the use, say so before delivering.
Before switching to a different direction, save a version with snapshot. Make two or three variations that differ in one clear way (groove, chord progression, lead sound, or a different seed for generated audio), compare them with compare_versions, preview and analyze_mix, and let the user choose. Keep the others restorable with restore_snapshot.
delete_bars, insert_bars, copy_bars; shape generated audio with set_clip (offset, loop_bars, fades).preview.balance_mix for gain staging, then adjust by ear-free measurement: drums, bass and lead centered; pads and chords panned wider.add_bus + set_send); a low cut (add_effect eq) on everything that is not bass or kick.set_automation) where the voice is busiest.review_song until it reports no warnings, or each remaining warning is a choice you can explain.auto_master to the target from the brief (target_lufs, ceiling_db −1). Avoid squashing: if the crest factor from analyze_mix collapses or the master needs heavy gain reduction, reduce dense layers instead of pushing the limiter.get_notes, preview piano roll); if they match for more than a short common figure, rewrite them.Export only when the user asks for a file: export_audio (WAV 24-bit for editing, MP3 or M4A for previews), export_stems for a video editor or DAW, export_midi for the notes. Save the song with project_save. Report:
analyze_mix after mastering;Report each check as PASS, FAIL or NOT_RUN, with the evidence you observed (a measured value, a tool result). Never report a check you did not run.
| Check | Evidence |
|---|---|
| Duration matches the brief | song length or exported file duration vs target |
| Hits land on the required times | section/bar positions converted to seconds |
| Loudness and peak on target | analyze_mix integrated LUFS and true peak |
review_song clean | ok: true, or each remaining warning explained |
| Loop seam / ending reviewed | preview of the last and first bars |
| Rights documented | licence note present for every generated or sampled part |
You cannot hear the result: measurements and images are evidence about the audio, not a listening test. Suggest open_ui so the user can listen before anything is final.
analyze_audio for BPM, key and loudness) before building on it.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ritvarsbiksis/medit-plugin --plugin medit-plugin