← ClaudeAtlas

attio-debug-bundlelisted

Collect Attio integration diagnostic evidence -- API health, scopes, object schema, and rate limit status -- for debugging or support tickets. Trigger: "attio debug", "attio support bundle", "attio diagnostic", "collect attio logs", "attio not working debug".
ComeOnOliver/skillshub · ★ 44 · Code & Development · score 82
Install: claude install-skill ComeOnOliver/skillshub
# Attio Debug Bundle ## Overview Collect all diagnostic evidence needed to debug Attio API issues or file a support ticket. Checks auth, scopes, object schema, rate limit headers, and endpoint connectivity. ## Prerequisites - `ATTIO_API_KEY` environment variable set - `curl` and `jq` available - Permissions to read project environment ## Instructions ### Step 1: Run the Full Diagnostic Script ```bash #!/bin/bash # attio-debug-bundle.sh -- Collects Attio diagnostic evidence set -euo pipefail BUNDLE_DIR="attio-debug-$(date +%Y%m%d-%H%M%S)" mkdir -p "$BUNDLE_DIR" SUMMARY="$BUNDLE_DIR/summary.txt" echo "=== Attio Debug Bundle ===" | tee "$SUMMARY" echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)" | tee -a "$SUMMARY" echo "" | tee -a "$SUMMARY" # 1. Check token is set (never log the actual key) echo "--- Token Status ---" | tee -a "$SUMMARY" if [ -z "${ATTIO_API_KEY:-}" ]; then echo "ATTIO_API_KEY: NOT SET" | tee -a "$SUMMARY" echo "Cannot proceed without API key" | tee -a "$SUMMARY" exit 1 else echo "ATTIO_API_KEY: SET (${#ATTIO_API_KEY} chars, starts with ${ATTIO_API_KEY:0:3}...)" | tee -a "$SUMMARY" fi # 2. API connectivity and auth test echo "" | tee -a "$SUMMARY" echo "--- API Connectivity ---" | tee -a "$SUMMARY" HTTP_CODE=$(curl -s -o "$BUNDLE_DIR/objects-response.json" -w "%{http_code}" \ -H "Authorization: Bearer ${ATTIO_API_KEY}" \ https://api.attio.com/v2/objects) echo "GET /v2/objects: HTTP $HTTP_CODE" | tee -a "$SUMMARY" if [ "$HTTP_CODE" = "200