Agent skill

Yue2 Music

by sammcj in sammcj/agentic-coding

A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

Apache-2.0Auto-check passed

Install Yue2 Music

skills CLI
$ npx skills add sammcj/agentic-coding --skill yue2-music -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sammcj/agentic-coding yue2-music --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sammcj/agentic-coding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills/yue2-music .claude/skills/yue2-music && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yue2-music
GitHub stars
162
Token cost
~2.3k tokens
SKILL.md length
1,064 words
Files
20 (incl. scripts, references, assets)
Skills in repo
64
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

  • Works in 6 steps: Work from a project directory, never… → Create .venv-yue2 in the project and… → Create .venv-sheetsage2 separately… → …
  • Generating songs with YuE2
  • SKILL.md covers Choose the workflow, Set up, Generate and retain the plan and Cover a recording, plus 3 more sections
  • Runs Python scripts from its folder; calls python and python3

What it does

Yue2 Music is an agent skill from sammcj/agentic-coding. Use when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening comparison of YuE2 output

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including scripts, reference files and assets (for example `CHANGELOG.md`, `CLAUDE.md` and `assets/edit-brief.md`).

The repository describes itself as: Agentic Coding Rules, Templates etc... The licence is Apache-2.0.

When your agent uses it

  • Generating songs with YuE2
  • Covering a recording via SheetSage2 audio-to-ABC
  • Editing a score
  • Lyrics with melody preservation

Example prompts

  • “/yue2-music”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Work from a project directory, never inside this skill folder. in commands below is this skill's directory.
  2. Create .venv-yue2 in the project and install the YuE2 runtime from the official GitHub repository source.
  3. Create .venv-sheetsage2 separately (dependency pins differ) and download the SheetSage2 snapshot to models/SheetSage2.
  4. Record every model revision you download.
  5. Run on the supported baseline: one request at a time, BF16-capable NVIDIA GPU with 24 GB VRAM, default YuE2 settings. On Apple Silicon…
  6. Scripts default to Hub model IDs; see each script's --help for local snapshot and revision flags. Use a fresh output directory per run.

What it can do on your machine

Read from SKILL.md and the folder at commit 2f25ced. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yue2 Music loads about 2.3k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 53 tokens; SKILL.md has 1,064 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from sammcj/agentic-coding at commit 2f25ced, republished under its Apache-2.0 licence (© sammcj). 1,064 words, ~2,280 tokens.

Download SKILL.mdSave it as .claude/skills/yue2-music/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.
name
yue2-music
description
Use when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening comparison of YuE2 output
disable-model-invocation
true

YuE2 Music

Turn a musical request into a reproducible song and an audible comparison. Retain the original song and its plan before changing anything.

Choose the workflow

  • 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 and correct ABC -> strip chords -> YuE2 melody
  • Cover an ABC melody: inspect or convert native ABC -> strip chords -> YuE2 melody
  • Change harmony, instruments, tempo, structure or lyrics: copy the full plan -> edit ABC or text -> regenerate
  • Agentic editing: export plan and baseline -> bounded editing agent -> check invariants -> render -> compare
  • Analyse continuous musical features: MERT2, see models-and-setup.md

Set up

Read models-and-setup.md for model IDs, install pins and licences.

  1. Work from a project directory, never inside this skill folder. <skill> in commands below is this skill's directory.
  2. Create .venv-yue2 in the project and install the YuE2 runtime from the official GitHub repository source.
  3. Create .venv-sheetsage2 separately (dependency pins differ) and download the SheetSage2 snapshot to models/SheetSage2.
  4. Record every model revision you download.
  5. Run on the supported baseline: one request at a time, BF16-capable NVIDIA GPU with 24 GB VRAM, default YuE2 settings. On Apple Silicon follow the MPS section of models-and-setup.md; scripts auto-detect the device.
  6. Scripts default to Hub model IDs; see each script's --help for local snapshot and revision flags. Use a fresh output directory per run.

Generate and retain the plan

