/phantom:audio-diagnosticianfrom phantom
Analyzes audio stems before mixing, detecting phase issues, clipping, noise, frequency masking, and other problems. Catalogs issues by severity and produces a structured mix brief.
Ships in phantom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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):
PHANTOM_NOISE_FLOOR_MODERATE_DB (default -50) and PHANTOM_NOISE_FLOOR_MINOR_DB (default -60) — so aesthetic floors report clean instead of flaggingCollect 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.
Call batch_diagnostic with every stem path in one shot.
| Check | Condition | Severity | Action |
|---|---|---|---|
| Sample rate mismatch | Different rates between stems | Dealbreaker | Stop. Flag which stems mismatch. Convert to highest rate. |
| Silent stems | RMS below -80 dBFS (the silence threshold — analyze_loudness returns None) | Dealbreaker | Likely export mistake. Ask user before including. |
| Bit depth mix | 16/24/32 mixed | Flag | Note highest depth for session-architect. 32→16 without dither = quantization noise. |
| Duration mismatch | Stems differ by > few seconds | Flag | Different export sections or excess head/tail silence. |
| Loudness spread | > 20 LU between loudest and quietest | Flag | Gain staging problem. Multi-session recording or inconsistent preamp. |
| Pre-printed effects | Crest 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 time | Flag | Distinguish 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 drift | Transient misalignment between stems > 5 ms | Significant | Measure 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.
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):
Re-run compare_phase after each fix to confirm improvement before moving to the next pair.
| Correlation | Bass/Kick/Snare/Lead Vocal | Overheads/Room/Stereo Keys | Anything with Widening |
|---|---|---|---|
| > +0.8 | Excellent | Excellent | Excellent |
| +0.5 to +0.8 | Good | Good | Good |
| +0.3 to +0.5 | Problem — flag | Normal wide stereo | Borderline — check if mono drops > 3 dB |
| < +0.3 | Problem | Problem | Problem |
| Sustained negative | Polarity inversion — flip one channel (unless M/S encoded — see above) | Polarity inversion | Polarity 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.
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):
PHANTOM_CLIPPING_THRESHOLD, default 1.0). Baked at the ceiling; can't be un-clippedPHANTOM_LOSSY_SHELF_DROP_DB (default 20 dB); the discarded content can't be recoveredSignificant (address before building mix — report with playback context: headphone listeners hear noise at -52 dBFS; club/PA playback masks it under ambient noise):
PHANTOM_ISP_SEVERE_DBTP, default -1.0)PHANTOM_SNR_POOR_DB (default 50 dB); dedicated noise reduction required before mixingPHANTOM_RESONANCE_MEDIAN_FLOOR_DB default -40, PHANTOM_RESONANCE_PROMINENCE_DB default 12)Moderate (address during mixing):
PHANTOM_NOISE_FLOOR_MODERATE_DB, default -50)Minor (optional):
PHANTOM_NOISE_FLOOR_MINOR_DB, default -60)PHANTOM_DC_OFFSET_THRESHOLD (default 5e-4); remove with DC offset tool or HPF at 5-20 HzRun 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:
| Pair | Conflict Zone | Downstream Action |
|---|---|---|
| Kick vs Bass | 60-100 Hz | → session-architect: prewire sidechain. → mix-engineer: complementary EQ. |
| Guitars vs Vocals | 2-4 kHz | → mix-engineer: cut guitars at vocal presence frequency. |
| Keys vs Guitars | 300 Hz-1 kHz | → mix-engineer: pan separation + complementary EQ. |
| Multiple vocals | 1-5 kHz | → mix-engineer: slight frequency offset per voice + different reverb sends. |
| 4+ stems masking same band | Arrangement problem | Flag — 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.
This order matters — each step depends on the previous:
compare_phase)Explicitly tell downstream skills what to do:
| Finding | → Session Architect | → Mix Engineer |
|---|---|---|
| Kick/bass masking | Prewire sidechain routing | Complementary EQ + sidechain |
| Phase issues | Route multi-mic to alignment sub-bus | Check phase before EQ |
| Over-compressed stems | Mark "no comp needed" | Skip compression on those tracks |
| Severe noise | Insert gate as first plugin | Noise gate before any dynamics |
| Guitar/vocal masking | Route guitars through vocal-sidechain bus | Cut guitars at 2-4 kHz |
For the complete measurement-to-action tables: load measurement-actions.md.
| Crest Factor | Drums/Percussion | Vocals/Guitar/Keys | Synth Pads/Strings |
|---|---|---|---|
| > 15 dB | Normal — transient-heavy | Very dynamic, handle gently | Unusual — unless plucked/arpeggiated (then normal) |
| 8-12 dB | Light compression applied | Well-recorded, standard processing | Normal |
| < 6 dB | Over-compressed | Over-compressed | Normal 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.
| Measurement | Threshold | Action |
|---|---|---|
| Clipping | Samples ≥ ±1.0 | Dealbreaker |
| Lossy codec | Shelf drop > 20 dB | Dealbreaker |
| True peak | > -1 dBTP | Significant |
| SNR | < 50 dB | Significant |
| Noise floor | ≥ -50 dBFS | Moderate |
| Noise floor | -60 to -50 dBFS | Minor |
| SNR | 50-60 dB | Minor |
| Phase correlation | < +0.3 | Problem (center sources) |
Run full_diagnostic on mix file, then compare_to_profile for genre:
| Check | Pass | Borderline | Fail |
|---|---|---|---|
| Corrective EQ needed | < 2 dB | 2-3 dB in 1-2 bands | > 3 dB or multiple bands |
| Balance | Vocals/bass/drums sit naturally | One element slightly off | Vocals 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.
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.
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.
For Live sessions, follow the Ableton workflow. Inspect the connected bridge and its tool schemas; do not run Reaper-specific recipes in Live.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/effects-engineerDeep expertise in audio effects for sound design and mixing. Covers distortion/saturation taxonomy, modulation effects, time-based processing, creative effect chains, and effects automation. Use this skill whenever the user wants to choose effects, design sounds, build effect chains, make creative processing decisions, add warmth or grit (saturation/distortion), set up reverb or delay, create specific sonic textures (ethereal, lo-fi, massive, underwater), understand the science behind effects (harmonics, comb filtering, all-pass filters), or automate effects for dynamic transitions. Also use when the user asks about making something "bigger," "wider," "warmer," or "more interesting" -- those are effects engineering questions even if they don't mention specific plugins.
/mastering-engineerProfessional mastering methodology for audio engineering. Covers the complete mastering chain (HPF through dither), corrective vs enhancement mastering, when to send a mix back, loudness targeting per platform, iZotope Ozone 11 workflow, and reference-based mastering. Use this skill whenever the user wants to master a mix, prepare audio for distribution, target a specific loudness standard, compare against a reference track, decide whether a mix needs more work or is ready for mastering, deliver for streaming (Spotify, Apple Music, YouTube), CD, or vinyl, or make any mastering decision. Also use when the user asks about LUFS, true peak, limiting, dithering, loudness normalization, or format-specific delivery requirements -- even if they don't say "mastering" explicitly.
npx claudepluginhub fadelabs/phantom --plugin phantomOther plugins' skills for the same job