webaudio-guide SKILL.md skillA

webaudio-guide from gourdja/sonic-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add gourdja/sonic-skills/webaudio-guide@git:20260515.3a80b75

Pins git:20260515.3a80b75 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
gourdja/sonic-skills
Path
skills/webaudio-guide/SKILL.md
Versions recorded
1
Latest version
git:20260515.3a80b75, committed May 15, 2026
Size
3,628 bytes
Repository stars
4
License
Unlicense

Step-by-step guide for building Web Audio processing pipelines — AudioWorklet processors, custom nodes, parameter automation, and WebMIDI integration. Use when the user asks how to build or wire up Web Audio code from scratch. Trigger on phrases like "build an AudioWorklet", "create a custom Web Audio effect", "how do I use WebMIDI", "how do I write an AudioWorkletProcessor", or "how do I connect AudioNodes".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Web Audio Processing Guide

## Step 1 — Set up AudioContext and load worklet module

- Create `AudioContext` inside 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&url` import).
- Check `audioContext.state` and call `audioContext.resume()` if it is `'suspended'`.

## Step 2 — Write the AudioWorkletProcessor

- Subclass `AudioWorkletProcessor` in a separate file; call `registerProcessor('name', Class)` at module scope.
- Implement `process(inputs, outputs, parameters)` — `inputs[n][channel]` and `outputs[n][channel]` are `Float32Array` views for the current render quantum. Use `.length` in loops instead of hardcoding 128.
- Pre-allocate all working buffers in `constructor()`; never create objects or arrays inside `process()`.
- Declare custom `AudioParam`s via `static get parameterDescriptors()` returning an array of `{ name, defaultValue, minValue, maxValue, automationRate }` descriptors.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gourdja/sonic-skills/webaudio-guide@sha256:38c9985fca1ba4bf

The line at the top of this page pins the label git:20260515.3a80b75, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6ru6ttgixyqrh7ad.svg)](https://markdownregistry.com/a/art_6ru6ttgixyqrh7ad)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on May 15, 2026.

versioncommittedcommitsizeaudit
git:20260515.3a80b75 latest2026-05-15 3a80b75 3,628 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3628 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

gourdja/sonic-skills · 4 stars · license Unlicense · pushed 2026-10-12 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6ru6ttgixyqrh7ad
GET https://markdownregistry.com/api/v1/resolve?ref=gourdja/sonic-skills/webaudio-guide
GET https://markdownregistry.com/api/v1/blob/38c9985fca1ba4bf055f0c81645c111101f5d1515cd5087fb7961c7ea1b2ac10

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from gourdja/sonic-skills

au-review SKILL.md skill
gourdja/sonic-skills · skills/au-review/SKILL.md · Reviews AudioUnit v2/v3 plugin implementations for spec compliance, thread safety, and correctness. Use when the user…
git:20260515.3a80b75 · audit A · 4 stars
audio-artifacts-debug SKILL.md skill
gourdja/sonic-skills · skills/audio-artifacts-debug/SKILL.md · Systematic checklist for diagnosing audio artifacts. Use when the user describes a sound quality problem — clicks…
git:20260515.3a80b75 · audit A · 4 stars
audio-dsp-review SKILL.md skill
gourdja/sonic-skills · skills/audio-dsp-review/SKILL.md · Reviews audio DSP and audio processing code for realtime safety violations. Use whenever the user asks to review…
git:20260521.8b6dcfe · audit A · 4 stars
audio-math-explainer SKILL.md skill
gourdja/sonic-skills · skills/audio-math-explainer/SKILL.md · Explains DSP math concepts to developers who need the theory behind an algorithm. Use whenever the user asks how a…
git:20260515.3a80b75 · audit A · 4 stars
audio-numerics-review SKILL.md skill
gourdja/sonic-skills · skills/audio-numerics-review/SKILL.md · Reviews audio DSP code for numerical correctness. Use when the user asks to review, audit, or check DSP code for…
git:20260515.3a80b75 · audit A · 4 stars
audio-performance-debug SKILL.md skill
gourdja/sonic-skills · skills/audio-performance-debug/SKILL.md · Profiling strategy for audio CPU issues — xruns, spikes, and buffer underruns. Use when the user reports CPU overload…
git:20260515.3a80b75 · audit A · 4 stars
audio-signal-flow-explainer SKILL.md skill
gourdja/sonic-skills · skills/audio-signal-flow-explainer/SKILL.md · Traces and documents signal paths, bus/aux architecture, and sidechain connections in audio systems. Surfaces hidden…
git:20260515.3a80b75 · audit A · 4 stars
clap-review SKILL.md skill
gourdja/sonic-skills · skills/clap-review/SKILL.md · Reviews CLAP plugin implementations for spec compliance, thread safety, and correctness. Use when the user asks to…
git:20260515.3a80b75 · audit A · 4 stars
dsp-algorithm-guide SKILL.md skill
gourdja/sonic-skills · skills/dsp-algorithm-guide/SKILL.md · Implementation guide for common DSP algorithms. Use when the user asks "implement a lowpass filter", "how do I write a…
git:20260515.3a80b75 · audit A · 4 stars
game-audio-guide SKILL.md skill
gourdja/sonic-skills · skills/game-audio-guide/SKILL.md · Guides implementation of custom Wwise or FMOD DSP plugins from scratch — effect, source, and mixer plugin types. Use…
git:20260515.3a80b75 · audit A · 4 stars
game-audio-review SKILL.md skill
gourdja/sonic-skills · skills/game-audio-review/SKILL.md · Reviews game audio code for Wwise/FMOD integration safety, custom DSP plugin correctness, and audio middleware usage…
git:20260515.3a80b75 · audit A · 4 stars
juce-guide SKILL.md skill
gourdja/sonic-skills · skills/juce-guide/SKILL.md · Step-by-step guide for building a JUCE audio plugin from scratch. Use when the user asks "how do I create a JUCE…
git:20260515.3a80b75 · audit A · 4 stars

Every file in gourdja/sonic-skills

Browse by kind, by grade A, or by owner.