Copy assets/prompt.json to requests/<id>.json and edit it. Put genre, instruments, vocal character, language and tempo in style; put section tags and the actual words in lyrics. Keep implementation notes out of lyrics.

bash
.venv-yue2/bin/python <skill>/scripts/run_yue2.py generate --request requests/song.json --output outputs/pop
.venv-yue2/bin/python <skill>/scripts/run_yue2.py all-modes --request requests/song.json --output outputs/modes
.venv-yue2/bin/python <skill>/scripts/run_yue2.py plan --request requests/song.json --output outputs/plan

Inspect result.json, truncation, score.abc, request.json and audio. The helper saves native artefacts including exact tokens and latent.npy; keep them. Preserve every requested mode and every failure. A playable file does not establish musical quality.

Read generation-and-covers.md for the Python interface, exact plan continuation, CFG, sampling and cached decoding. For a niche or extreme genre, or when a result sounds like the mainstream version of what was asked, apply its "Steer away from generic renditions" section before changing the prompt again.

Cover a recording

  1. Transcribe in the SheetSage2 environment. Select the vocal melody or the full lead melody including instrumental passages.
  2. Inspect warnings. Correct missed notes, meter or key before attributing errors to YuE2. Preserve source audio and raw transcription.
  3. Export chord-free ABC. When dropping a part, select the retained voice explicitly; stripping chords alone should preserve both melodic voices and their rests.
  4. Render with cot="melody", target style and suitable lyrics. To retain the original harmony as well, transcribe in full and use cot="full".
bash
.venv-sheetsage2/bin/python <skill>/scripts/transcribe.py reference.wav --task melody-full --output outputs/transcription
python3 <skill>/scripts/abc_tools.py strip-chords outputs/transcription/score.abc outputs/cover.abc

# The request supplies target style and lyrics.
.venv-yue2/bin/python <skill>/scripts/run_yue2.py generate --request requests/cover.json --cot melody \
  --abc-file outputs/cover.abc --output outputs/cover-song

Edit or delegate an edit

Read editing-workflows.md and abc-editing.md before changing a score. Create a task per step below, each with its completion criterion, then work them to completion.

  1. Render a baseline from the full plan. Freeze its directory.

  2. Define invariants: exact pitches; pitch plus rhythm; contour only; or bounded melodic adaptation. Name the voices, passages, lyrics, instruments, tempo, meter and structure covered.

  3. Delegate when possible: fill in the edit brief and give a score-editing agent the raw ABC, prompt, lyrics and requested change. Request a new ABC, revised style or lyrics as needed, and an edit manifest. Give a separate reviewer the before/after artefacts and constraints. Without delegation, perform each stage yourself. Keep model generation sequential per GPU.

  4. Check musical events, not character strings: ties, accidentals and compressed rests matter.

    bash
    python3 <skill>/scripts/abc_tools.py inspect edits/jazz.abc
    python3 <skill>/scripts/abc_tools.py compare outputs/plan/score.abc edits/jazz.abc --voices Vocal
    .venv-yue2/bin/python <skill>/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 fails on intentional rhythm changes; audit the permitted differences from its report and label the result accordingly.

  5. Regenerate after changing style, lyrics or ABC. Old acoustic latents can be decoded again but do not contain a musical or lyric edit.

  6. Compare full songs and short passages around the edit. Revise when the requested effect fails. Retain each attempt with its actual prompt.

For lyric translation, follow the syllable mapping steps in abc-editing.md and keep the sidecar. Use ASR/PER and listening as separate evidence.

Show full SKILL.md (385 more words)Show less

Deliver an audible result

Read listening-and-evaluation.md.

bash
python3 <skill>/scripts/listen.py outputs/pop outputs/jazz --output outputs/comparison

This builds a local HTML player with each score engraved (abcjs, as on the YuE2 demo page); notes turn red as the recording plays. Nothing is uploaded; the only fetch is the pinned abcjs build, avoided with --abcjs <file> or --no-notation. Return playable audio, full prompt and lyrics, before/after ABC, invariant checks and requested evaluations. Keep model and decoder identity and failures visible. Deliver edit manifests and comparison reports alongside the page.

