listening-to-music

listening-to-music is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 251 tokens per session (2,670 once invoked), scanned A, original, MIT.

A workflow for evaluating generated music by rendering audio, measuring its sound, and reading it as sheet music. It can inspect items such as pitch, frequency patterns, harmony, and roughness rather than listening directly.

In plain words
What is it for?
It helps render Strudel or Web Audio pieces, record them in a browser, create spectrograms and scores, and compare changes across versions.
Why use it?
It gives an agent measurable evidence for comparing music versions when the agent cannot hear audio itself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit It helps render Strudel or Web Audio pieces, record them in a browser, create spectrograms and scores, and compare changes across versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/listening-to-music
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 oaustegard/claude-skills --skill listening-to-music
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

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 listening-to-music

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/listening-to-music/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/listening-to-music)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/listening-to-music"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/listening-to-music/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 listening-to-music

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/listening-to-music"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/listening-to-music.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 251 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,670 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.00251 $0.02670
Opus 5.5 $0.00100 $0.01068
Sonnet 5.5 $0.00050 $0.00534
Haiku 4.5 $0.00025 $0.00267

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

Security

Grade A, and why

listening-to-music 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 21d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/clashes.py, scripts/common.mjs, scripts/compare_notes.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

listening-to-music/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Listening to music

Claude hears nothing, but it can render audio in the real engine and measure it. Set up the loop render → look → measure → change one thing → re-render, and keep a table of the numbers per version. A version is better when a number you chose beforehand moves by more than the take-to-take noise, and the spectrogram shows the same thing.

Requirements: Node with playwright and Chromium (preinstalled in Claude Code on the web), Python with librosa soundfile scipy matplotlib pillow, and for sheet music music21 verovio mir_eval cairosvg (pip install --break-system-packages librosa music21 verovio mir_eval cairosvg). The first render installs @strudel/web into ~/.cache/listening-to-music/. All scripts live in scripts/; run them with --help or read the docstring for options.

1. Render

S=/path/to/listening-to-music/scripts
node $S/render_strudel.mjs loop.js --out v1.wav --seconds 40 --warmup 4        # Strudel code
node $S/record_page.mjs page.html --click "#power" --out v1.wav --seconds 40 --warmup 8 \
     --query "station=house" --eval "window.__fm.setSeed(7)"                   # any Web Audio page

Both print peak level and flag clipping. A peak above 1.0 means the listener hears hard clipping; fix levels before judging anything else.

For a before/after comparison, fix the randomness (a seed hook via --eval) so both versions play the same material, and record each version twice.

2. Look

python3 $S/spectrogram.py v1.wav --out v1.png --from-onset --pyin-floor G3 --label v1

Then open v1.png with the image viewer. The top panel is a note-axis CQT spectrogram with the pYIN lead line, and the bottom panel is chroma. Compare it with the reference picture or the previous version side by side. The .npz next to it holds the numbers for step 3.

3. Measure

Question Tool Reads
Do simultaneous notes rub? (discordant chords) render_strudel.mjs --events → clashes.py minor 2nd/9th overlap per cycle, by layer pair; worst moments
Do they rub in the recording? rubs.py, --pair for replicated takes share of tonal peak energy in semitone/minor-9th pairs
Is it rougher or smoother overall? roughness.py, --pair for replicated takes Sethares roughness median/p90
Does it match a reference image? reference.py ticks/decode/compare per-semitone profile, melody agreement, overtone offsets, chroma agreement
Is the melody audible over the mix? spectrogram.py pYIN voiced %, reference.py compare melody %

Read the full file on GitHub · 149 lines

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. 21d ago First seen · 149 lines · 251 tokens per session scan A 9958c55fc3f1

Subscribe to this mod's changes

listening-to-music is a skill published in the GitHub repository oaustegard/claude-skills (153 stars, last pushed yesterday), licensed MIT. It adds 251 tokens to every session and 2,670 once invoked, about $0.0010 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-09-26.

Related

Other skills, from other repositories

superdesign

Design or redesign frontend UI, presentations, and graphics on the Superdesign canvas with a choice of leading AI models. Use whenever the user wants to design a page, feature, flow, slide deck, or brand-new product; improve or reproduce existing UI; compare design results across top models; explore visual variants…

superdesigndev/superdesign-skill · 115 tokens

figma-to-code

Generate production-ready React/Next.js code from Figma designs. Instructs proper Figma MCP tool usage, component reuse strategies, and variant mapping. CRITICAL: ALWAYS use this skill when user provides a Figma link or mentions implementing/redesigning from Figma design. Never attempt manual implementation without…

scoobynko/claude-code-design-skills · 0 tokens

smb-sales-boost

Find, preview and export growing local businesses (SMB leads) from the SMB Sales Boost database through its REST API - search by keyword, location and buying signals, preview for free, export CSV/JSON/XLSX, re-download past exports, enrich lists of website URLs, manage saved searches, keyword lists, email schedules…

Tomsonx232/smb-sales-boost-skill · 200 tokens

Linear

Managing Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows.

wrsmith108/linear-claude-skill · 32 tokens

balzac

Balzac is an AI content platform CLI. Create workspaces, manage SEO keywords, generate article suggestions, write articles, publish content across integrations, and monitor Google Search Console performance. Supports workspaces, keywords, suggestions, briefings, articles, competitors, links, integrations, search…

hirebalzac/cli · 68 tokens

balzac

AI content platform CLI. Create workspaces, manage SEO keywords, generate article suggestions, write articles, and publish to WordPress, Webflow, Wix, GoHighLevel, or webhooks.

hirebalzac/cli · 42 tokens