midi

midi is a skill for Claude Code, Codex from mazumba/opencode-dockerized. It costs 45 tokens per session (509 once invoked), scanned A, original, MIT.

A toolkit for creating, reading, transforming, and analysing MIDI and audio files with Python. MIDI stores musical notes and timing rather than recorded sound.

In plain words
What is it for?
Use it to edit or generate MIDI, analyse keys, chords, pitch, tempo, or spectra, and render MIDI to WAV or MP3.
Why use it?
It provides task-specific Python libraries and file-based workflows for environments without a sound card or notation display.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to edit or generate MIDI, analyse keys, chords, pitch, tempo, or spectra, and render MIDI to WAV or MP3.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mazumba/opencode-dockerized/midi
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 mazumba/opencode-dockerized --skill midi
Clone the repo
git clone --depth 1 https://github.com/mazumba/opencode-dockerized

Made for: Claude Code, Codex.

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 midi

README.md
[![agentmods](https://agentmods.dev/badge/skills/mazumba/opencode-dockerized/midi/github.svg)](https://agentmods.dev/skills/mazumba/opencode-dockerized/midi)
Your own site
<a href="https://agentmods.dev/skills/mazumba/opencode-dockerized/midi"><img src="https://agentmods.dev/badge/skills/mazumba/opencode-dockerized/midi/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 midi

Your own site · 80×15
<a href="https://agentmods.dev/skills/mazumba/opencode-dockerized/midi"><img src="https://agentmods.dev/badge/skills/mazumba/opencode-dockerized/midi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 509 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.00045 $0.00509
Opus 5.5 $0.00018 $0.00204
Sonnet 5.5 $0.00009 $0.00102
Haiku 4.5 $0.00005 $0.00051

Measured 15d ago against content hash 8f42aee90bb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

midi 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 15d ago.

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.

docker/plugins/midi/midi.skills/midi/SKILL.md · 31 lines

What it actually says

The container is headless: there is no sound card and no notation renderer (no MuseScore or LilyPond). Write results to files.

Choosing a library

Task Library Notes
Raw messages, tempo maps, byte-exact edits mido 1.3 Times are delta ticks. Convert with mido.tick2second.
Notes in seconds: generate, quantise, transpose pretty_midi 0.2 Instrument(program=0..127) takes General MIDI programs. Drums use is_drum=True.
Theory: keys, chords, intervals, MusicXML music21 10 converter.parse("x.mid").analyze("key"). Calling .show() raises an error here. Use .write("musicxml", fp=...), .write("midi", fp=...) or .show("text").
Audio features: pitch, onsets, tempo, spectra librosa 0.11 + soundfile numpy, scipy, pandas and matplotlib are installed. Use matplotlib.use("Agg").

miditoolkit (REMI/tokenisation-style tick data) is also available.

Rendering MIDI to audio

The only General MIDI SoundFont is /usr/share/sounds/sf2/TimGM6mb.sf2 (6 MB, basic quality). default-GM.sf2 points to it.

fluidsynth -ni -F out.wav -r 44100 /usr/share/sounds/sf2/TimGM6mb.sf2 in.mid   # options before the soundfont
ffmpeg -loglevel error -y -i out.wav -q:a 2 out.mp3
  • From Python, pretty_midi.PrettyMIDI(p).fluidsynth(fs=44100) returns a mono NumPy array. Write it with soundfile.write.

Verify by checking that the output is non-empty and has the expected duration: soundfile.info("out.wav").duration, or pm.get_end_time() for MIDI.

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. 15d ago First seen · 31 lines · 45 tokens per session scan A 8f42aee90bb1

Subscribe to this mod's changes

midi is a skill published in the GitHub repository mazumba/opencode-dockerized (6 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 509 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-10-24.

Related

midi compared with skills from other repositories

midi next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
midimazumba/opencode-dockerizedSkill62d agoMITA45Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code