dsh-skill-musicbee
Manifest validMusicBee playlist and library toolkit: scan a music library into a JSON index, write ID3/Vorbis/MP4 tags, build validated dsh (3dj) party playlists, and rewrite .mbp playlist files. Windows and a loca
dsh-skill-musicbee
English | 中文
A DeepSeek Harness (dsh) plugin that ships the
musicbee skill: a local toolkit for MusicBee libraries and playlists. It is a skill plugin — it
registers one agent skill (and its scripts) into the harness, so the agent picks it up like any other
skill and drives MusicBee through the bundled scripts.
No network access, no models, no GPU. It reads and writes file tags and playlist files, and never touches audio data.
What the skill does
| Capability | Command | Writes files |
|---|---|---|
| Scan a music library into a JSON index (title/artist/album/genre/year/BPM/duration) | mb-tools.cmd scan | JSON only |
| Export an index as CSV | mb-tools.cmd export | — |
| Write tags (title/artist/album/track), batch or single file | mb-tools.cmd tag | ID3 / Vorbis / MP4 tags |
Build a whole dance-party playlist in the 3dj group with rule validation | party_build.py <config.json> | .mbp + share write-up .md |
| Rewrite / remap / prune playlist paths after a library reshuffle | mbp-remap.ps1 | .mbp (with backup) |
| Restart MusicBee so playlist files are re-read | restart-musicbee.cmd | — |
Make MusicBee re-read edited tags (Tools → Rescan, automated) | refresh-musicbee.cmd -Dir <dir> | — |
The skill body documents the verified internals: the .mbp binary format (52-byte prefix, int32
count, per-track 1-byte length + UTF-8 absolute path), why a restart is required for playlist files
while tags need Tools → Rescan, and the "date granularity" gotcha that makes a same-day rewrite
invisible to MusicBee.
Requirements
- Windows — the scripts are
.cmd/ PowerShell and drive a local MusicBee install. - MusicBee installed (portable builds are fine;
-MusicBeeExe <path>overrides detection). - Python 3.11+ with
mutagenfor the index / tag / party-build tools:scripts\bootstrap.ps1creates a local.venv, or setMUSICBEE_PYto an existing interpreter.
Install
dsh plugin --profile web add @chenhao6682108/dsh-skill-musicbee # npm (once published)
dsh plugin --profile web add github:chenhao6682108/dsh-skill-musicbee # straight from the repo
dsh plugin --profile web add . # from a local checkout
Restart dsh web. The skill catalog now lists musicbee; ask the agent for a library scan or a
party playlist and it loads the skill itself.
Uninstall with dsh plugin --profile web remove @chenhao6682108/dsh-skill-musicbee.
First run
Do not guess paths — ask the machine:
scripts\mb-doctor.cmd :: MusicBee exe, library, Playlists, Python
scripts\mb-doctor.cmd -StyleRoot "D:\music\1blues" :: also lists the style subfolders
scripts\mb-doctor.cmd -Json :: machine-readable
It reads <ENV_LibPath> out of %APPDATA%\MusicBee\MusicBee3Settings.ini, so the library and the
Playlists folder come out right with no configuration, and every line says which party-config field
it feeds (playlists_dir, library_root, python → MUSICBEE_PY).
Then copy references/party-2026-11-20-final.json, change only the path fields and library_root,
and keep the rule fields (req, ending, body, share, long_sec, no_repeat_style,
ballroom_gap_max) as they are. party_build.py -h lists every accepted field, and each failure
message names the exact next command to run. playlists_dir and prefix_mbp are optional in the
config: party_build.py reads MusicBee's own Playlists folder from <ENV_LibPath> and picks a
same-library .mbp for the 52-byte header, so only library_root (the folder whose subfolders are the
style names) has to be written by hand. A same-name .mbp (or .md) is overwritten in place —
the run prints a line first — so keep a copy of Playlists if you want to keep old versions.
How it works
lib/index.js is a dependency-free Cordis function plugin. On apply() it reads the packaged
skills/musicbee/SKILL.md, parses its frontmatter, and calls ctx.skills.register() with a
directory resource base pointing at the package — so the scripts/… paths in the body resolve to the
installed copy. cordis.patch.yml is what makes dsh plugin add mount the package as a bundle.
Layout
package.json dsh.bundle.patch + engines.dsh
cordis.patch.yml inserts the plugin into the profile layer stack
lib/index.js registers the bundled skill (no dependencies, no build)
skills/musicbee/
SKILL.md the skill body the agent loads
scripts/ mb-tools (scan/export/tag), party_build.py, mbp-remap.ps1,
restart/refresh helpers, reference JSON configs
Notes
- Paths inside the shipped SKILL.md and the two reference configs are placeholders
(
C:\path\to\…,<skills dir>,<library root>); substitute your own locations. - A profile-level copy of the same skill under
~/.dsh/skillsis shadowed by this plugin while it is installed (plugin-provided skills outrank user files) — remove one of the two if you want the other. - Pairs with
@chenhao6682108/dsh-skill-netease-playlistfor the "download a NetEase playlist → tag it → publish it into MusicBee" loop.
License
MIT
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 58/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 13.3k
↓ 275.8k/wk
MIT
TypeScript
Nov 23, 2026
dsh plugin --profile web add dshmarketby kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 12k
MIT
JavaScript
Nov 18, 2026
dsh plugin --profile web add dsh-purge-communityby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 10.7k
↓ 17.5k/wk
MIT
TypeScript
Nov 23, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 8.8k
NOASSERTION
Python
Nov 24, 2026
dsh plugin --profile web add treg-dshby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injector