Skip to content
Back to skills

Read Chords

ASecurity

This skill should be used only when the user asks for precision mode, or for the chords of a recording read from its transcription MIDI, e.g. "read the chords of song.mp3 from this MIDI", "precision mode for this track". An agent reads the transcribed notes, which costs tens of thousands of tokens a song. It needs a transcription MIDI the user already has. For the chords of audio alone, use `extract-chords`.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgo

Works with

  • claude code

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add zeikar/chordotomy --skill read-chords --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Read Chords?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Read Chords
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zeikar-read-chords/badge)](https://www.skillsdirectory.com/skills/zeikar-read-chords)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: read-chords
description: This skill should be used only when the user asks for precision mode, or for the chords of a recording read from its transcription MIDI, e.g. "read the chords of song.mp3 from this MIDI", "precision mode for this track". An agent reads the transcribed notes, which costs tens of thousands of tokens a song. It needs a transcription MIDI the user already has. For the chords of audio alone, use `extract-chords`.
---

# Read a recording's chords from its transcription

The chordotomy analyzer gives a recording's beats. Here an agent reads the chords from a transcription MIDI of the same recording, on those beats, and `chordotomy apply` checks them and writes a timeline whose key, numerals and roles come from the same harmony code as `analyze`. The reader is a model, so this costs tokens and can be wrong. Check it by ear.

- The audio stays on the machine.
- The transcribed notes, the melody included, reach the model as text.
- The MIDI is an input only. No MIDI or notation is written.
- `notes` and `apply` run no model, and no chordotomy command calls a language model.

**Plugin root:** `${CLAUDE_PLUGIN_ROOT}`. If that is a directory with a `pyproject.toml` in it, this skill runs from the chordotomy Claude Code plugin, and that directory is the plugin root. Otherwise (empty, still a `${…}` placeholder, or no `pyproject.toml` there) there is no plugin root. `references/commands.md` cannot hold the placeholder, so it is handed over here: carry the plugin root, or its absence, into every step. `<skill dir>` below is this skill's own directory.

## Steps before the reader

All the commands and their error handling are in **`references/commands.md`**.

1. **The command.** Choose the chordotomy command and run its availability check. Stop if it fails.
2. **The inputs.** The MIDI is the one the user names. With none, say what is needed (`references/commands.md`, The MIDI), offer `extract-chords`, and stop, before any `analyze`. Then find the base timeline. Tell the user in one line to check that the MIDI was transcribed from the very audio file the base analyzed, untrimmed. Given only a MIDI, ask which timeline or recording, and wait. Never reuse an earlier reading: a MIDI given is a reading asked for.
3. **The scratch directory.** Make it, copy the base into it, and settle the destination now.
4. **The notes.** Run `notes` into `reader/notes.txt`. A failure is shown to the user and ends the run.
5. **The cost.** Tell the user in one line the dump's size, that a rough benchmark average is 1,200 tokens per kB (with a short song the agent's own start counts for more: a 17.2 kB dump took about 60,000 in all), and that a refused reading is read once more at the same cost. Then go on.

## The reader

Dispatch the reader with this prompt and nothing else. Add nothing of the request, the title, the key or the analyzer's chords:

```
Brief: <skill dir>/references/reading.md
Notes: <scratch>/reader/notes.txt (<lines> lines, <beats> beats)
Write the spans to: <scratch>/reader/spans.txt
```

Use absolute paths, and the line and beat counts `notes` printed. Dispatch `chordotomy:chord-reader` in the plugin, and `chord-reader` where the agent is defined outside a plugin. Only if neither exists, use a fresh general-purpose agent (never a fork, which would carry this conversation) with the same prompt, given the model opus where the tool takes one. With no subagent at all, you read the notes by `references/reading.md` and write `<scratch>/reader/spans.txt` yourself.

The boundary: a dispatched reader is instructed to open only the brief and the notes file. Its Read tool could open others, and it has the working directory. A reader that is the main session also has the request's context. Claim blindness for neither.

The reader's Read and Write may raise permission prompts, since the scratch directory is outside the working directory.

## After the reader

1. Run `apply` on the copy of the base, with `-o` the destination.
2. Only on `error: <spans>: line N: <reason>`, read once more: the same prompt with the spans path `<scratch>/reader/spans-2.txt`, which does not exist yet (the reader's Write tool will not overwrite a file), plus the line `line N: <reason>` and nothing else. A main-session reader instead writes a corrected `spans-2.txt` itself, once. Then `apply` that file.
3. A second such refusal, or any other error at any point, is shown to the user and ends the run. After the reader has run, also give the user the spans file's path, since the reading is paid for.
4. Relay the reader's reply to the user: the key it read, its unsure spans, and anything else it opened. Then give the written path and one sentence: name this file to select this reading. Hand it to the `extract-chords` skill for the chart or the explanation, or, when that skill is not installed, name the path and the viewer at https://zeikar.dev/chordotomy/.

Files in this skill

  • SKILL.md4.8 KB
  • references/commands.md5.9 KB
  • references/reading.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.