musescore
What it does
This skill lets an AI agent work with MuseScore files, which hold written music. It is for musicians, teachers, and arrangers who need a score in a new key, separate parts, or an exported file.
When to use it
- ✓When you want a song moved to a different key for a singer or instrument.
- ✓When you need separate sheet music for each instrument from one full score.
- ✓When you want a score exported as a PDF, MP3, MIDI, or image file.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/musescore/agent-harness/cli_anything/musescore/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to transpose my song up two semitones and export the score as a PDF.”
5 new skills a week. 1 minute to read.
How it works
The agent passes your score to the MuseScore 4 engine with a command such as transpose or export, and saves the result as a new file.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
MuseScore CLI Skill
Overview
Wraps MuseScore 4's mscore backend for music notation tasks: transposition, export to multiple formats (PDF, PNG, MP3, MIDI, MusicXML, Braille), part extraction, instrument management, and score analysis.
Commands
Project Management
cli-anything-musescore --json project info -i score.mscz
cli-anything-musescore --json project open -i score.mscz
Transposition
# Transpose to a target key
cli-anything-musescore --json transpose by-key -i score.mscz -o out.mscz --target-key "C major" --direction closest
# Transpose by semitones
cli-anything-musescore --json transpose by-interval -i score.mscz -o out.mscz --semitones 3
# Diatonic transposition
cli-anything-musescore --json transpose diatonic -i score.mscz -o out.mscz --steps 2
Part Extraction
cli-anything-musescore --json parts list -i score.mscz
cli-anything-musescore --json parts extract -i score.mscz -o piano.mscz --part "Piano"
cli-anything-musescore --json parts generate -i score.mscz -d ./parts/
Export
cli-anything-musescore --json export pdf -i score.mscz -o score.pdf
cli-anything-musescore --json export mp3 -i score.mscz -o score.mp3 --bitrate 192
cli-anything-musescore --json export png -i score.mscz -o score.png --dpi 300
cli-anything-musescore --json export midi -i score.mscz -o score.mid
cli-anything-musescore --json export musicxml -i score.mscz -o score.musicxml
cli-anything-musescore --json export braille -i score.mscz -o score.brf
cli-anything-musescore --json export batch -i score.mscz -o score.pdf -o score.mid
Instrument Management
cli-anything-musescore --json instruments list -i score.mscz
cli-anything-musescore --json instruments add -i score.mscz -o out.mscz --id keyboard.piano --name "Piano"
cli-anything-musescore --json instruments remove -i score.mscz -o out.mscz --name "Violin"
Score Analysis
cli-anything-musescore --json media probe -i score.mscz
cli-anything-musescore --json media stats -i score.mscz
cli-anything-musescore --json media diff --reference a.mscz --compare b.mscz
Session
cli-anything-musescore --json session status
cli-anything-musescore --json session undo
cli-anything-musescore --json session redo
cli-anything-musescore --json session history
Supported Input Formats
.mscz(MuseScore native).mxl(compressed MusicXML).musicxml/.xml(MusicXML).mid/.midi(MIDI)
Key Names for Transposition
Major: Cb, Gb, Db, Ab, Eb, Bb, F, C, G, D, A, E, B, F#, C# Minor: Ab, Eb, Bb, F, C, G, D, A, E, B, F#, C#, G#, D#, A#
Accepted formats: "C", "C major", "Am", "A minor", "Db major", "F# minor"
Agent Guidance
- Always use
--jsonflag for machine-readable output - Verify exports with
export verifyafter rendering - Use
media probeto inspect an unknown score before operating on it - Transposition requires both
-i(input) and-o(output) - Part names are case-insensitive for
parts extract
FAQ
Do I need MuseScore installed?
Yes. The skill works with the MuseScore 4 program, so it must be installed on your computer.
Can it make a separate part for each instrument?
Yes. A parts command can list the instruments and create a file for each one.
Will it overwrite my original score?
The commands write to a separate output file you name, so you can keep the original.
Details
Original description by the author
CLI for music notation — transpose, export PDF/audio/MIDI, extract parts, manage instruments
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3226
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
openai-whisper-api
394kLets your agent turn an audio recording into text using OpenAI's transcription service, with options for speaker labels and output files.
openai-whisper
394kHelps your agent transcribe audio on your own computer with the Whisper command, with no API key and no cloud upload needed.
sag
394kHelps your agent read text aloud with ElevenLabs voices and play the result on your computer, with tips for pronunciation and expression.