yue2-music
This skill generates, covers, transcribes and edits instrumental music and songs using YuE2 and SheetSage2 models.
Community author
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- Apache-2.0 (permissive)
- Pin
- 1647252pinned Oct 9, 2026
- Context cost
- about 2,300 tokenswhen the skill loads
- GitHub stars
- 10,987on multimodal-art-projection/yue
- Scripts
- 5 scripts
What it does
“Generate instrumental music and songs, cover, transcribe, and edit with YuE2 and SheetSage2/MERT2. Use for text-to-instrumental generation, instrumental covers, YuE2 full/melody/off generation, audio-to-ABC covers, style or lyric changes, score editing, agentic reharmonization, melody preservation, singable lyric adaptation, and reproducible listening comparisons; also for YuE2 纯音乐生成、器乐翻奏、翻唱、改编、改谱、换词和智能体编辑.”
Generated summary from the skill's own text
This skill generates, covers, transcribes and edits instrumental music and songs using YuE2 and SheetSage2 models. It handles text-to-music generation with editable scores, audio transcription to ABC notation, harmonic and lyric modifications, and produces reproducible results with playable audio and symbolic plans.
When to use it
- Generate instrumental music from text, audio, or ABC with editable melody and harmony
- Transcribe recordings to ABC notation and create styled covers with different lyrics
- Edit existing compositions by changing harmony, instruments, tempo, lyrics or structure
- Compare musical variations with audible playback and detailed analysis
When not to
- When you need to preserve source singer identity or vocal waveform characteristics
- Without access to a BF16-capable NVIDIA GPU with 24 GB VRAM
- For simultaneous multi-request generation or inpainting from audio codec tokens
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add multimodal-art-projection/yue --skill yue2-musicInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install multimodal-art-projection/yue yue2-music@1647252d68b70cbead046ffd3f7caf036dde47eeInstalls the commit we checked (1647252).
Copy by hand
Download the folder at 1647252 and put it in .claude/skills/yue2-music for Claude Code and in .agents/skills/yue2-music for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "yue2-music" by multimodal-art-projection. Source, pinned to commit 1647252d68b70cbead046ffd3f7caf036dde47ee: https://github.com/multimodal-art-projection/yue/tree/1647252d68b70cbead046ffd3f7caf036dde47ee/skills/yue2-music 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/yue2-music/ for Claude Code and .agents/skills/yue2-music/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/multimodal-art-projection/yue2-music
SKILL.md at the pin
---
name: yue2-music
description: Generate instrumental music and songs, cover, transcribe, and edit with YuE2 and SheetSage2/MERT2. Use for text-to-instrumental generation, instrumental covers, YuE2 full/melody/off generation, audio-to-ABC covers, style or lyric changes, score editing, agentic reharmonization, melody preservation, singable lyric adaptation, and reproducible listening comparisons; also for YuE2 纯音乐生成、器乐翻奏、翻唱、改编、改谱、换词和智能体编辑.
---
# YuE2 Music
Turn a musical request into a reproducible song and an audible comparison. Use released
model interfaces. Retain an original song and its plan before making changes.
Recommended agent: **GPT-6 Astra**. YuE2 composes the default score and renders the audio;
the agent operates the workflow and checks the results.
## Instrumental generation and covers
For instrumental, no-vocals, or 纯音乐 requests, follow
[instrumental/SKILL.md](instrumental/SKILL.md). A simple style description is enough.
Default to YuE2 planning, move every Vocal note to Ins, and render the revised score.
Only write a new score with the agent when the user explicitly asks for agent composition.
Given audio or ABC, use the instrumental cover workflow and retain the reference melody.
Deliver playable audio and the actual prompt; the user does not need to specify voice names
or inference parameters. Script and setup paths in that workflow are relative to `instrumental/`.
## Choose the workflow
| Request | Workflow |
| --- | --- |
| Instrumental music from text, audio, or ABC | [Instrumental workflow](instrumental/SKILL.md) → audio + prompt |
| Generate with editable melody and harmony | YuE2 `cot="full"` → ABC → song |
| Generate with a melody plan and free accompaniment | YuE2 `cot="melody"` → chord-free ABC → song |
| Generate without symbolic planning | YuE2 `cot="off"` → song; no editable ABC |
| Cover a recording | SheetSage2 → inspect/correct ABC → strip chords → YuE2 `melody` |
| Cover an ABC melody | Inspect/convert native ABC → strip chords → YuE2 `melody` |
| Change harmony, instruments, tempo, structure, or lyrics | Copy full plan → edit ABC/text → regenerate |
| Agentic editing | Export plan/baseline → bounded editing agent → check invariants → render → compare |
| Analyze musical features | Use MERT2 only when continuous features are needed |
```text
audio → SheetSage2 [loads MERT-v2-FullSong itself] → ABC
style + lyrics → YuE2 full/melody planning → ABC
edit/validate
style + lyrics + ABC → YuE2 semantic generation → synthesis → latents → VAE → song
style + lyrics → YuE2 off generation → synthesis → latents → VAE → song
```
Do not feed public MERT feature tensors to YuE2 as codec tokens. YuE2 exposes no
audio-reference, phoneme-alignment, or local-inpainting argument.
## Set up the needed models
Read [models-and-setup.md](references/models-and-setup.md). Install the YuE2 runtime
from the official GitHub repository source. Use a separate environment
for SheetSage2 because dependency pins differ. Download the public model snapshots and
record their revisions. This skill's original instructions, helpers, and templates are
licensed under [Apache 2.0](LICENSE). Copyright (c) 2026 the YuE2 authors.
The bundled instrumental helpers retain their [MIT license](instrumental/LICENSE).
Model weights and third-party dependencies retain their applicable licenses.
Use the supported baseline: one request at a time, BF16-capable NVIDIA GPU with 24 GB
VRAM, default YuE2 settings. Do not silently shorten a requested song or lower inference
settings to hide an OOM. Free allocations or choose suitable hardware; report changes.
Use `YuE2-Vae` for listening and `YuE2-Vae-legacy` when reproducing the supplied benchmark
protocol. Keep decoded files separate. Do not infer their roles from the word “legacy.”
Run helper paths below relative to this skill folder, with the appropriate environment's
Python. Select snapshots using `--model`, `--revision`, and `--vae-revision`, or local
model directories plus `--offline`. Use fresh output directories.
## Generate and retain the plan
Start with [assets/prompt.json](assets/prompt.json), an original example. Put genre,
instruments, vocal character, language and intended tempo in `style`; put section tags
and actual words in `lyrics`. Keep implementation notes out of lyrics.
```bash
python scripts/run_yue2.py generate --request assets/prompt.json --output outputs/pop
python scripts/run_yue2.py all-modes --request assets/prompt.json --output outputs/modes
python scripts/run_yue2.py plan --request assets/prompt.json --output outputs/plan
```
Inspect `result.json`, truncation, `score.abc`, `request.json`, and audio. Keep exact
tokens and `latent.npy`; the helper saves native artifacts. Preserve all requested modes
and failures. A successful process or playable file does not establish musical quality.
Read [generation-and-covers.md](references/generation-and-covers.md) for Python, CLI,
exact plan continuation, CFG, sampling, and cached decoding. Load unchanged plans with
`SymbolicPlan.load`; submit modified ABC as a new input. CLI `--resume` verifies a
completed result; it does not continue interrupted generation.
## Cover a recording
1. Transcribe in the SheetSage2 environment. Select the vocal melody or the full lead
melody, including instrumental passages.
2. Inspect warnings and correct missed notes, meter or key before attributing errors
to YuE2. Preserve source audio and raw transcription.
3. Export chord-free ABC. Select a retained voice explicitly when dropping a part;
removing chords alone should preserve both melodic voices and their rests.
4. Render with `cot="melody"`, target style and suitable lyrics. This supplies a symbolic
melody condition; it does not preserve the source singer's identity or waveform.
```bash
# SheetSage2 environment.
python scripts/transcribe.py reference.wav --task melody-full --output outputs/transcription
python scripts/abc_tools.py strip-chords outputs/transcription/score.abc outputs/cover.abc
# YuE2 environment; the request supplies target style and lyrics.
python scripts/run_yue2.py generate --request assets/prompt.json --cot melody \
--abc-file outputs/cover.abc --output outputs/cover-song
```
`cot="melody"` does not remove chord symbols automatically. To retain the original
harmony as well, use full transcription and `cot="full"`; call this score-conditioned
regeneration with melody and harmony.
## Edit or delegate an edit
Read [editing-workflows.md](references/editing-workflows.md) and
[abc-editing.md](references/abc-editing.md) before changing a score.
1. Render a baseline from the full plan. Freeze its original directory.
2. Define invariants: exact pitches; pitch plus rhythm; contour only; or bounded melodic
adaptation. Specify voices/passages, lyrics, instruments, tempo, meter and structure.
3. If delegation is available, give a score-editing agent raw ABC, prompt, lyrics, the
requested change and the [edit brief](assets/edit-brief.md). Request a new ABC,
revised style/lyrics as needed, and an edit manifest. Give a separate reviewer the
before/after artifacts and constraints. Without delegation, perform these stages
yourself. Keep model generation sequential per GPU.
4. Check musical events, not character strings: ties, accidentals and compressed rests
matter. Run:
```bash
python scripts/abc_tools.py inspect edits/jazz.abc
python scripts/abc_tools.py compare outputs/plan/score.abc edits/jazz.abc --voices Vocal
python scripts/run_yue2.py generate --request edits/jazz.json --cot full \
--abc-file edits/jazz.abc --output outputs/jazz
```
Add `--allow-tempo-change` for intentional tempo changes. Exact comparison should
fail for intentional rhythm changes; audit permitted differences from its report
instead of relabeling the result “melody preserved.”
Keep the edited score connected through `--abc-file` or request `abc_path`;
omitting both with `abc: null` generates a fresh plan and discards the edit.
5. Regenerate after changing style, lyrics or ABC. Old acoustic latents can be decoded
again, but cannot implement a musical or lyric edit.
6. Compare full songs and short passages around the edit. Revise when the requested
effect fails; retain each attempt and its actual prompt.
For lyric translation, adapt syllables, stress, vowels and breath points. Keep a
syllable/phoneme-to-note sidecar. Do not invent a `phonemes` field or mistake the sidecar
for hard acoustic alignment. Use ASR/PER and listening as separate evidence.
## Deliver an audible result
Read [listening-and-evaluation.md](references/listening-and-evaluation.md). Return playable
audio, full prompt/lyrics, before/after ABC, invariant checks and requested evaluations.
Keep model/decoder identity and failures visible.
```bash
python scripts/listen.py outputs/pop outputs/jazz --output outputs/comparison
```
This creates a local HTML player, copies audio, and includes the exact requests. It does
not publish or upload. Distinguish symbolic checks, ASR, listening and quality scores.
Deliver custom edit manifests and before/after comparison reports alongside the page;
the player copies a fixed set of native artifacts, not arbitrary sidecars.
Do not claim exact note realization, instrument removal or sample-accurate preservation
from an ABC check or SongBench score alone.
From multimodal-art-projection/yue at 1647252, shown as plain text under its license: Apache-2.0 (permissive). The license text is in skills/yue2-music/LICENSE.
View SKILL.md on GitHub at 1647252Files
- SKILL.md9.6 KB · 49909582781c
- LICENSE11 KB · cfc7749b96f6
- agents/
- openai.yaml325 B · f8f436aaf83a
- assets/
- edit-brief.md1.6 KB · dd113d95276e
- prompt.json498 B · 6b590fc427a8
- references/
- abc-editing.md13 KB · 398e239ab21d
- editing-workflows.md9.5 KB · 6d1ed38facc2
- generation-and-covers.md13 KB · f8bc42ce4397
- listening-and-evaluation.md8.1 KB · ea41431718ae
- models-and-setup.md17 KB · 9b2b94bbf64a
- scripts/
- abc_tools.py16 KB · ea04b922dace
- common.py951 B · 2929619bd37a
- listen.py14 KB · 6cbaab9aa28a
- run_yue2.py10 KB · d931c1afc9db
- transcribe.py5.9 KB · e1571294bdcf
15 files, 131 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 1647252Related in Media and creative
all-images-ai-automation
This skill automates All Images AI operations by discovering and executing tools through Composio's All Images AI toolkit via Rube MCP.
by ComposioOfficial publisher
Agents not labelled yet · about 710 tokens · pinned 6 days ago
remotion-best-practices
This skill routes the agent through Remotion's specialized knowledge bases for video creation, editing, and deployment.
by RemotionOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 920 tokens · pinned 6 days ago
remotion-best-practices
This skill routes the agent to specialized Remotion sub-skills based on the user's task, covering video creation, project setup, React markup, maps…
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 1K tokens · pinned 6 days ago
remotion-captions
This skill enables video caption workflows including transcribing audio to generate captions, displaying captions in videos, and importing captions from SRT…
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 220 tokens · pinned 6 days ago
remotion-captions
This skill enables the agent to work with captions in Remotion videos by transcribing audio to generate captions, displaying them in videos, and importing…
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 270 tokens · pinned 6 days ago
remotion-create
This skill scaffolds a new Remotion video project, opens the browser-based Studio for live preview, and guides composition development using React markup.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 680 tokens · pinned 6 days ago