audio-math-explainer

audio-math-explainer is a skill for Claude Code, Codex from kunitoki/sonic-skills. It costs 121 tokens per session (789 once invoked), scanned A, original, Unlicense.

An explainer for the mathematics behind digital signal processing, or DSP—the study of how software represents and changes sound. It connects ideas such as Fourier transforms, convolution, filters, sampling, and decibels to code.

In plain words
What is it for?
Use it to understand FFTs, frequency analysis, convolution, filter behavior, windowing, aliasing, gain calculations, and related math-shaped bugs.
Why use it?
DSP formulas can be difficult to apply correctly when the underlying concepts are unfamiliar or when output looks wrong.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kunitoki/sonic-skills/audio-math-explainer
Any agent
npx skills add kunitoki/sonic-skills --skill audio-math-explainer
Clone the repo
git clone --depth 1 https://github.com/kunitoki/sonic-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 audio-math-explainer

README.md
[![agentmods](https://agentmods.dev/badge/skills/kunitoki/sonic-skills/audio-math-explainer.svg)](https://agentmods.dev/skills/kunitoki/sonic-skills/audio-math-explainer)
Your own site
<a href="https://agentmods.dev/skills/kunitoki/sonic-skills/audio-math-explainer"><img src="https://agentmods.dev/badge/skills/kunitoki/sonic-skills/audio-math-explainer.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00121 $0.00789
Opus 5 $0.00060 $0.00394
Sonnet 5 $0.00024 $0.00158
Haiku 4.5 $0.00012 $0.00079

Measured 3d ago against content hash 4bcbb483b352, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audio-math-explainer 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 3d 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.

skills/audio-math-explainer/SKILL.md · 75 lines

How it starts

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

Audio Math Explainer

The rule: DSP math is small and composable — each concept builds directly on the last. Start with what the user needs, then connect it to code they're writing.

Step 1 — Identify the concept

Topic Core idea Common "why"
Fourier transform / DFT / FFT Decompose signal into frequency components "Why does my FFT output look wrong?"
Convolution Weighted moving average; LTI system response "How does an IR reverb work?"
Z-transform Frequency-domain analysis of discrete systems "How do filter poles/zeros work?"
Biquad / IIR filters Recursive difference equation with feedback "Why does my filter ring / go unstable?"
FIR filters Non-recursive weighted sum "How do I design a linear-phase filter?"
Windowing Reduce spectral leakage in DFT "Why are FFT edges smeared?"
Sample rate / Nyquist Highest representable frequency = sr/2 "What causes aliasing?"
Decibels Log scale for amplitude/power ratios "How do I convert gain to dB?"

If the user's question maps to multiple rows, start with the most fundamental one and build up.

Step 2 — Explain with three anchors

For each concept, give exactly these three things in order:

  1. Intuition — one sentence a musician could understand
  2. Math — the key formula (inline, no walls of derivation)
  3. Code — one-line pseudocode or a real function call from common audio libraries

Keep each anchor to 1–3 lines. Cut anything that doesn't directly answer the question.

Step 3 — Connect to the user's code

After the three anchors:

  • Locate where the math appears in their implementation (coefficient calculation, loop structure, buffer size choice, etc.)
  • Name the exact variable or line where theory becomes code
  • If a value looks wrong, explain which part of the math it violates

Quick connection table

Math concept Where it shows up in code
DFT basis frequencies bin_index * sr / N — each FFT bin
Convolution sum FIR tap loop: y[n] = sum(h[k] * x[n-k])
Z-plane pole radius IIR feedback coefficients a1, a2
Nyquist limit if (freq > sampleRate / 2) clamp(...)
Window function Multiply x[n] *= window[n] before FFT
dB conversion gain_db = 20 * log10(amplitude)

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 75 lines · 121 tokens per session scan A 4bcbb483b352

Subscribe to this mod's changes

audio-math-explainer is a skill published in the GitHub repository kunitoki/sonic-skills (18 stars, last pushed 3mo ago), licensed Unlicense. It adds 121 tokens to every session and 789 once invoked, about $0.0006 per session on Opus 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-08-30.

Related

Other skills, from other repositories

building-patient-timelines

Assemble a chronological patient timeline from OpenMed-extracted clinical events, normalizing dates and resolving relative time expressions on-device. Use when the user wants to build a patient timeline, order events from clinical notes, reconstruct a longitudinal history, plot a course of illness, or turn…

maziyarpanahi/openmed · 154 tokens

scientific-critical-thinking

Evaluate scientific claims and evidence quality. Use for assessing experimental design validity, identifying biases and confounders, applying evidence grading frameworks (GRADE, Cochrane Risk of Bias), or teaching critical analysis. Best for understanding evidence quality, identifying flaws. For formal peer review…

K-Dense-AI/claude-scientific-writer · 63 tokens

clinical-q-and-a

快速回答普通教育性医学问题与常见误区。默认用一份国内现行权威指南/共识完成轻量核验并立即作答;不用于个体诊疗、处方剂量、精确推荐定位、药品高风险事实、医保监管或跨版本比较。.

TencentCloud/Octop · 71 tokens

1688 Sourcing Agent

Your intelligent companion for mastering 1688.com procurement. This skill empowers international buyers with step-by-step guidance on supplier verification, product selection, price negotiation, and logistics planning—teaching you to source confidently from China's largest wholesale marketplace while knowing exactly…

LeoYeAI/openclaw-master-skills · 62 tokens

evomath-tao

Use this skill whenever the user submits a non-trivial mathematical claim that needs a rigorous proof or audit. Trigger on IMO/Putnam/USAMO/Olympiad-style problems, ML/AI theoretical statements, research conjectures, suspected-false claims, multi-step proofs the user already failed on, proof drafts with possible…

EvoScientist/EvoSkills · 203 tokens

mcm-master

Full-stack autonomous math modeling agent for MCM/ICM (美国大学生数学建模竞赛). Handles team control number, problem choice (A–F), English academic writing, mcmthesis LaTeX template, and optional practical deliverable (memo/letter/report). Use when the user provides an MCM/ICM problem and wants end-to-end automated modeling…

RealSeaberry/AutoMCM-Pro · 90 tokens