yue2-music

yue2-music is a skill for Claude Code from sammcj/agentic-coding. It costs 49 tokens per session (2,102 once invoked), scanned A, original, Apache-2.0.

A music-making workflow for YuE2, a song-generation system, with optional ABC notation—a text format for melodies and chords—and SheetSage2, which turns recordings into that notation.

In plain words
What is it for?
It helps generate songs, make covers from recordings or melodies, edit lyrics and musical arrangements, and produce repeatable listening comparisons.
Why use it?
It keeps the original plan and song available while changes are made, so edits to melody, harmony, lyrics, or tempo can be repeated and compared.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps generate songs, make covers from recordings or melodies, edit lyrics and musical arrangements, and produce repeatable listening comparisons.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/yue2-music
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sammcj/agentic-coding --skill yue2-music
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yue2-music

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/yue2-music/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/yue2-music)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/yue2-music"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/yue2-music/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yue2-music

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/yue2-music"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/yue2-music.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.02102
Opus 5.5 $0.00020 $0.00841
Sonnet 5.5 $0.00010 $0.00420
Haiku 4.5 $0.00005 $0.00210

Measured 2mo ago against content hash 03087c8bafb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yue2-music scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/abc_tools.py, scripts/common.py, scripts/listen.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/yue2-music/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 109 lines · 49 tokens per session scan A 03087c8bafb4

Subscribe to this mod's changes

yue2-music is a skill published in the GitHub repository sammcj/agentic-coding (174 stars, last pushed 3d ago), licensed Apache-2.0. It adds 49 tokens to every session and 2,102 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

yue2-music compared with skills from other repositories

yue2-music next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yue2-musicsammcj/agentic-codingSkill1743d agoApache-2.0A49Claude Code
agentproto-llm-endpointagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
ap-workflowsagentproto/tsSkill11todayApache-2.0A85Claude Code, Codex
agentproto-appsagentproto/tsSkill11todayApache-2.0A171Claude Code, Codex
ap-cronagentproto/tsSkill11todayApache-2.0A70Claude Code, Codex
ap-lifecycleagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
pb-new-agent-sessionagentproto/tsSkill11todayApache-2.0A68Claude Code, Codex