Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Execute Deepgram incident response procedures for production issues. Use when handling Deepgram outages, debugging production failures, or responding to service degradation. Trigger: "deepgram incident", "deepgram outage", "deepgram production issue", "deepgram down", "deepgram emergency", "deepgram 500 errors".
.claude/skills/jeremylongshore-deepgram-incident-runbook/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 138% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 114% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 115% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 124% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 112% | 0% |
Standardized incident response for Deepgram-related production issues. Includes automated triage script, severity classification (SEV1-SEV4), immediate mitigation actions, fallback activation, and post-incident review template.
| Resource | URL | |----------|-----| | Deepgram Status | https://status.deepgram.com | | Deepgram Console | https://console.deepgram.com | | Support Email | support@deepgram.com | | Community | https://github.com/orgs/deepgram/discussions |
| Level | Definition | Response Time | Example | |-------|------------|---------------|---------| | SEV1 | Complete outage, all transcriptions failing | Immediate | 100% 5xx errors | | SEV2 | Major degradation, >50% error rate | < 15 min | Specific model failing | | SEV3 | Minor degradation, elevated latency | < 1 hour | P95 > 30s | | SEV4 | Single feature affected, cosmetic | < 24 hours | Diarization inaccurate |
bash#!/bin/bash set -euo pipefail echo "=== Deepgram Incident Triage ===" echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "" # 1. Check Deepgram status page echo "--- Status Page ---" STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://status.deepgram.com) echo "Status page: HTTP $STATUS" # 2. Test API connectivity echo "" echo "--- API Connectivity ---" curl -s -w "\nHTTP: %{http_code} | Latency: %{time_total}s\n" \ 'https://api.deepgram.com/v1/projects' \ -H "Authorization: Token $DEEPGRAM_API_KEY" | head -5 # 3. Test transcription echo "" echo "--- Transcription Test ---" RESULT=$(curl -s -w "\n%{http_code}" \ -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"}') HTTP_CODE=$(echo "$RESULT" | tail -1) echo "Transcription: HTTP $HTTP_CODE" # 4. Test multiple models echo "" echo "--- Model Tests ---" for MODEL in nova-3 nova-2 base; do CODE=$(curl -s -o /dev/null -w "%{http_code}" \ -X POST "https://api.deepgram.com/v1/listen?model=$MODEL" \ -H "Authorization: Token $DEEPGRAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://static.deepgram.com/examples/Bueller-Life-moves-702702706.wav"}') echo "$MODEL: HTTP $CODE" done # 5. Query internal metrics (if available) echo "" echo "--- Internal Metrics ---" curl -s localhost:3000/health 2>/dev/null || echo "Health endpoint unavailable"
typescriptimport { createClient } from '@deepgram/sdk'; class DeepgramFallbackService { private primaryClient: ReturnType<typeof createClient>; private isInFallbackMode = false; private failedRequests: Array<{ url: string; options: any; timestamp: Date }> = []; constructor(apiKey: string) { this.primaryClient = createClient(apiKey); } async transcribe(url: string, options: any) { if (this.isInFallbackMode) { return this.handleFallback(url, options); } try { const { result, error } = await this.primaryClient.listen.prerecorded.transcribeUrl( { url }, options ); if (error) throw error; return { source: 'deepgram', result }; } catch (err) { console.error('Deepgram failed, entering fallback mode'); this.isInFallbackMode = true; return this.handleFallback(url, options); } } private handleFallback(url: string, options: any) { // Queue for later replay this.failedRequests.push({ url, options, timestamp: new Date() }); console.warn(`Queued for replay: ${url} (${this.failedRequests.length} in queue)`); return { source: 'fallback', message: 'Transcription queued — Deepgram is currently unavailable', queuePosition: this.failedRequests.length, }; } // Call when Deepgram recovers async replayQueue() { console.log(`Replaying ${this.failedRequests.length} queued requests...`); const queue = [...this.failedRequests]; this.failedRequests = []; this.isInFallbackMode = false; for (const req of queue) { try { await this.transcribe(req.url, req.options); console.log(`Replayed: ${req.url}`); } catch (err: any) { console.error(`Replay failed: ${req.url} — ${err.message}`); this.failedRequests.push(req); } } } }
typescriptasync function mitigateSev2() { const client = createClient(process.env.DEEPGRAM_API_KEY!); const testUrl = 'https://static.deepgram.com/examples/Bueller-Life-moves-702702706.wav'; console.log('=== SEV2 Mitigation ==='); // Test each model to find working ones const models = ['nova-3', 'nova-2', 'base', 'whisper-large'] as const; const working: string[] = []; const broken: string[] = []; for (const model of models) { try { const { error } = await client.listen.prerecorded.transcribeUrl( { url: testUrl }, { model } ); if (error) throw error; working.push(model); console.log(` [OK] ${model}`); } catch { broken.push(model); console.log(` [FAIL] ${model}`); } } // Recommended actions console.log(`\nWorking models: ${working.join(', ')}`); console.log(`Broken models: ${broken.join(', ')}`); if (working.length > 0) { console.log(`\nAction: Switch to ${working[0]} until ${broken.join(', ')} recovers`); } else { console.log('\nAction: All models failing — escalate to SEV1'); } // Test features const features = [ { name: 'diarize', opts: { diarize: true } }, { name: 'smart_format', opts: { smart_format: true } }, { name: 'utterances', opts: { utterances: true } }, ]; console.log('\n--- Feature Tests ---'); for (const { name, opts } of features) { try { const { error } = await client.listen.prerecorded.transcribeUrl( { url: testUrl }, { model: working[0] ?? 'nova-3', ...opts } ); console.log(` [${error ? 'FAIL' : 'OK'}] ${name}`); } catch { console.log(` [FAIL] ${name}`); } } }
typescript// SEV3: Elevated latency — increase timeouts and enable aggressive retry function configureSev3Mitigation() { return { timeout: 60000, // Increase from 30s to 60s maxRetries: 5, // Increase from 3 to 5 model: 'nova-2', // Fallback to proven model diarize: false, // Disable to reduce processing smart_format: true, // Keep basic formatting utterances: false, // Disable to reduce processing summarize: false, // Disable detect_topics: false, // Disable }; } // SEV4: Single feature broken — disable and continue function configureSev4Mitigation(brokenFeature: string) { const overrides: Record<string, any> = {}; overrides[brokenFeature] = false; console.log(`Disabled ${brokenFeature} — filing Deepgram support ticket`); return overrides; }
markdown## Deepgram Incident Report **Date:** YYYY-MM-DD **Duration:** HH:MM start — HH:MM end (X minutes total) **Severity:** SEV1/2/3/4 **On-Call:** [Name] ### Timeline | Time (UTC) | Event | |------------|-------| | HH:MM | Alert fired: [alert name] | | HH:MM | On-call acknowledged | | HH:MM | Triage completed, classified as SEV[N] | | HH:MM | Mitigation applied: [action taken] | | HH:MM | Service restored | | HH:MM | All-clear confirmed | ### Impact - **Failed requests:** N - **Affected users:** N - **Revenue impact:** $X - **SLA impact:** X minutes of downtime ### Root Cause [Description of root cause — Deepgram outage / configuration issue / etc.] ### What Went Well - [Item 1] - [Item 2] ### What Could Be Improved - [Item 1] - [Item 2] ### Action Items | Action | Owner | Due Date | |--------|-------|----------| | [Action 1] | [Name] | YYYY-MM-DD | | [Action 2] | [Name] | YYYY-MM-DD |
| Level | Contact | When | |-------|---------|------| | L1 | On-call engineer | Alert fires | | L2 | Team lead | 15 min without resolution | | L3 | Deepgram support (support@deepgram.com) | Confirmed Deepgram-side issue | | L4 | Engineering director | SEV1 > 1 hour |
| Issue | Cause | Solution | |-------|-------|----------| | Triage script can't reach Deepgram | Network or DNS | Check outbound HTTPS to api.deepgram.com | | Fallback queue growing | Extended outage | Alert if queue > 1000, consider alternate STT | | Replay failures | Audio URLs expired | Re-fetch audio from source before replay | | Status page shows green but API fails | Partial outage not yet reflected | Report to Deepgram support immediately |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 15,698 | 12,084 | -23% | 1 | 1 | 0% | 3,618 | 5,450 | +51% | 0 | 0 | — |
case-02 | fail→fail | 25,072 | 17,782 | -29% | 1 | 1 | 0% | 5,380 | 7,099 | +32% | 0 | 0 | — |
case-03 | fail→fail | 18,316 | 17,927 | -2% | 1 | 1 | 0% | 3,368 | 6,210 | +84% | 0 | 0 | — |
case-04 | fail→pass | 8,444 | 4,697 | -44% | 1 | 1 | 0% | 1,579 | 3,762 | +138% | 0 | 0 | — |
case-05 | fail→pass | 9,395 | 3,178 | -66% | 1 | 1 | 0% | 1,626 | 3,483 | +114% | 0 | 0 | — |
case-06 | fail→pass | 9,502 | 3,495 | -63% | 1 | 1 | 0% | 1,643 | 3,535 | +115% | 0 | 0 | — |
case-07 | fail→pass | 9,635 | 3,833 | -60% | 1 | 1 | 0% | 1,581 | 3,537 | +124% | 0 | 0 | — |
case-08 | fail→pass | 8,998 | 4,133 | -54% | 1 | 1 | 0% | 1,596 | 3,378 | +112% | 0 | 0 | — |
case-09 | fail→pass | 10,479 | 2,161 | -79% | 1 | 1 | 0% | 1,708 | 3,238 | +90% | 0 | 0 | — |
case-10 | pass→pass | 4,289 | 2,729 | -36% | 1 | 1 | 0% | 822 | 3,380 | +311% | 0 | 0 | — |
case-11 | fail→pass | 9,956 | 3,916 | -61% | 1 | 1 | 0% | 1,876 | 3,541 | +89% | 0 | 0 | — |
case-12 | fail→pass | 12,664 | 9,678 | -24% | 1 | 1 | 0% | 2,173 | 4,789 | +120% | 0 | 0 | — |
case-13 | pass→pass | 14,076 | 11,315 | -20% | 1 | 1 | 0% | 2,258 | 5,055 | +124% | 0 | 0 | — |
case-14 | pass→pass | 7,779 | 7,887 | +1% | 1 | 1 | 0% | 1,321 | 4,271 | +223% | 0 | 0 | — |
case-15 | fail→pass | 26,531 | 21,823 | -18% | 1 | 1 | 0% | 1,047 | 5,268 | +403% | 0 | 0 | — |
case-16 | fail→pass | 6,803 | 7,942 | +17% | 1 | 1 | 0% | 1,173 | 4,250 | +262% | 0 | 0 | — |
case-17 | pass→pass | 11,340 | 3,361 | -70% | 1 | 1 | 0% | 2,109 | 3,425 | +62% | 0 | 0 | — |
case-18 | fail→pass | 14,693 | 2,850 | -81% | 1 | 1 | 0% | 698 | 3,212 | +360% | 0 | 0 | — |
case-19 | fail→pass | 12,167 | 1,730 | -86% | 1 | 1 | 0% | 2,150 | 3,115 | +45% | 0 | 0 | — |
case-20 | pass→pass | 16,078 | 15,109 | -6% | 1 | 1 | 0% | 3,368 | 6,013 | +79% | 0 | 0 | — |
case-21 | pass→pass | 15,644 | 18,307 | +17% | 1 | 1 | 0% | 2,587 | 6,220 | +140% | 0 | 0 | — |
case-22 | pass→pass | 14,561 | 14,214 | -2% | 1 | 1 | 0% | 3,126 | 5,780 | +85% | 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 20 counted toward the lift figure. The other 2 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 +55 percentage points is the difference between those two pass rates over the 20 comparable cases.
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.