anth-debug-bundle

Featured

Collect Anthropic Claude API debug evidence for support and troubleshooting. Use when encountering persistent API issues, preparing support tickets, or collecting diagnostic information including request IDs and rate limit headers. Trigger with phrases like "anthropic debug", "claude debug bundle", "collect anthropic logs", "anthropic diagnostic", "claude support ticket".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anthropic Debug Bundle ## Overview Collect diagnostic information for Claude API issues. Every API response includes a `request-id` header — this is the single most important piece of data for Anthropic support. ## Prerequisites - Anthropic SDK installed - Access to application logs - `ANTHROPIC_API_KEY` set in environment ## Instructions ### Step 1: Capture Request ID ```python import anthropic client = anthropic.Anthropic() try: message = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=64, messages=[{"role": "user", "content": "test"}] ) print(f"Request ID: {message._request_id}") # req_01A1B2C3... except anthropic.APIStatusError as e: print(f"Request ID: {e.response.headers.get('request-id')}") print(f"Status: {e.status_code}") print(f"Error: {e.message}") ``` ```typescript // TypeScript — access raw response headers const response = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 64, messages: [{ role: 'user', content: 'test' }], }).asResponse(); console.log('Request ID:', response.headers.get('request-id')); console.log('Rate limit remaining:', response.headers.get('anthropic-ratelimit-requests-remaining')); ``` ### Step 2: Debug Bundle Script ```bash #!/bin/bash # anthropic-debug-bundle.sh BUNDLE_DIR="anthropic-debug-$(date +%Y%m%d-%H%M%S)" mkdir -p "$BUNDLE_DIR" echo "=== Anthropic Debug Bundle ===" > "$BUNDLE_DIR/summary.txt" echo "Generated: $(dat...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category