Logo: Audio Diagnostician

Audio Diagnostician

Organisatioun
fadelabs
audio-diagnostician

Pre-mix audio analysis and problem detection for audio engineering. Runs Phantom MCP diagnostic tools on stems, catalogs issues by severity (dealbreaker/significant/moderate/minor), identifies frequency masking between stems, and produces a structured mix brief. Use this skill whenever the user wants to analyze audio stems or files before mixing, diagnose audio problems (phase issues, clipping, noise, hum, mud, harshness), assess recording quality, prepare a mix session overview, check if a mix is ready for mastering, or investigate why something "sounds wrong." Also use when the user provides WAV file paths and asks for analysis, quality checks, or problem identification -- even if they don't explicitly mention "diagnostics."

Iwwersiicht

Editeurfadelabs
Repositoryphantom
Skill-Nummaudio-diagnostician
Stären
45
Forks
2
Matgeliwwert Dateien
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    fadelabs huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Audio Diagnostician an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/fadelabs/phantom/tree/main/plugin/skills/audio-diagnostician
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fadelabs/phantom.git /tmp/phantom
mkdir -p .claude/skills
cp -r /tmp/phantom/plugin/skills/audio-diagnostician .claude/skills/audio-diagnostician
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Audio Diagnostician an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Audio Diagnostician automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Audio Diagnostician net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Audio Diagnostician

Workflow position: audio-diagnostician → session-architect → mix-engineer → effects-engineer → mastering-engineer. Always analyze first.

The diagnostic's job is to find problems BEFORE they waste mixing time. Phase issues masquerading as tonal problems. Noise that accumulates across stems. Masking conflicts that no amount of EQ can fix. Every problem found here saves an hour of guessing later.

Non-negotiable rules (repeated at end as final checklist):

  1. Check phase before anything else — phase problems masquerade as tonal problems
  2. Interpret every measurement in instrument context — drums at 15 dB crest factor is normal, vocals at 15 dB is uncompressed
  3. Genre context matters — lo-fi at -55 dBFS noise with rolled-off highs is aesthetic, not a problem. For genres that tolerate a higher floor (lo-fi, ambient), raise the noise-floor thresholds — PHANTOM_NOISE_FLOOR_MODERATE_DB (default -50) and PHANTOM_NOISE_FLOOR_MINOR_DB (default -60) — so aesthetic floors report clean instead of flagging
  4. Never assume stem provenance — mono in stereo containers is normal, don't speculate on AI separation

Step 1: Gather Stems

Collect all stem file paths (WAV, mono or stereo). If given a directory, list WAV files.

If genre or reference track is unknown, ask now — every downstream skill needs genre context.

Alternate takes: If filenames suggest multiple takes, ask which to use. Exclude unused takes — they corrupt masking analysis.

multi_stem_masking accepts max 20 stems. If session has more, group by instrument family and run multiple passes.

Step 2: Run the Full Diagnostic Sweep

Call batch_diagnostic with every stem path in one shot.

First Checks (in order — each can stop the session)

CheckConditionSeverityAction
Sample rate mismatchDifferent rates between stemsDealbreakerStop. Flag which stems mismatch. Convert to highest rate.
Silent stemsRMS below -80 dBFS (the silence threshold — analyze_loudness returns None)DealbreakerLikely export mistake. Ask user before including.
Bit depth mix16/24/32 mixedFlagNote highest depth for session-architect. 32→16 without dither = quantization noise.
Duration mismatchStems differ by > few secondsFlagDifferent export sections or excess head/tail silence.
Loudness spread> 20 LU between loudest and quietestFlagGain staging problem. Multi-session recording or inconsistent preamp.
Pre-printed effectsCrest factor below the analyzer's over-compression threshold (default 6 dB, PHANTOM_CREST_FACTOR_LOW_DB) on a naturally dynamic source, OR spectral tilt doesn't match instrument type, OR flat loudness contour over timeFlagDistinguish musician's tone (pedal compression, amp distortion, instrument through effects at tracking) from post-production processing. A bass through a compressor pedal = the player's sound, not a problem. Ask about the signal chain before flagging. Printed EQ narrows later options; printed compression on top of more compression destroys transients; printed reverb cannot be removed.
Timing driftTransient misalignment between stems > 5 msSignificantMeasure using compare_phase time-delay value between stems sharing transient events. For non-transient stems, cross-correlate against the reference stem (usually drums). Drift > 5 ms = separate sessions or DAW latency offset. Nudge to align.

