audio-artifacts-debug

audio-artifacts-debug is a skill for Claude Code, Codex from kunitoki/sonic-skills. It costs 119 tokens per session (937 once invoked), scanned A, original, Unlicense.

A troubleshooting checklist for audio problems such as clicks, crackling, silence, unwanted constant signal, high-frequency distortion, stereo phase problems, and timing errors. It connects each symptom with likely causes and checks.

In plain words
What is it for?
Use it to investigate sound artifacts in audio software, including buffer-boundary clicks, dropouts under load, aliasing, phase issues, and incorrect delay.
Why use it?
It gives a structured way to narrow down audio faults before changing code. This reduces guesswork when the same sound problem can have several causes.

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

Made for: Claude Code, Codex.

Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 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.00119 $0.00937
Opus 5 $0.00060 $0.00468
Sonnet 5 $0.00024 $0.00187
Haiku 4.5 $0.00012 $0.00094

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

Security

Grade A, and why

audio-artifacts-debug 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-artifacts-debug/SKILL.md · 72 lines

How it starts

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

Audio Artifacts Debug

Audio artifacts have diagnostic signatures — match the symptom to the root cause before touching code.

Step 1 — Characterize the artifact

Ask these questions before reading any code.

Artifact type Questions to ask
Clicks / pops Regular or random? On buffer boundaries? At note on/off? After channel strip toggle?
Crackling / distortion Constant or load-dependent? Does it correlate with signal level? Worse on silent decay?
Silence / dropout Immediate or gradual? Only under load? After a specific number of voices? Recovers?
DC offset Constant or drift? Present from first sample? Appears only after long silence?
Aliasing Audible as high-frequency mirror tones? Pitch-dependent? Present at all sample rates?
Phase issues Stereo image collapse in mono? Comb filtering? Only on parallel paths or mid-side?
Latency DAW reports wrong delay compensation? Wet/dry misaligned? Only at certain buffer sizes?

Step 2 — Narrow to root cause

Symptom Likely cause Skill / check to apply
Click at fixed buffer-length intervals Buffer boundary discontinuity — uninitialized tail, missing sample-accurate fade audio-dsp-review: check process entry/exit
Click correlates with xrun log CPU overload — audio thread missed deadline audio-dsp-review: scan for allocations, locks, I/O
Crackling scales with signal amplitude Clipping or fixed-point overflow audio-numerics-review: overflow, Q-format multiply
Crackling on silent decay Denormal floats — FTZ absent audio-numerics-review: denormal section
Dropout / silence under load xrun, NaN propagation, or buffer too small for latency audio-dsp-review + audio-numerics-review: NaN guards
Silence after large value NaN propagated from unclamped sqrt / division audio-numerics-review: NaN / Inf section
DC offset from first sample Uninitialized filter state or delay line audio-numerics-review: precision loss / state init
DC offset after long silence FTZ leaving near-zero state; missing high-pass audio-numerics-review: denormal / FTZ section
Aliasing pitch-tracks with note Oscillator not bandlimited; no anti-alias before downsampling audio-numerics-review: check sample-rate handling
Stereo collapses to mono Unmatched processing on L/R; phase inversion audio-dsp-review: check parallel path symmetry
Comb filtering on mono Latency mismatch on parallel paths Plugin reports incorrect getLatencySamples()
Latency wrong at buffer-size change Plugin caches latency at init only; not updated on reconfigure audio-dsp-review: check prepareToPlay reset

Read the full file on GitHub · 72 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 · 72 lines · 119 tokens per session scan A b50d6587baec

Subscribe to this mod's changes

audio-artifacts-debug is a skill published in the GitHub repository kunitoki/sonic-skills (18 stars, last pushed 3mo ago), licensed Unlicense. It adds 119 tokens to every session and 937 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

AudioMind

Tired of juggling multiple audio APIs? This skill gives you one-command access to TTS, music generation, sound effects, and voice cloning. Use when you want to generate any audio without managing multiple API keys.

wells1137/media-skills · 46 tokens

lattice-init

Guided setup and upgrade-check experience for Lattice projects -- scans the repository, detects existing configuration and outdated conventions, suggests refiners and available upgrades in priority order, and creates or reconciles the .lattice/ config. Bridges the gap between installing skills and getting first value…

techygarg/lattice · 115 tokens

define-problem-statement

Creates a clear problem framing document with user impact, business context, and success criteria. Use when starting a new initiative, realigning a drifted project, or communicating up to leadership.

product-on-purpose/pm-skills · 43 tokens

develop-design-rationale

Documents the reasoning behind design decisions including alternatives considered, trade-offs evaluated, and principles applied. Use when making significant UX decisions, aligning with stakeholders on design direction, or preserving design context for future reference.

product-on-purpose/pm-skills · 45 tokens

develop-solution-brief

Creates a concise one-page solution overview that communicates the proposed approach, key decisions, and trade-offs. Use when pitching solutions to stakeholders, aligning teams on approach, or documenting solution intent before detailed specification.

product-on-purpose/pm-skills · 46 tokens

intelligent-investor-graham

Use Graham value investing for Is this investment or speculation, defensive stock screens, margin of safety, Mr. Market, allocation, funds, IPOs.

simbajigege/book2skills · 37 tokens