anth-debug-bundle
'Collect Anthropic Claude API debug evidence for support and troubleshooting.
Install / Use
npx skills add jeremylongshore/tons-of-skills-marketplace --skill anth-debug-bundleInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Our assessment of anth-debug-bundle
anth-debug-bundle scores 88/100 on our quality scale, 132nd of 267 Customer Support skills we index (top 50%).
Its SKILL.md is 5.9 KB long, well organised into 20 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
With 2,785 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so anth-debug-bundle is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
anth-debug-bundle compared with similar skills
All 4 of these similar skills score higher than anth-debug-bundle; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| anth-debug-bundle (this skill)by jeremylongshore | 88 | 2.8k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 86.3k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 84.6k | today | MCP Server |
| crawl4aiby unclecode | 100 | 84.5k | 5d ago | MCP Server |
Frequently asked questions
- How do I install anth-debug-bundle?
- Run
npx skills add jeremylongshore/tons-of-skills-marketplace --skill anth-debug-bundle. The install tabs above show the steps for each supported agent. - Which AI agents does anth-debug-bundle work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is anth-debug-bundle safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is anth-debug-bundle still maintained?
- The repository was last updated 6 days ago, so anth-debug-bundle is actively maintained.
Skill content
View source on GitHubname: anth-debug-bundle description: '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".
' allowed-tools: Read, Bash(grep:), Bash(curl:), Bash(tar:*), Grep version: 1.7.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- saas
- ai
- anthropic compatibility: Designed for Claude Code
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_KEYset in environment
Instructions
Step 1: Capture Request ID
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 — 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
#!/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: $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$BUNDLE_DIR/summary.txt"
# SDK versions
echo -e "\n--- SDK Versions ---" >> "$BUNDLE_DIR/summary.txt"
pip show anthropic 2>/dev/null | grep -E "^(Name|Version)" >> "$BUNDLE_DIR/summary.txt"
npm list @anthropic-ai/sdk 2>/dev/null >> "$BUNDLE_DIR/summary.txt"
python3 --version >> "$BUNDLE_DIR/summary.txt" 2>&1
node --version >> "$BUNDLE_DIR/summary.txt" 2>&1
# API key status (NEVER log the key itself)
echo -e "\n--- Auth Status ---" >> "$BUNDLE_DIR/summary.txt"
echo "ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:+SET (${#ANTHROPIC_API_KEY} chars)}" >> "$BUNDLE_DIR/summary.txt"
# Connectivity test with headers
echo -e "\n--- API Connectivity ---" >> "$BUNDLE_DIR/summary.txt"
curl -s -w "\nHTTP %{http_code} | Time: %{time_total}s" \
-o "$BUNDLE_DIR/api-response.json" \
-D "$BUNDLE_DIR/response-headers.txt" \
https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-4-20250514","max_tokens":8,"messages":[{"role":"user","content":"1"}]}' \
>> "$BUNDLE_DIR/summary.txt"
# Rate limit headers
echo -e "\n--- Rate Limit Headers ---" >> "$BUNDLE_DIR/summary.txt"
grep -i "ratelimit\|request-id\|retry-after" "$BUNDLE_DIR/response-headers.txt" >> "$BUNDLE_DIR/summary.txt"
# API status page
echo -e "\n--- API Status ---" >> "$BUNDLE_DIR/summary.txt"
curl -s https://status.anthropic.com/api/v2/status.json | python3 -c \
"import sys,json; d=json.load(sys.stdin); print(d['status']['description'])" >> "$BUNDLE_DIR/summary.txt" 2>&1
# Package and clean up
tar -czf "$BUNDLE_DIR.tar.gz" "$BUNDLE_DIR"
rm -rf "$BUNDLE_DIR"
echo "Bundle: $BUNDLE_DIR.tar.gz"
Step 3: Redaction Rules
ALWAYS REDACT: API keys, user content/PII, authorization headers
SAFE TO INCLUDE: Request IDs, error messages, rate limit headers, SDK versions, status codes, timestamps
Output
The result is a timestamped compressed bundle containing a redacted summary, SDK and runtime versions, connection status, response headers, and request IDs that support can correlate. It must not contain an API key, authorization header, or customer prompt/response content; inspect the archive before it is attached to a ticket.
Error Handling
If the connectivity request returns an HTTP error, retain its status, request ID, and rate-limit headers in the bundle and record the time of the attempt. If the status endpoint or package lookup is unavailable, note that collection step as unavailable rather than inventing a result. If redaction cannot be verified, do not share the archive; recreate it after removing the unsafe source data.
Examples
When a production request repeatedly receives a 429, capture the request ID from the SDK exception, run the bundle script in a controlled environment, and attach only the reviewed archive plus the affected time window to support. When a response appears malformed, include the SDK version and a redacted error message, but replace the original user prompt with a short synthetic example that reproduces the behavior.
Key Headers for Debugging
| Header | Example | Use |
|--------|---------|-----|
| request-id | req_01A1B2C3... | Support ticket reference |
| anthropic-ratelimit-requests-limit | 1000 | Your RPM cap |
| anthropic-ratelimit-requests-remaining | 995 | Requests left |
| anthropic-ratelimit-tokens-limit | 80000 | Your TPM cap |
| anthropic-ratelimit-tokens-remaining | 79000 | Tokens left |
| retry-after | 30 | Seconds to wait (on 429) |
Resources
Next Steps
For rate limit issues, see anth-rate-limits.
Related Skills
Agent-Reach
86.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
84.6k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
84.5kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