Bit depth note: 16-bit = ~96 dB dynamic range, 24-bit = ~144 dB. 16-bit stems with noise floor above -70 dBFS may be quantization-limited — flag as re-export candidates.

Step 3: Phase and Polarity Check

Phase problems require specific tools (polarity flip, time alignment). Standard EQ/compression worsens them. Find them now.

Run analyze_phase on every stereo stem. Flag any polarity_inverted: true immediately.

M/S detection (check BEFORE interpreting correlation): Very low/negative correlation across all bands + one channel sounding "hollow" = possibly mid-side encoded. Run analyze_stereo to confirm. M/S files show expected negative correlation — do NOT flag as phase problems. Ask user before proceeding.

For multi-mic recordings, run compare_phase in this order (fix highest-energy pair first — its correction changes the summed phase picture for subsequent checks):

  1. Kick in vs kick out — highest-energy low-frequency pair, most damaging if out of phase
  2. Snare top vs snare bottom — flip bottom mic polarity if correlation < +0.3
  3. Close mic vs room mic — sound travels ~1 ms/foot — a room mic 10 feet away = 10 ms delay = comb filtering
  4. DI vs amped version of same instrument — latency offset from amp processing chain

Re-run compare_phase after each fix to confirm improvement before moving to the next pair.

Phase Correlation Interpretation (Instrument-Aware)

CorrelationBass/Kick/Snare/Lead VocalOverheads/Room/Stereo KeysAnything with Widening
> +0.8ExcellentExcellentExcellent
+0.5 to +0.8GoodGoodGood
+0.3 to +0.5Problem — flagNormal wide stereoBorderline — check if mono drops > 3 dB
< +0.3ProblemProblemProblem
Sustained negativePolarity inversion — flip one channel (unless M/S encoded — see above)Polarity inversionPolarity inversion

Diagnostic pattern: "Sounds fine solo but thin/weird in context" = phase cancellation. Run compare_phase between the problem stem and everything it's layered with.

"Fixed enough" threshold: After correction, correlation should improve by at least +0.2 AND reach the "Good" row for that instrument type. Soloing both stems together should sound full, not hollow or thin. If correction yields only marginal improvement, the problem may be comb filtering from reflections — note this for mix-engineer.

Step 4: Triage Problems by Severity

Review detect_problems results. Four severity tiers — dealbreakers first. Confidence prefix each finding: Definite (clipping, polarity inversion — measurable, unambiguous), Likely (noise above threshold, clear masking), Possible (borderline values, context-dependent — needs engineer judgment).

Intent check: Before flagging unconventional measurements (distorted vocals, transient-free drums, deliberately clipped signals), consider whether the measurement reflects a creative choice. If the result could be intentional, mark as Possible and ask before escalating.

Dealbreaker (fix before mixing):

  • Clipping — samples at or above ±1.0 (PHANTOM_CLIPPING_THRESHOLD, default 1.0). Baked at the ceiling; can't be un-clipped
  • Lossy codec artifacts — spectral shelf drop above PHANTOM_LOSSY_SHELF_DROP_DB (default 20 dB); the discarded content can't be recovered
  • Sample rate mismatch
  • Severe phase/polarity inversion between related stems

Significant (address before building mix — report with playback context: headphone listeners hear noise at -52 dBFS; club/PA playback masks it under ambient noise):

  • True peak > -1 dBTP (tight headroom) — the ISP detector rates peaks above this significant (PHANTOM_ISP_SEVERE_DBTP, default -1.0)
  • Poor SNR — below PHANTOM_SNR_POOR_DB (default 50 dB); dedicated noise reduction required before mixing
  • Possible mains hum near 50/60 Hz and their harmonics — Phantom refines tonal candidates and allows ±0.5 Hz at the fundamental, scaled by harmonic number. A nearby bass note is not evidence of electrical interference, and a tone exactly on a mains frequency can still be musical. Listen and check the recording context before recommending removal. If confirmed, notch only the reported frequencies and compare before/after audio. Preserve intentional noise or texture when it serves the user’s goal.
  • Room resonances at specific frequencies — the resonant-peak detector (PHANTOM_RESONANCE_MEDIAN_FLOOR_DB default -40, PHANTOM_RESONANCE_PROMINENCE_DB default 12)

