claude-music
CLAUDE.md65 starsChanged 4 months agoMITView on GitHub
AI music production skill for Claude Code, powered by ACE-Step 1.5.
In this repository12 other files it gives its agents.
- claude-music-analyzeSkill
- claude-music-composeSkill
- claude-music-coverSkill
- claude-music-enhanceSkill
- claude-music-exportSkill
- claude-music-generateSkill
- claude-music-librarySkill
- claude-music-loraSkill
- claude-music-randomSkill
- claude-music-repaintSkill
- claude-musicSkill
- claude-music-webSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 56
Create skills/claude-music-<name>/SKILL.md with proper frontmatter
- Very specific: line 57
Add routing rule to skills/claude-music/SKILL.md (Command Routing section)
- Distinctive: line 58
Add to Quick Reference table in orchestrator
- Very specific: line 59
Run bash install.sh to create symlink
- Very specific: line 64
Add to Reference Files table in orchestrator SKILL.md
- Very specific: line 68
All generation goes through music_engine.py — 6 subcommands: generate, cover, repaint, extract, lego, complete
- Very specific: line 94
No hardcoded personal paths — everything reads from config.json
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-music
AI music production skill for Claude Code, powered by ACE-Step 1.5.
Project Structure
claude-music/
├── install.sh # Interactive installer (handles ACE-Step + models + config)
├── uninstall.sh # Removes symlinks only
├── skills/
│ ├── claude-music/ # Main orchestrator
│ │ ├── SKILL.md # Command routing, safety rules, VRAM tiers
│ │ ├── config.json # ACE-Step path + generation defaults
│ │ ├── scripts/ # 7 executable scripts (bash + python)
│ │ └── references/ # 7 on-demand knowledge docs
│ ├── claude-music-generate/ # text2music
│ ├── claude-music-cover/ # style transfer
│ ├── claude-music-repaint/ # section editing
│ ├── claude-music-compose/ # songwriting guide
│ ├── claude-music-export/ # platform export
│ ├── claude-music-analyze/ # BPM/key/loudness
│ ├── claude-music-enhance/ # post-processing
│ ├── claude-music-random/ # quick random gen
│ ├── claude-music-library/ # output management
│ └── claude-music-lora/ # LoRA trainingHow It Works
- Direct Python API — Scripts import
acestepdirectly viasys.path.insert, invoked withuv runfrom the ACE-Step directory. No REST API server needed. - Symlink installation —
install.shcreates symlinks from~/.claude/skills/claude-music*to this repo'sskills/directory. Edit here, changes are live. - JSON output — All scripts output structured JSON to stdout. Progress/debug goes to stderr. Claude parses the JSON for file paths, seeds, and timing.
- Config-driven —
config.jsonis the single source of truth for the ACE-Step path. All scripts read from it; no hardcoded paths in code. - Output naming —
generate_music()writes its own UUID filenames, sorename_outputs()runs after generation in eachcmd_*and renames in place toslug_date_index_seed.ext. It never overwrites (appends-2), keeps meaningful stems likevocals, and logs-and-continues if a rename fails.slugify()is also the basename sanitizer: only[a-z0-9-]survives a caption. Disable with--naming uuid. - Settings precedence — CLI flag >
config.json> quality preset.build_parser()seeds--quality,--format,--languageand--output-dirfrom config;resolve_quality()applies the same chain to the preset-owned keys. Preset-owned keys (model,lm_model,batch_size,thinking) are omitted from the shipped config on purpose — setting one pins it across every preset. - Web dashboard -
skills/claude-music/webapp/holds a stdlib-only Python server (server.py) plus a single-file frontend (index.html). It shells out tomusic_engine.py --progress(NDJSON progress events on stderr) and stores per-track metadata sidecars in<output_dir>/.claude-music/meta/for ratings and generate-similar. The server must stay stdlib-only and bind127.0.0.1only.
Key Files
| File | Purpose |
skills/claude-music/scripts/music_engine.py | Core engine — all 6 ACE-Step task types via argparse subcommands |
skills/claude-music/webapp/server.py | Web dashboard server (stdlib only, loopback only) |
skills/claude-music/scripts/music_web.sh | Dashboard launcher (starts server, opens browser) |
skills/claude-music/scripts/music_engine.sh | Bash wrapper — env setup, VRAM check, uv run invocation |
skills/claude-music/scripts/music_export.sh | FFmpeg platform export (Spotify/YouTube/TikTok/podcast/CD) |
skills/claude-music/config.json | ACE-Step path + generation defaults (per-machine, untracked; seeded from config.example.json by the installers) |
skills/claude-music/SKILL.md | Orchestrator — routes /music X to sub-skills |
Development
Adding a new sub-skill
- Create
skills/claude-music-<name>/SKILL.mdwith proper frontmatter - Add routing rule to
skills/claude-music/SKILL.md(Command Routing section) - Add to Quick Reference table in orchestrator
- Run
bash install.shto create symlink
Adding a new reference doc
- Create
skills/claude-music/references/<name>.md - Add to Reference Files table in orchestrator SKILL.md
Modifying the Python engine
- All generation goes through
music_engine.py— 6 subcommands: generate, cover, repaint, extract, lego, complete - Quality presets are in
QUALITY_PRESETSdict at top of file - ACE-Step params map to
GenerationParamsdataclass — seereferences/parameters.md - Cover mode uses
src_audio+cover_noise_strength(NOTreference_audio+audio_cover_strength)
Testing
# Syntax check all scripts
bash -n skills/claude-music/scripts/*.sh install.sh uninstall.sh
python3 -c "import ast; ast.parse(open('skills/claude-music/scripts/music_engine.py').read())"
# Check deps
bash skills/claude-music/scripts/check_deps.sh | python3 -m json.tool
# GPU detection
bash skills/claude-music/scripts/detect_gpu.sh | python3 -m json.tool
# Generate test (30s draft)
bash skills/claude-music/scripts/music_engine.sh --quality draft generate \
--caption "test pop song" --instrumental --duration 30Security Notes
- No
eval()in any script — replaced with array execution - No hardcoded personal paths — everything reads from
config.json ffmpeg -n(no-overwrite) on all export commands- Basename sanitization on user-provided filenames
- Caption capped at 512 chars, lyrics at 4096 chars (ACE-Step limits)
.claude/directory gitignored (user-specific settings)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

