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.
npx skills add kunitoki/sonic-skills --skill webaudio-guidegit clone --depth 1 https://github.com/kunitoki/sonic-skillsWrote 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.
[](https://agentmods.dev/skills/kunitoki/sonic-skills/webaudio-guide)<a href="https://agentmods.dev/skills/kunitoki/sonic-skills/webaudio-guide"><img src="https://agentmods.dev/badge/skills/kunitoki/sonic-skills/webaudio-guide/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.
<a href="https://agentmods.dev/skills/kunitoki/sonic-skills/webaudio-guide"><img src="https://agentmods.dev/badge/skills/kunitoki/sonic-skills/webaudio-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.00913 |
| Opus 5.5 | $0.00039 | $0.00365 |
| Sonnet 5.5 | $0.00020 | $0.00183 |
| Haiku 4.5 | $0.00010 | $0.00091 |
Grade A, and why
webaudio-guide 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web Audio Processing Guide
Step 1 — Set up AudioContext and load worklet module
- Create
AudioContextinside a user gesture handler (click, keydown) to satisfy autoplay policy. - Call
await audioContext.audioWorklet.addModule('path/to/processor.js')before creating nodes. - The module path is resolved relative to the page; bundlers may require special config (e.g. Vite's
?worker&urlimport). - Check
audioContext.stateand callaudioContext.resume()if it is'suspended'.
Step 2 — Write the AudioWorkletProcessor
- Subclass
AudioWorkletProcessorin a separate file; callregisterProcessor('name', Class)at module scope. - Implement
process(inputs, outputs, parameters)—inputs[n][channel]andoutputs[n][channel]areFloat32Arrayviews for the current render quantum. Use.lengthin loops instead of hardcoding 128. - Pre-allocate all working buffers in
constructor(); never create objects or arrays insideprocess(). - Declare custom
AudioParams viastatic get parameterDescriptors()returning an array of{ name, defaultValue, minValue, maxValue, automationRate }descriptors. - Return
truefromprocess()to keep the processor alive;falseor no return shuts it down.
Step 3 — Wire up the node graph
- Instantiate the node on the main thread:
new AudioWorkletNode(ctx, 'name', options). - Use
node.connect(destination)andsource.connect(node)to build the signal path;AudioContext.destinationis the hardware output. - Access
AudioParams vianode.parameters.get('paramName')— set.valuefor immediate changes. - Schedule smooth automation with
.linearRampToValueAtTime(),.setTargetAtTime(), or.setValueCurveAtTime()on theAudioParam. - Tear down cleanly:
node.disconnect(), thensource.stop(), thenaudioContext.close().
Step 4 — Worklet ↔ main thread communication
- Use
this.port.postMessage()/node.port.onmessagefor low-frequency control (meters, state changes, error reporting). - Batch postMessage calls; avoid sending one per render quantum (currently ~344/sec at 44.1 kHz with 128-frame quanta).
- For high-frequency or low-latency control (e.g. live gain, pitch), share a
SharedArrayBufferand read/write integer views withAtomics.load()/Atomics.store(). Scale floats to integers or bit-cast through a private buffer;Atomicsdoes not operate onFloat32Array. - Cross-origin isolation (
COOP: same-origin+COEP: require-corpresponse headers) is required forSharedArrayBuffer.
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.
- 3mo ago First seen · 50 lines · 98 tokens per session scan A 38c9985fca1b
webaudio-guide is a skill published in the GitHub repository kunitoki/sonic-skills (26 stars, last pushed 6mo ago), licensed Unlicense. It adds 98 tokens to every session and 913 once invoked, about $0.0004 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-08-30.
webaudio-guide compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| webaudio-guidekunitoki/sonic-skills | Skill | 26 | 6mo ago | Unlicense | A | 98 | Claude Code, Codex |
| init-workspacegtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 54 | Claude Code |
| execute-phasegtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 106 | Claude Code |
| fold-findingsgtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 65 | Claude Code |
| unit-lanegtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 53 | Claude Code |
| audit-docsgtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 147 | Claude Code |
| audit-prgtrabanco/agentic-workflow | Skill | 25 | yesterday | MIT | A | 71 | Claude Code |