Moderate (address during mixing):

  • Noise floor at or above -50 dBFS — noise reduction required (PHANTOM_NOISE_FLOOR_MODERATE_DB, default -50)
  • Sibilance 5-10 kHz — de-esser or dynamic EQ, 3-6 dB reduction (de-esser targeting guidance by voice: male 3-6 kHz, female 6-8 kHz)
  • Mud 200-500 Hz across stems — HPF everything except kick/bass, complementary EQ between conflicting pairs
  • Harshness 2-4 kHz

Minor (optional):

  • Noise floor -60 to -50 dBFS — acceptable but not professional-grade; gate during silence or spectral de-noise. Cumulative math: Calculate per-section, not total stem count. If verse has 4 active stems at -58 dBFS → -52 dBFS floor; chorus with 12 stems at -58 → -47 dBFS. Report worst-case section. Verification: After reduction, noise floor should drop to -60 dBFS or below. A/B with original — if you hear "underwater" artifacts or loss of air/breath, the reduction was too aggressive (PHANTOM_NOISE_FLOOR_MINOR_DB, default -60)
  • SNR 50-60 dB — acceptable but minor
  • DC offset — mean at or above PHANTOM_DC_OFFSET_THRESHOLD (default 5e-4); remove with DC offset tool or HPF at 5-20 Hz
  • Spectral imbalances, minor noise bursts, low-level clicks

Step 5: Frequency Masking Analysis

Run multi_stem_masking with all stems. Pan-aware masking: If stems are hard-panned to opposite sides (known from session notes or stereo analysis), discount masking severity — L/R separation reduces perceptual masking. Only flag masking between stems sharing the same stereo position. Key conflict pairs:

PairConflict ZoneDownstream Action
Kick vs Bass60-100 Hz→ session-architect: prewire sidechain. → mix-engineer: complementary EQ.
Guitars vs Vocals2-4 kHz→ mix-engineer: cut guitars at vocal presence frequency.
Keys vs Guitars300 Hz-1 kHz→ mix-engineer: pan separation + complementary EQ.
Multiple vocals1-5 kHz→ mix-engineer: slight frequency offset per voice + different reverb sends.
4+ stems masking same bandArrangement problemFlag — EQ carving won't fix it. Recommend thinning simultaneous elements.

Gain-stage before masking analysis: If stems differ by more than 12 LU, normalize to common monitoring level (e.g., -18 LUFS) before running masking analysis. Analysis normalization only — do not alter stem files.

Live recordings: Bleed causes overreported masking. Discount bleed-frequency masking by one tier. Focus on direct signal energy.

Expected outcome after masking fixes: Complementary EQ should drop masking score from "high" to "moderate" or lower. If it doesn't, the conflict is arrangement-level, not mix-level.

Step 6: Produce the Mix Brief

  1. Session overview — stem count, sample rate, bit depth, genre/reference, BPM if known, aggregate headroom
  2. Per-stem summary table — LUFS, peak, crest factor, phase correlation, stereo width, key issues
  3. Problems by severity — dealbreakers first, always
  4. Masking map — worst frequency conflicts between pairs, with downstream routing recommendations
  5. Overall assessment — one paragraph, opinionated, honest
  6. Processing order — the ordered checklist below

This order matters — each step depends on the previous:

  1. Fix sample rate mismatches (offline SRC)
  2. Remove DC offset (RX or DAW utility)
  3. Fix polarity inversions (flip on channel)
  4. Time-align multi-mic pairs (Auto-Align or manual nudge by ms from compare_phase)
  5. Remove noise/hum (spectral de-noise, de-hum — BEFORE any compression, which amplifies noise)
  6. Address clipping (RX De-clip if baked; otherwise re-export from session)
  7. Apply HPFs on non-bass stems (vocals 80-100 Hz, guitars 80 Hz, keys 60-80 Hz)
  8. Begin mixing — address sibilance, masking EQ, harshness during mix

Handoff to Downstream Skills

Explicitly tell downstream skills what to do:

Finding→ Session Architect→ Mix Engineer
Kick/bass maskingPrewire sidechain routingComplementary EQ + sidechain
Phase issuesRoute multi-mic to alignment sub-busCheck phase before EQ
Over-compressed stemsMark "no comp needed"Skip compression on those tracks
Severe noiseInsert gate as first pluginNoise gate before any dynamics
Guitar/vocal maskingRoute guitars through vocal-sidechain busCut guitars at 2-4 kHz

Interpretation Quick Reference

For the complete measurement-to-action tables: load measurement-actions.md.

