Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Collect Deepgram debug evidence for support and troubleshooting. Use when preparing support tickets, investigating issues, or collecting diagnostic information for Deepgram problems. Trigger: "deepgram debug", "deepgram support ticket", "collect deepgram logs", "deepgram diagnostic", "deepgram debug bundle".
.claude/skills/jeremylongshore-deepgram-debug-bundle/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 183% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 112% | 0% |
!node --version 2>/dev/null || echo 'Node.js not installed' !npm list @deepgram/sdk 2>/dev/null | grep deepgram || echo '@deepgram/sdk not found' !python3 --version 2>/dev/null || echo 'Python not installed'
Collect comprehensive debug information for Deepgram support tickets. Generates a sanitized bundle with environment info, API connectivity tests, audio analysis, request/response logs, and a minimal reproduction script. All API keys are automatically redacted.
ffprobe available for audio analysis (part of ffmpeg)bash#!/bin/bash set -euo pipefail BUNDLE_DIR="deepgram-debug-$(date +%Y%m%d-%H%M%S)" mkdir -p "$BUNDLE_DIR" # System info { echo "=== System ===" uname -a echo "" echo "=== Node.js ===" node --version 2>/dev/null || echo "Not installed" echo "" echo "=== @deepgram/sdk ===" npm list @deepgram/sdk 2>/dev/null || echo "Not installed" echo "" echo "=== Python ===" python3 --version 2>/dev/null || echo "Not installed" pip show deepgram-sdk 2>/dev/null || echo "Not installed" } > "$BUNDLE_DIR/environment.txt"
bash# Test REST API { echo "=== REST API Test ===" echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "" echo "--- Project listing ---" curl -s -w "\nHTTP: %{http_code} | Time: %{time_total}s\n" \ 'https://api.deepgram.com/v1/projects' \ -H "Authorization: Token $DEEPGRAM_API_KEY" 2>&1 | \ sed "s/$DEEPGRAM_API_KEY/REDACTED/g" echo "" echo "--- Transcription test (Bueller sample) ---" curl -s -w "\nHTTP: %{http_code} | Time: %{time_total}s\n" \ -X POST 'https://api.deepgram.com/v1/listen?model=nova-3&smart_format=true' \ -H "Authorization: Token $DEEPGRAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://static.deepgram.com/examples/Bueller-Life-moves-702702706.wav"}' 2>&1 | \ sed "s/$DEEPGRAM_API_KEY/REDACTED/g" echo "" echo "--- WebSocket handshake test ---" curl -s -w "\nHTTP: %{http_code}\n" -o /dev/null \ 'https://api.deepgram.com/v1/listen' \ -H "Authorization: Token $DEEPGRAM_API_KEY" \ -H "Upgrade: websocket" 2>&1 | \ sed "s/$DEEPGRAM_API_KEY/REDACTED/g" } > "$BUNDLE_DIR/connectivity.txt"
bash# Analyze problem audio file (if provided) analyze_audio() { local file="$1" local outfile="$BUNDLE_DIR/audio-analysis.txt" { echo "=== Audio Analysis: $(basename "$file") ===" echo "File size: $(stat -f%z "$file" 2>/dev/null || stat -c%s "$file" 2>/dev/null)" echo "" if command -v ffprobe &>/dev/null; then echo "--- FFprobe Output ---" ffprobe -v quiet -print_format json -show_format -show_streams "$file" echo "" echo "--- Key Properties ---" local codec=$(ffprobe -v quiet -show_entries stream=codec_name -of csv=p=0 "$file") local rate=$(ffprobe -v quiet -show_entries stream=sample_rate -of csv=p=0 "$file") local channels=$(ffprobe -v quiet -show_entries stream=channels -of csv=p=0 "$file") local duration=$(ffprobe -v quiet -show_entries format=duration -of csv=p=0 "$file") local bitdepth=$(ffprobe -v quiet -show_entries stream=bits_per_sample -of csv=p=0 "$file") echo "Codec: $codec" echo "Sample rate: $rate Hz" echo "Channels: $channels" echo "Bit depth: $bitdepth" echo "Duration: ${duration}s" echo "" # Check for common issues echo "--- Compatibility Check ---" [[ "$rate" -lt 8000 ]] && echo "WARNING: Sample rate below 8kHz minimum" [[ "$rate" -gt 48000 ]] && echo "WARNING: Sample rate above 48kHz — consider downsampling" [[ "$channels" -gt 2 ]] && echo "WARNING: >2 channels — Deepgram supports mono/stereo" else echo "ffprobe not available — install ffmpeg for audio analysis" echo "" echo "--- File header (hex) ---" xxd -l 16 "$file" fi } > "$outfile" }
typescript// Wrap Deepgram client to capture full request/response for debugging import { createClient } from '@deepgram/sdk'; import { writeFileSync } from 'fs'; async function captureDebugRequest(audioSource: string | Buffer) { const client = createClient(process.env.DEEPGRAM_API_KEY!); const startTime = Date.now(); try { const isUrl = typeof audioSource === 'string'; const method = isUrl ? 'transcribeUrl' : 'transcribeFile'; const source = isUrl ? { url: audioSource } : audioSource; const options = { model: 'nova-3' as const, smart_format: true }; const { result, error } = isUrl ? await client.listen.prerecorded.transcribeUrl(source as any, options) : await client.listen.prerecorded.transcribeFile(source as any, options); const elapsed = Date.now() - startTime; const debugLog = { timestamp: new Date().toISOString(), method, options, elapsed_ms: elapsed, success: !error, error: error ? { message: error.message, status: (error as any).status } : null, result_summary: result ? { request_id: result.metadata?.request_id, duration: result.metadata?.duration, model: result.metadata?.model_info, transcript_length: result.results?.channels[0]?.alternatives[0]?.transcript?.length, confidence: result.results?.channels[0]?.alternatives[0]?.confidence, } : null, }; writeFileSync('debug-request.json', JSON.stringify(debugLog, null, 2)); console.log('Debug log written to debug-request.json'); return debugLog; } catch (err: any) { const debugLog = { timestamp: new Date().toISOString(), elapsed_ms: Date.now() - startTime, error: { message: err.message, stack: err.stack }, }; writeFileSync('debug-request.json', JSON.stringify(debugLog, null, 2)); throw err; } }
bash# Package everything (API keys already redacted in Step 2) { echo "=== Deepgram Debug Bundle ===" echo "Created: $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "" echo "Issue Description: [DESCRIBE YOUR ISSUE HERE]" echo "" echo "Files:" echo " environment.txt - System and SDK versions" echo " connectivity.txt - API connectivity test results" echo " audio-analysis.txt - Audio file properties (if provided)" echo " debug-request.json - Request/response capture (if run)" echo "" echo "Attach this bundle to your support ticket at:" echo " https://developers.deepgram.com/support" } > "$BUNDLE_DIR/README.txt" # Final sanitization pass — remove any leaked keys find "$BUNDLE_DIR" -type f -exec sed -i "s/$DEEPGRAM_API_KEY/REDACTED/g" {} + tar czf "$BUNDLE_DIR.tar.gz" "$BUNDLE_DIR" echo "Bundle created: $BUNDLE_DIR.tar.gz"
Subject: [Issue Type] — Brief Description
Environment:
- SDK: @deepgram/sdk v3.x.x
- Runtime: Node.js 20.x / Python 3.12
- OS: Ubuntu 22.04
Request ID: (from result.metadata.request_id)
Model: nova-3
Timestamp: 2026-03-22T12:00:00Z
Issue:
[Describe what you expected vs what happened]
Steps to Reproduce:
1. [Step 1]
2. [Step 2]
3. [Observe error]
Attachments:
- deepgram-debug-YYYYMMDD-HHMMSS.tar.gz
- Sample audio file (if shareable)deepgram-debug-YYYYMMDD-HHMMSS.tar.gz with sanitized diagnostics| Issue | Cause | Resolution | |-------|-------|------------| | ffprobe not found | ffmpeg not installed | apt install ffmpeg or brew install ffmpeg | | Connectivity test 401 | Key not exported | export DEEPGRAM_API_KEY=your-key | | Empty audio analysis | File path wrong | Verify file exists and is readable | | Tar fails | Permissions issue | Check write permissions in current directory |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 28,390 | 13,317 | -53% | 1 | 1 | 0% | 6,053 | 5,723 | -5% | 0 | 0 | — |
case-20 | pass→pass | 12,698 | 10,628 | -16% | 1 | 1 | 0% | 2,862 | 4,915 | +72% | 0 | 0 | — |
case-02 | fail→fail | 26,474 | 5,988 | -77% | 1 | 1 | 0% | 5,897 | 2,858 | -52% | 0 | 0 | — |
case-03 | fail→pass | 18,540 | 12,222 | -34% | 1 | 1 | 0% | 4,199 | 5,590 | +33% | 0 | 0 | — |
case-04 | fail→pass | 12,135 | 5,879 | -52% | 1 | 1 | 0% | 2,707 | 3,948 | +46% | 0 | 0 | — |
case-05 | fail→fail | 15,499 | 11,962 | -23% | 1 | 1 | 0% | 2,885 | 4,964 | +72% | 0 | 0 | — |
case-06 | pass→pass | 7,185 | 6,997 | -3% | 1 | 1 | 0% | 1,278 | 3,969 | +211% | 0 | 0 | — |
case-07 | fail→pass | 6,535 | 5,201 | -20% | 1 | 1 | 0% | 1,227 | 3,467 | +183% | 0 | 0 | — |
case-08 | fail→pass | 7,654 | 3,454 | -55% | 1 | 1 | 0% | 1,534 | 3,257 | +112% | 0 | 0 | — |
case-09 | pass→pass | 6,637 | 4,400 | -34% | 1 | 1 | 0% | 1,329 | 3,548 | +167% | 0 | 0 | — |
case-10 | fail→pass | 9,114 | 6,448 | -29% | 1 | 1 | 0% | 1,945 | 3,934 | +102% | 0 | 0 | — |
case-11 | fail→pass | 9,891 | 7,107 | -28% | 1 | 1 | 0% | 1,961 | 3,917 | +100% | 0 | 0 | — |
case-12 | fail→pass | 5,752 | 6,601 | +15% | 1 | 1 | 0% | 987 | 2,862 | +190% | 0 | 0 | — |
case-13 | fail→pass | 13,652 | 4,140 | -70% | 1 | 1 | 0% | 2,807 | 3,334 | +19% | 0 | 0 | — |
case-14 | pass→pass | 3,849 | 2,929 | -24% | 1 | 1 | 0% | 821 | 3,187 | +288% | 0 | 0 | — |
case-15 | pass→pass | 10,823 | 2,677 | -75% | 1 | 1 | 0% | 1,869 | 3,035 | +62% | 0 | 0 | — |
case-16 | fail→pass | 3,141 | 2,883 | -8% | 1 | 1 | 0% | 551 | 3,107 | +464% | 0 | 0 | — |
case-17 | pass→pass | 6,560 | 2,010 | -69% | 1 | 1 | 0% | 741 | 2,915 | +293% | 0 | 0 | — |
case-18 | pass→pass | 3,795 | 2,976 | -22% | 1 | 1 | 0% | 696 | 3,077 | +342% | 0 | 0 | — |
case-19 | pass→pass | 16,476 | 10,921 | -34% | 1 | 1 | 0% | 3,214 | 4,787 | +49% | 0 | 0 | — |
case-21 | pass→pass | 7,266 | 4,888 | -33% | 1 | 1 | 0% | 1,455 | 3,505 | +141% | 0 | 0 | — |
case-22 | pass→pass | 14,899 | 13,450 | -10% | 1 | 1 | 0% | 3,195 | 5,676 | +78% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +45 percentage points is the difference between those two pass rates over the 21 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.