deepgram-debug-bundle
Deepgramのサポートとトラブルシューティング用にデバッグ情報を収集します。サポートチケットの作成、問題調査、Deepgramの問題に関する診断情報の収集の際に使用できます。「deepgram debug」「deepgram support」「collect deepgram logs」「deepgram diagnostic」「deepgram debug bundle」といったフレーズで実行可能です。
description の原文を見る
Collect Deepgram debug evidence for support and troubleshooting. Use when preparing support tickets, investigating issues, or collecting diagnostic information for Deepgram problems. Trigger with phrases like "deepgram debug", "deepgram support", "collect deepgram logs", "deepgram diagnostic", "deepgram debug bundle".
SKILL.md 本文
Deepgram デバッグバンドル
概要
Deepgram サポートチケットおよびトラブルシューティング用に包括的なデバッグ情報を収集します。
前提条件
- Deepgram API キーが設定されていること
- アプリケーションログへのアクセス権
- 問題を再現するサンプルオーディオファイル
手順
ステップ 1: 環境情報を収集
システムおよび SDK バージョン情報を収集します。
ステップ 2: リクエスト/レスポンスをキャプチャ
完全な API リクエストおよびレスポンスの詳細をログに記録します。
ステップ 3: 最小限の例でテスト
問題を再現するスタンドアロンスクリプトを作成します。
ステップ 4: デバッグバンドルをパッケージ化
すべての情報をコンパイルしてサポートに提出します。
デバッグバンドル内容
1. 環境情報
#!/bin/bash
# debug-env.sh
echo "=== Environment Info ===" > debug-bundle.txt
echo "Date: $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> debug-bundle.txt
echo "OS: $(uname -a)" >> debug-bundle.txt
echo "Node: $(node --version 2>/dev/null || echo 'N/A')" >> debug-bundle.txt
echo "Python: $(python3 --version 2>/dev/null || echo 'N/A')" >> debug-bundle.txt
echo "" >> debug-bundle.txt
echo "=== SDK Versions ===" >> debug-bundle.txt
npm list @deepgram/sdk 2>/dev/null >> debug-bundle.txt
pip show deepgram-sdk 2>/dev/null >> debug-bundle.txt
2. API 接続テスト
#!/bin/bash
# debug-connectivity.sh
echo "=== API Connectivity ===" >> debug-bundle.txt
# Test REST API
echo "REST API:" >> debug-bundle.txt
curl -s -o /dev/null -w "%{http_code}" \
-X GET 'https://api.deepgram.com/v1/projects' \
-H "Authorization: Token $DEEPGRAM_API_KEY" >> debug-bundle.txt
echo "" >> debug-bundle.txt
# Test WebSocket
echo "WebSocket endpoint reachable:" >> debug-bundle.txt
curl -s -o /dev/null -w "%{http_code}" \
-X GET 'https://api.deepgram.com/v1/listen' \
-H "Authorization: Token $DEEPGRAM_API_KEY" >> debug-bundle.txt
3. リクエストログ
// debug-logger.ts
import { createClient } from '@deepgram/sdk';
import { writeFileSync, appendFileSync } from 'fs';
interface DebugLog {
timestamp: string;
requestId?: string;
operation: string;
request: {
url: string;
options: Record<string, unknown>;
audioSize?: number;
};
response?: {
status: number;
body: unknown;
duration: number;
};
error?: {
code: string;
message: string;
stack?: string;
};
}
export class DeepgramDebugger {
private logs: DebugLog[] = [];
private client;
constructor(apiKey: string) {
this.client = createClient(apiKey);
}
async transcribeWithDebug(
audioUrl: string,
options: Record<string, unknown> = {}
) {
const log: DebugLog = {
timestamp: new Date().toISOString(),
operation: 'transcribeUrl',
request: {
url: audioUrl,
options,
},
};
const startTime = Date.now();
try {
const { result, error } = await this.client.listen.prerecorded.transcribeUrl(
{ url: audioUrl },
{ model: 'nova-2', ...options }
);
log.response = {
status: error ? 400 : 200,
body: result || error,
duration: Date.now() - startTime,
};
if (result?.metadata?.request_id) {
log.requestId = result.metadata.request_id;
}
if (error) {
log.error = {
code: error.code || 'UNKNOWN',
message: error.message || 'Unknown error',
};
}
} catch (err) {
log.error = {
code: 'EXCEPTION',
message: err instanceof Error ? err.message : String(err),
stack: err instanceof Error ? err.stack : undefined,
};
log.response = {
status: 0,
body: null,
duration: Date.now() - startTime,
};
}
this.logs.push(log);
return log;
}
exportLogs(filePath: string = './deepgram-debug.json') {
writeFileSync(filePath, JSON.stringify(this.logs, null, 2));
console.log(`Debug logs exported to ${filePath}`);
}
exportForSupport() {
const sanitized = this.logs.map(log => ({
...log,
// Remove any sensitive data
request: {
...log.request,
// Mask API key if accidentally logged
},
}));
return {
timestamp: new Date().toISOString(),
logs: sanitized,
summary: {
totalRequests: this.logs.length,
failedRequests: this.logs.filter(l => l.error).length,
averageDuration: this.logs.reduce((sum, l) =>
sum + (l.response?.duration || 0), 0) / this.logs.length,
},
};
}
}
4. 最小限の再現スクリプト
// debug-repro.ts
/**
* Minimal reproduction script for Deepgram issue
*
* Issue: [DESCRIBE ISSUE HERE]
* Expected: [EXPECTED BEHAVIOR]
* Actual: [ACTUAL BEHAVIOR]
*
* To run:
* DEEPGRAM_API_KEY=xxx npx ts-node debug-repro.ts
*/
import { createClient } from '@deepgram/sdk';
async function reproduce() {
console.log('Starting reproduction...');
console.log('SDK Version:', require('@deepgram/sdk/package.json').version);
console.log('Node Version:', process.version);
const client = createClient(process.env.DEEPGRAM_API_KEY!);
try {
// Minimal code to reproduce issue
const { result, error } = await client.listen.prerecorded.transcribeUrl(
{ url: 'https://static.deepgram.com/examples/nasa-podcast.wav' },
{ model: 'nova-2' }
);
if (error) {
console.error('Error:', JSON.stringify(error, null, 2));
} else {
console.log('Success:', result.metadata.request_id);
}
} catch (err) {
console.error('Exception:', err);
}
}
reproduce();
5. オーディオ解析
#!/bin/bash
# debug-audio.sh
AUDIO_FILE=$1
echo "=== Audio Analysis ===" >> debug-bundle.txt
echo "File: $AUDIO_FILE" >> debug-bundle.txt
echo "Size: $(stat -f%z "$AUDIO_FILE" 2>/dev/null || stat -c%s "$AUDIO_FILE")" >> debug-bundle.txt
# FFprobe analysis (if available)
if command -v ffprobe &> /dev/null; then
echo "FFprobe output:" >> debug-bundle.txt
ffprobe -v quiet -print_format json -show_format -show_streams "$AUDIO_FILE" >> debug-bundle.txt
fi
デバッグバンドル収集スクリプト全体
#!/bin/bash
# collect-debug-bundle.sh
BUNDLE_DIR="deepgram-debug-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BUNDLE_DIR"
echo "Collecting Deepgram debug bundle..."
# 1. Environment info
./debug-env.sh > "$BUNDLE_DIR/environment.txt"
# 2. Connectivity test
./debug-connectivity.sh > "$BUNDLE_DIR/connectivity.txt"
# 3. Recent logs (sanitized)
grep -i deepgram /var/log/app/*.log 2>/dev/null | tail -100 > "$BUNDLE_DIR/app-logs.txt"
# 4. Audio file info (if provided)
if [ -n "$1" ]; then
./debug-audio.sh "$1" > "$BUNDLE_DIR/audio-analysis.txt"
fi
# 5. Package info
cat > "$BUNDLE_DIR/README.txt" << EOF
Deepgram Debug Bundle
Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)
Contents:
- environment.txt: System and SDK versions
- connectivity.txt: API connectivity tests
- app-logs.txt: Recent application logs
- audio-analysis.txt: Audio file details (if provided)
Issue Description:
[ADD YOUR ISSUE DESCRIPTION HERE]
Request IDs:
[ADD RELEVANT REQUEST IDS HERE]
EOF
# Create archive
tar -czf "$BUNDLE_DIR.tar.gz" "$BUNDLE_DIR"
echo "Debug bundle created: $BUNDLE_DIR.tar.gz"
サポートチケットテンプレート
## 問題の概要
[問題の簡潔な説明]
## 環境
- SDK: @deepgram/sdk v[VERSION]
- Node.js: v[VERSION]
- OS: [OS とバージョン]
## リクエスト ID
- [レスポンスメタデータから取得した request_id]
## 再現手順
1. [ステップ 1]
2. [ステップ 2]
## 期待される動作
[本来の動作]
## 実際の動作
[実際に起きる動作]
## デバッグバンドル
[debug-bundle.tar.gz をアップロード]
## オーディオサンプル
[該当する場合は、サンプルオーディオをアップロードするか URL を提供]
リソース
次のステップ
deepgram-rate-limits に進んでレート制限の実装を行います。
ライセンス: MIT(寛容ライセンスのため全文を引用しています) · 原本リポジトリ
詳細情報
- 作者
- Brmbobo
- リポジトリ
- Brmbobo/Web2podcast
- ライセンス
- MIT
- 最終更新
- 2026/1/26
Source: https://github.com/Brmbobo/Web2podcast / ライセンス: MIT
関連スキル
superpowers-streamer-cli
SuperPowers デスクトップストリーマーの npm パッケージをインストール、ログイン、実行、トラブルシューティングできます。ユーザーが npm から `superpowers-ai` をセットアップしたい場合、メールまたは電話でサインインもしくはアカウント作成を行いたい場合、ストリーマーを起動したい場合、表示されたコントロールリンクを開きたい場合、後で停止したい場合、またはソースコードへのアクセスなしに npm やランタイムの一般的な問題から復旧したい場合に使用します。
catc-client-ops
Catalyst Centerのクライアント操作・監視機能 - 有線・無線クライアントのリスト表示・フィルタリング、MACアドレスによる詳細なクライアント検索、クライアント数分析、時間軸での分析、SSIDおよび周波数帯によるフィルタリング、無線トラブルシューティング機能を提供します。MACアドレスやIPアドレスでのクライアント検索、サイト別やSSID別のクライアント数集計、無線周波数帯の分布分析、Wi-Fi信号の問題調査が必要な場合に活用できます。
ci-cd-and-automation
CI/CDパイプラインの設定を自動化します。ビルドおよびデプロイメントパイプラインの構築または変更時に使用できます。品質ゲートの自動化、CI内のテストランナー設定、またはデプロイメント戦略の確立が必要な場合に活用します。
shipping-and-launch
本番環境へのリリース準備を行います。本番環境へのデプロイ準備が必要な場合、リリース前チェックリストが必要な場合、監視機能の設定を行う場合、段階的なロールアウトを計画する場合、またはロールバック戦略が必要な場合に使用します。
linear-release-setup
Linear Releaseに向けたCI/CD設定を生成します。リリース追跡の設定、LinearのCIパイプライン構築、またはLinearリリースとのデプロイメント連携を実施する際に利用できます。GitHub Actions、GitLab CI、CircleCIなど複数のプラットフォームに対応しています。
tracking-application-response-times
API エンドポイント、データベースクエリ、サービスコール全体にわたるアプリケーションのレスポンスタイムを追跡・最適化できます。パフォーマンス監視やボトルネック特定の際に活用してください。「レスポンスタイムを追跡する」「API パフォーマンスを監視する」「遅延を分析する」といった表現で呼び出せます。