Crest Factor (Instrument & Playing-Style Aware)

Crest FactorDrums/PercussionVocals/Guitar/KeysSynth Pads/Strings
> 15 dBNormal — transient-heavyVery dynamic, handle gentlyUnusual — unless plucked/arpeggiated (then normal)
8-12 dBLight compression appliedWell-recorded, standard processingNormal
< 6 dBOver-compressedOver-compressedNormal for sustained sources

Playing style override: When crest factor contradicts the instrument label, check the actual waveform envelope. A "synth bass" with 14 dB crest factor and percussive transients = plucky playing style, not a problem. A "drum" stem with 5 dB crest = either heavy compression or electronic/programmed drums. Use envelope shape, not instrument name, as the ground truth.

Key Thresholds

MeasurementThresholdAction
ClippingSamples ≥ ±1.0Dealbreaker
Lossy codecShelf drop > 20 dBDealbreaker
True peak> -1 dBTPSignificant
SNR< 50 dBSignificant
Noise floor≥ -50 dBFSModerate
Noise floor-60 to -50 dBFSMinor
SNR50-60 dBMinor
Phase correlation< +0.3Problem (center sources)

Special Scenarios

Pre-Mastering Mix Check

Run full_diagnostic on mix file, then compare_to_profile for genre:

CheckPassBorderlineFail
Corrective EQ needed< 2 dB2-3 dB in 1-2 bands> 3 dB or multiple bands
BalanceVocals/bass/drums sit naturallyOne element slightly offVocals buried or bass overwhelming
Phase (mix bus)> +0.5+0.3 to +0.5< +0.3
True peak< -1 dBTP-1 to 0 dBTP> 0 dBTP
Noise floor< -60 dBFS-60 to -50 dBFS> -50 dBFS

1-2 borderline = proceed to mastering with notes. 3+ borderline = another mix pass. Any fail = send back with specific fix: "Corrective EQ fail" → identify which bands and by how much; "Vocals buried" → raise 2-4 kHz by estimated amount; "True peak fail" → pull master fader down by excess amount.

Mid-Mix Diagnostics

When running on a mix-in-progress (not raw stems), processing is already applied. Don't flag compression as "over-compressed stems" or EQ curves as problems if the engineer applied them intentionally. Ask what processing has been done before diagnosing. Focus on: new problems introduced by processing (distortion from overdriven plugins, phase shift from linear-phase EQ on transients), and remaining issues the current processing hasn't addressed.

Quick Single-Stem Assessment

For "this vocal sounds weird" — run full_diagnostic on that one file. But always check phase if the complaint involves how it sounds in context — that's the phase cancellation signature.

Reference Materials

  • measurement-actions.md — complete measurement-to-action translation tables
  • mix-brief-template.md — structured brief template for downstream skills
  • Spectral centroid reference ranges and stem content verification rules are in measurement-actions.md

Final Checklist (restated for attention)

  1. Phase before everything — find phase problems before they waste mixing hours
  2. Interpret in instrument context — crest factor, centroid, and correlation all depend on source type
  3. Genre context — lo-fi noise and rolled-off highs are aesthetic, not problems
  4. Don't speculate on provenance — mono in stereo is normal, don't assume AI separation
  5. Processing order matters — noise removal before compression, phase before EQ
  6. Handoff explicitly — tell downstream skills exactly what to do with each finding
  7. Confidence always — prefix every finding with Definite/Likely/Possible so engineers know what to trust

Ableton Live

For Live sessions, follow the Ableton workflow. Inspect the connected bridge and its tool schemas; do not run Reaper-specific recipes in Live.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Audio Diagnostician?

Pre-mix audio analysis and problem detection for audio engineering. Runs Phantom MCP diagnostic tools on stems, catalogs issues by severity (dealbreaker/significant/moderate/minor), identifies frequency masking between stems, and produces a structured mix brief. Use this skill whenever the user wants to analyze audio stems or files before mixing, diagnose audio problems (phase issues, clipping, noise, hum, mud, harshness), assess recording quality, prepare a mix session overview, check if a mix is ready for mastering, or investigate why something "sounds wrong." Also use when the user provi...

Firwat Audio Diagnostician op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Audio Diagnostician besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Audio Diagnostician an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fadelabs/phantom/tree/main/plugin/skills/audio-diagnostician an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Audio Diagnostician benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Audio Diagnostician benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Audio Diagnostician domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Audio Diagnostician gratis?

fadelabs huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