Repository navigation
Development
The repository's rules for people and agents are in AGENTS.md; CLAUDE.md imports it and .github/copilot-instructions.md points to it. Session notes, decisions and the research pass are in ai-docs.
| Path | Holds |
|---|---|
skills/<name>/SKILL.md |
the seven skills, each under 200 lines with a description of at most 700 characters |
skills/<name>/ companions |
RESEARCH.md, CHANGELOG.md, LEARNINGS.md, TESTS.md, MAINTENANCE.md, evergreen.json, evals/evals.json
|
skills/musicwright/scripts/mw.py |
the command-line tool, standard-library Python 3.9+ |
skills/musicwright/comfy_nodes/musicwright_nodes |
custom ComfyUI nodes for repaint, extract and semantic-hint cover (acestep15/ is vendored, MIT, with its LICENSE) |
skills/musicwright/scripts/notation.py |
the ABC, tab, MusicXML and MIDI readers and writers, the built-in synth and the melody hints (new in 0.1.1, standard library) |
skills/musicwright/references/recipes.json, loudness.json
|
the data mw.py reads |
tests/check_skills.py, tests/test_mw.py
|
the checks and the tests |
tests/fixtures/ |
four small synthetic signals, two notation files, a melody-check file and a level plan for the agent eval cases |
scripts/budget.py |
the size budget |
.claude-plugin/plugin.json, marketplace.json
|
the plugin and its one-plugin marketplace |
Run from the repository root before every commit. On a clone of the v0.1.17 tag on 2026-11-06, on Linux with ffmpeg 7.0.2 and no librosa, so six librosa tests were skipped (Windows 11 with ffmpeg 9.0.1 and librosa 1.0.0 ran all 119):
python tests/check_skills.py
python tests/test_mw.py
python scripts/budget.py$ python tests/check_skills.py
ok: 7 skills, companions, manifests, recipes and presets, links and text guards
[exit 0]
$ python tests/test_mw.py
.ssssss................................................................................................................
----------------------------------------------------------------------
Ran 119 tests in <s>s
OK (skipped=6)
[exit 0]
$ python scripts/budget.py
largest description characters (always loaded; spec limit 1,024) 691 green<=700 yellow<=1024 green musicwright-produce
all descriptions characters together (always loaded; 7 skills x 700) 4738 green<=4900 yellow<=6000 green 7 skills, ~1184 tokens
largest SKILL.md tokens (loaded on every use) 2502 green<=2500 yellow<=3500 yellow musicwright-produce
largest reference tokens (loaded on demand; scripts are run, not read) 3492 green<=3500 yellow<=5000 green musicwright-produce/mixing.md
installed skills folder KB 650 green<=400 yellow<=800 yellow
tracked repository KB 2574 green<=2048 yellow<=4096 yellow
budget: YELLOW
[exit 0]
-
check_skills.py(standard library only) checks each skill's frontmatter, description length, line count and companion files, the manifests,recipes.jsonandloudness.json, relative links, and the public-safety guards: no absolute home-folder path, no private network address, no AI attribution line. -
test_mw.pyruns every command on synthetic audio it makes in a temporary folder (and the two notation fixtures), andgenagainst a fake local ComfyUI and ACE-Step server; it uses no network. It skips the audio tests when ffmpeg is missing, unlessMUSICWRIGHT_REQUIRE_FFMPEG=1;MUSICWRIGHT_REQUIRE_LIBROSA=1makes the librosa tests (analyze,transcribe) required. At 0.1.1 it passed on the Linux ffmpeg 7.0.2 build that abortedmixcheckon 44.1 kHz files, so that case was not covered; 0.1.2 adds tests for the fixes (97 tests, from 92; Errors). -
budget.pymeasures what every session loads (the seven descriptions, 4,738 characters together, about 1,184 tokens), the largest SKILL.md and reference, and the installed size. Red fails CI. At 0.1.17 three measures are yellow: the largest SKILL.md (2,502 tokens against 2,500), the installedskills/folder (650 KB against a green limit of 400; 582 KB at 0.1.10; it was 256 KB at 0.1.0, 446 KB at 0.1.1, 450 KB at 0.1.2 and 452 KB at 0.1.3) and the tracked repository (2,574 KB against 2,048). The 0.1.1 CHANGELOG said the shared MAINTENANCE.md "takes the installed skills from 446 KB to 420 KB" whilebudget.pyon that tag printed 446; the 0.1.2 CHANGELOG corrects it (446 to 422 KB when the pointers were added, 450 KB now).
.github/workflows/tests.yml runs on pushes to main and on pull requests:
| Job | Runs |
|---|---|
structure |
Ubuntu, macOS and Windows, each on Python 3.9 and 3.14: check_skills.py, then test_mw.py with ffmpeg required. ffmpeg on Ubuntu is BtbN's static 9.0 build from GitHub, with apt as the fallback; Homebrew on macOS, Chocolatey on Windows |
analyze |
Ubuntu, Python 3.12, with the same static ffmpeg and librosa and soundfile installed: test_mw.py with librosa required, so analyze and transcribe run for real |
budget |
Ubuntu, Python 3.14: budget.py
|
The first push of main (639a18c) failed on Ubuntu's ffmpeg 6.1 (the loop's filter graph) and Homebrew's ffmpeg (no libvorbis). Pull request #1 moved the loop's crossfade into Python and added a fallback to ffmpeg's built-in Vorbis encoder, and main at 62231a9 passed every job on 2026-10-17. Ubuntu used apt's ffmpeg until pull request #11 (between 0.1.1 and 0.1.2), which moved to the static build because apt-get stalled for 20 to 40 minutes several times; release.yml does the same. Dependabot keeps the workflow actions current, weekly.
From AGENTS.md and .github/workflows/release.yml:
- When a packaged file changes, bump the version in
.claude-plugin/plugin.json,VERSIONinmw.pyand the rootCHANGELOG.md. - Push a tag
vX.Y.Z. The release workflow checks the tag againstplugin.json(it fails when they differ), installs ffmpeg, runs the three checks, zipsskills/with the README, LICENSE and SECURITY.md asmusicwright-X.Y.Z.zip, and publishes a GitHub release with generated notes and install instructions.
Twenty tags have been released, v0.1.0 to v0.1.19 (Versions and upgrading). Work goes to main through pull requests, and merged branches are deleted.
Each skill is an evergreen unit. Before editing one, read its evergreen.json: if next_due has passed or contradiction is set, refresh after the task. Every edit to a SKILL.md gets a CHANGELOG entry with its reason. Model names, licences, prices, ComfyUI nodes and loudness numbers change only with a dated source in that skill's RESEARCH.md. A new mw.py command or option gets a test in test_mw.py. Nothing in the repository names a person other than the author, a private project, a machine or a local path.
The examples were produced by a verification program that runs every command a page shows, as the page shows it, against a fresh clone of the release tag in a scratch folder, on Linux and on Windows; the pages copy its output. Each update reruns it against the new version and compares the outputs section by section: for 0.1.1 the comparison found every behaviour change listed on Versions and upgrading, and the Linux run found the mixcheck abort that 0.1.2 fixes. For 0.1.2 it changed only the sections the 0.1.2 CHANGELOG names, the version numbers, the test count and sizes, and the ComfyUI version doctor reports, and the Linux run showed that the padded copy still lowered loudness and rounded duration_s up, which 0.1.3 fixes. For 0.1.3 it changed the pulse and mixcheck sections the 0.1.3 CHANGELOG names, the version numbers and the sizes; a new case measures a 3.5-second 44.1 kHz tone on both builds. For 0.1.7 it covered four releases at once: the version numbers, sizes and test count, the mixcheck true peak and contour fixes, key_margin, key_fit, the pulse threshold row and the new recipe, plus new cases for curve, pulse --threshold adaptive, tasks inside ComfyUI and --no-wait with --collect (those two against a stand-in server in the program).
This wiki describes musicwright 0.1.19 (tag v0.1.19, commit 3211a94) and was last updated on 2026-11-07. The plugin is MIT licensed. Report problems in the issues.
Using it
- Getting started
- Commands
- Recipes and loudness presets
- The project contract and studio
- Workflows
- Errors and edge cases
- FAQ
- Works with
The skills
- musicwright (hub)
- musicwright-generate
- musicwright-compose
- musicwright-produce
- musicwright-game
- musicwright-score
- musicwright-curate
The releases
Contributing
Elsewhere