Gotchas

  • Public MERT feature tensors are not YuE2 codec tokens. YuE2 has no audio-reference, phoneme-alignment or local-inpainting argument; condition through style, lyrics and ABC only.
  • YuE2-Vae is for listening. YuE2-Vae-legacy is for reproducing the supplied benchmark protocol. Keep decoded files separate; the name "legacy" says nothing about which is newer or better.
  • On OOM, free allocations or move to suitable hardware and report the change. Shortening the song or lowering inference settings without saying so hides the failure.
  • Song length follows the planned score, not the prompt. "Short song" in style or few lyric lines still yields a 4-6 minute plan padded with interlude until the token cap. To control length, run plan, trim score.abc to the wanted bars (abc_tools.py inspect reports nominal seconds), end on a held note so the song does not stop mid-riff, and regenerate with --abc-file.
  • cfg_scale defaults to 1.0 in full and melody (1.01 in off), which is guidance off: the style string conditions the semantic tokens once and nothing amplifies it. A genre label alone yields its most common form. Raise cfg_scale, add negative_style, and write the score yourself; see generation-and-covers.md.
  • run_yue2.py has no resume; after an interrupted run, rerun into a fresh directory. The upstream yue2 --resume flag reuses a completed matching result only.
  • Keep an edited score connected through --abc-file or request abc_path. A request with abc: null and no file generates a fresh plan and discards the edit.
  • Load unchanged plans with SymbolicPlan.load; submit modified ABC as a new input.
  • cot="melody" does not strip chord symbols; run abc_tools.py strip-chords first.
  • Melody conditioning supplies a symbolic melody. It does not preserve the source singer's identity or waveform.
  • There is no phonemes request field. The syllable sidecar is bookkeeping, not acoustic alignment.
  • An ABC check or SongBench score does not show exact note realisation, instrument removal or sample-accurate preservation. Listen.

© sammcj, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 19 other files (scripts, references, assets) in Skills/yue2-music of sammcj/agentic-coding.

  • SKILL.md
  • .gitignore
  • CHANGELOG.md
  • CLAUDE.md
  • LICENSE
  • assets/edit-brief.md
  • assets/mps-performance.patch
  • assets/negative-style.patch
  • assets/prompt.json
  • references/abc-editing.md
  • references/editing-workflows.md
  • references/generation-and-covers.md
  • references/listening-and-evaluation.md
  • references/models-and-setup.md
  • scripts/abc_tools.py
  • scripts/common.py
  • scripts/listen.py
  • scripts/run_yue2.py
  • … and 2 more

Open the folder on GitHubat commit 2f25ced

Compare with similar skills

Yue2 Music next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yue2 Music compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yue2 Music this skillsammcj/agentic-coding162—~2.3kAutomated safety check: PassApache-2.0
MiniMax Music Generationbytedance/deer-flow84k—~717Automated safety check: PassMIT
Music Generateruvnet/ruflo74k—~991Automated safety check: PassMIT
Music Generation Studiosickn33/agentic-awesome-skills47k1 repos~3.1kAutomated safety check: PassMIT-0
Music Generation0xsline/OpenChatCut2.2k—~1.1kAutomated safety check: PassAGPL-3.0
Generatealirezarezvani/claude-skills28k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • MiniMax Music Generation

    bytedance/deer-flow

    Generates songs, jingles or instrumental tracks as MP3 files from a style prompt and optional lyrics through the MiniMax music API.

    84k GitHub stars~717 tokensUpdated today
    Media & CreativeAuto-check passed
  • Music Generate

    ruvnet/ruflo

    Generate a new song from a creative brief (genre, mood, language, BPM, theme) via the cogmusic MCP createproduction tool

    74k GitHub stars~991 tokensUpdated yesterday
    Auto-check passed
  • Music Generation Studio

    sickn33/agentic-awesome-skills

    Install and use the official AI Music Generator package, pinned by digest, for paid hosted work on the Beatra service.

    47k GitHub starsUsed in 1 repo~3.1k tokens
    Media & CreativeAuto-check passed
  • Music Generation

    0xsline/OpenChatCut

    Generates instrumentals, songs, soundtracks and covers through Mureka, MiniMax, Atlas Cloud or Sonilo using the `submit_music` tool.

    2.2k GitHub stars~1.1k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed
  • Generate

    alirezarezvani/claude-skills

    Generate Playwright tests. An agent skill from alirezarezvani/claude-skills.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    Testing & QAAuto-check passed
  • Music Video Subtitle Generator

    vllm-project/vllm-omni

    Plan, write, audit, or produce music videos with coordinated music, imagery, camera motion, optional performance, and lyric typography.

    7.1k GitHub stars~1.1k tokensUpdated today
    Media & CreativeAuto-check passed

