au-review
Reviews AudioUnit v2/v3 plugin implementations for spec compliance, thread safety, and correctness. Use when the user asks to review an AudioUnit plugin, check…
Reviews game audio code for Wwise/FMOD integration safety, custom DSP plugin correctness, and audio middleware usage. Use when the user asks to review a Wwise plugin, check an FMOD DSP effect, audit game audio middleware integration, or asks "is my game audio code safe?".
$ npx -y skills add kunitoki/sonic-skills --skill game-audio-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/game-audio-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Reviews game audio code for Wwise/FMOD integration safety, custom DSP plugin correctness, and audio middleware usage. Use when the user asks to review a Wwise plugin, check an FMOD DSP effect, audit game audio middleware integration, or asks "is my game audio code safe?".
name: game-audio-review description: > Reviews game audio code for Wwise/FMOD integration safety, custom DSP plugin correctness, and audio middleware usage. Use when the user asks to review a Wwise plugin, check an FMOD DSP effect, audit game audio middleware integration, or asks "is my game audio code safe?". Trigger on phrases like "review my Wwise plugin", "check FMOD DSP effect", "is my game audio code safe", "review my audio middleware integration", or when you see AkPluginInfo, FMOD_DSP_DESCRIPTION, IMetaSoundSource, or Execute/process callbacks in game audio code.
Middleware callbacks share all realtime constraints of native audio, plus middleware-specific memory, threading, and parameter rules.
Invoke `audio-dsp-review` and `audio-numerics-review` before this skill. This skill adds middleware-specific checks on top; it does not replace realtime-safety or numerics reviews.
| Type | Entry point | Key concerns | |------|-------------|--------------| | Wwise plugin | `AkPluginInfo` + `Execute()` | Memory via `AkAlloc`, thread model per platform | | FMOD DSP effect | `FMOD_DSP_DESCRIPTION` + `process` callback | `FMOD_MEMORY_ALLOC`, must not block | | Unreal MetaSounds | `IMetaSoundSource`, `GetNextBuffer` | GameThread vs AudioThread ownership | | Custom engine integration | Engine audio callback | Platform-specific thread model and priorities |
| Violation | Where | Risk | |-----------|-------|------| | Allocating from any heap inside the audio callback | plugin `Execute`/`process` | Realtime violation; middleware allocators are for setup/teardown, not per-buffer allocation | | Blocking I/O from audio callback | `Execute`/`process` | Xrun / dropout | | Accessing game engine state from audio thread | `Execute`/`process` | Not thread-safe; data race or stale read | | Event or parameter changes without thread-safe channel | game loop → audio | Data race on shared state | | DSP plugin not handling bypass correctly | `Execute`/`process` | Incorrect audio output in bypass mode | | Not respecting channel count negotiation | plugin init | Buffer overread / underwrite | | Missing `AK_OPTIMIZED` guard around debug code | any plugin code | Debug I/O included in shipping build | | Wwise RTPC not clamped before use | parameter read | Out-of-range value fed to DSP; clipping or NaN | | FMOD parameter index used as a magic number | parameter read | Wrong value applied after descriptor edits; use a shared enum tied to `paramdesc` order | | Unreal: accessing `UAudioComponent` from AudioThread | `GetNextBuffer` | GameThread-only object; crashes on non-GameThread |
## Game Audio Review: `[file / plugin class]` ### Verdict [Safe | Has critical violations | Warnings only] — [one sentence summary] ### Integration Type [Wwise plugin | FMOD DSP | Unreal MetaSounds | Custom engine] ### Critical Violations **[Category]: [description]** `file:line` — `offending code` Why: [one sentence on the middleware / realtime risk] Fix: [concrete middleware-idiomatic suggestion] ### Warnings [same format] ### What's Done Well [correct patterns observed] ### Recommended Fixes (priority order) 1. ...
| Violation | Fix | |-----------|-----| | Allocation in Wwise `Execute` | Pre-allocate in `Init` with `AK_PLUGIN_ALLOC` / `AK_PLUGIN_FREE` | | Allocation in FMOD `process` | Pre-allocate in create/reset with `dsp_state->functions->alloc` / `free` | | Blocking call in callback | Move to game thread; pass result via lock-free queue or atomic | | Game engine state read on audio thread | Cache a thread-safe copy; update via `std::atomic` or SPSC queue | | Wwise bypass not handled | Leave buffer untouched and return; do not write to output | | Channel count assumed constant | Read from `io_pBuffer->NumChannels()` or FMOD `inchannels` at runtime | | FMOD parameter by magic number | Define enum indices and keep descriptor order in one place | | Unreal GameThread object on AudioThread | Marshal via `AsyncTask(ENamedThreads::GameThread, ...)` |
For code structure examples (Wwise, FMOD, MetaSounds, thread models, memory patterns) see `references/game-audio-patterns.md`.
Precision audio-engineering skills for AI agents. Sonic Skills is a curated pack of Markdown skills for reviewing, debugging, explaining, and implementing audio software.
Repo: kunitoki/sonic-skills
Reviews AudioUnit v2/v3 plugin implementations for spec compliance, thread safety, and correctness. Use when the user asks to review an AudioUnit plugin, check…
Systematic checklist for diagnosing audio artifacts. Use when the user describes a sound quality problem — clicks, pops, crackling, silence, DC offset,…
Reviews audio DSP and audio processing code for realtime safety violations. Use whenever the user asks to review, audit, or check audio processing code —…
Explains DSP math concepts to developers who need the theory behind an algorithm. Use whenever the user asks how a signal-processing concept works, wants…
Reviews audio DSP code for numerical correctness. Use when the user asks to review, audit, or check DSP code for correctness issues — filters, feedback loops,…
Profiling strategy for audio CPU issues — xruns, spikes, and buffer underruns. Use when the user reports CPU overload, audio glitches under load, or…