Skip to main content
anth-debug-bundle 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".
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill anth-debug-bundle명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... 이 저장소의 다른 Skills Implement user sign-up and sign-in flows with Clerk.
Use when building authentication UI, customizing sign-in experience,
or implementing OAuth social login.
Trigger with phrases like "clerk sign-in", "clerk sign-up",
"clerk login flow", "clerk OAuth", "clerk social login".
Implement session management and middleware with Clerk.
Use when managing user sessions, configuring route protection,
or implementing token refresh and custom JWT templates.
Trigger with phrases like "clerk session", "clerk middleware",
"clerk route protection", "clerk token", "clerk JWT".
Configure enterprise SSO, role-based access control, and organization management.
Use when implementing SSO integration, configuring role-based permissions,
or setting up organization-level controls.
Trigger with phrases like "clerk SSO", "clerk RBAC",
"clerk enterprise", "clerk roles", "clerk permissions", "clerk organizations".
jeremylongshore
jeremylongshore/claude-code-plugins-plus-skills
GitHub 저장소 열기 name 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.6.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","ai","anthropic"] compatibility
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
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} " )
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} " )
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
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"
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
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"
echo -e "\n--- API Connectivity ---" >> "$BUNDLE_DIR /summary.txt"
curl -s -w "\nHTTP %{http_code} | Time: %{time_total}s" \
-o \
-D \
https://api.anthropic.com/v1/messages \
-H \
-H \
-H \
-d \
>>
-e >>
grep -i >>
-e >>
curl -s https://status.anthropic.com/api/v2/status.json | python3 -c \
>> 2>&1
tar -czf
-rf
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
Key Headers for Debugging
Header Example Use request-idreq_01A1B2C3...Support ticket reference anthropic-ratelimit-requests-limit1000Your RPM cap anthropic-ratelimit-requests-remaining995Requests left anthropic-ratelimit-tokens-limit80000Your TPM cap anthropic-ratelimit-tokens-remaining79000Tokens left retry-after30Seconds to wait (on 429)
Resources
Next Steps
For rate limit issues, see anth-rate-limits.
"$BUNDLE_DIR /api-response.json"
"$BUNDLE_DIR /response-headers.txt"
"x-api-key: $ANTHROPIC_API_KEY "
"anthropic-version: 2023-06-01"
"content-type: application/json"
'{"model":"claude-sonnet-4-20250514","max_tokens":8,"messages":[{"role":"user","content":"1"}]}'
"$BUNDLE_DIR /summary.txt"
echo
"\n--- Rate Limit Headers ---"
"$BUNDLE_DIR /summary.txt"
"ratelimit\|request-id\|retry-after"
"$BUNDLE_DIR /response-headers.txt"
"$BUNDLE_DIR /summary.txt"
echo
"\n--- API Status ---"
"$BUNDLE_DIR /summary.txt"
"import sys,json; d=json.load(sys.stdin); print(d['status']['description'])"
"$BUNDLE_DIR /summary.txt"
"$BUNDLE_DIR .tar.gz"
"$BUNDLE_DIR "
rm
"$BUNDLE_DIR "
echo
"Bundle: $BUNDLE_DIR .tar.gz"