More from sammcj/agentic-coding

All 64 skills in this repo
  • Bento Slides

    sammcj/agentic-coding

    A skill your agent uses when creating or editing Bento (.bento.html) slide decks, including any request for a single-file HTML slide deck.

    162 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Idrive Backup

    sammcj/agentic-coding

    A skill your agent uses whenever the user wants you to manage, discuss or diagnose iDrive Backup configuration on macOS

    162 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check: notes
  • Piper Tts Training

    sammcj/agentic-coding

    Train custom TTS voices for Piper (ONNX format) using fine-tuning or from-scratch approaches.

    162 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • PPTX To Md

    sammcj/agentic-coding

    Convert a PPTX slide deck into per-slide markdown that preserves both the verbatim text and the meaning of embedded screenshots, diagrams and charts in their original layout positions.

    162 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Creator Primer

    sammcj/agentic-coding

    You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill.

    162 GitHub stars~9.8k tokensUpdated 2 days ago
    Auto-check passed
  • Deferred Task Execution

    sammcj/agentic-coding

    Delays execution of a task until a specified time or after a duration.

    162 GitHub stars~642 tokensUpdated 2 days ago
    Auto-check: notes

Questions about Yue2 Music

What does Yue2 Music do?

A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…. Yue2 Music is an agent skill from sammcj/agentic-coding.

When should I use Yue2 Music?

Yue2 Music fits situations like: generating songs with YuE2; covering a recording via SheetSage2 audio-to-ABC; editing a score; lyrics with melody preservation.

How do I install Yue2 Music in Claude Code?

Run `npx skills add sammcj/agentic-coding --skill yue2-music -a claude-code`. Or copy the skill folder (Skills/yue2-music in sammcj/agentic-coding) into .claude/skills/yue2-music in your project. Claude Code loads it when a task matches its description.

How do I install Yue2 Music in Codex?

Run `npx skills add sammcj/agentic-coding --skill yue2-music -a codex`. Or copy the skill folder (Skills/yue2-music in sammcj/agentic-coding) into .agents/skills/yue2-music in your project. Codex loads it when a task matches its description.

Can I use Yue2 Music in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sammcj/agentic-coding --skill yue2-music -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yue2-music, .gemini/skills/yue2-music, .github/skills/yue2-music and .opencode/skills/yue2-music in your project.

What does Yue2 Music need to run?

Going by SKILL.md and its folder, Yue2 Music needs Python for the scripts in its folder and the command-line tools its instructions call (python and python3). Our summary lists: Python 3.

Does Yue2 Music access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yue2 Music safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Yue2 Music use?

Yue2 Music is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yue2 Music use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Yue2 Music?

Skills that share tags, products or a category with Yue2 Music: MiniMax Music Generation (bytedance/deer-flow, 84k stars), Music Generate (ruvnet/ruflo, 74k stars), Music Generation Studio (sickn33/agentic-awesome-skills, 47k stars) and Music Generation (0xsline/OpenChatCut, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yue2 Music?

sammcj (a GitHub user) maintains it in sammcj/agentic-coding, which has 162 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 9, 2026.

Source: sammcj/agentic-coding on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.