← ClaudeAtlas

canva-debug-bundlelisted

Collect Canva Connect API debug evidence for troubleshooting and support. Use when encountering persistent issues, preparing support tickets, or collecting diagnostic information for Canva API problems. Trigger with phrases like "canva debug", "canva support bundle", "collect canva logs", "canva diagnostic".
ComeOnOliver/skillshub · ★ 46 · Code & Development · score 80
Install: claude install-skill ComeOnOliver/skillshub
# Canva Debug Bundle ## Overview Collect diagnostic information for Canva Connect API issues. Tests connectivity to `api.canva.com/rest/v1/*`, validates OAuth tokens, checks rate limits, and packages evidence for support tickets. ## Instructions ### Step 1: Connectivity & Auth Check Script ```bash #!/bin/bash # canva-debug.sh — Run with: bash canva-debug.sh set -euo pipefail TOKEN="${CANVA_ACCESS_TOKEN:-}" BUNDLE="canva-debug-$(date +%Y%m%d-%H%M%S)" mkdir -p "$BUNDLE" echo "=== Canva Connect API Debug Bundle ===" | tee "$BUNDLE/summary.txt" echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)" | tee -a "$BUNDLE/summary.txt" echo "" >> "$BUNDLE/summary.txt" # 1. Check API reachability echo "--- API Connectivity ---" >> "$BUNDLE/summary.txt" HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \ -H "Authorization: Bearer ${TOKEN}" \ "https://api.canva.com/rest/v1/users/me") echo "GET /v1/users/me: HTTP $HTTP_CODE" | tee -a "$BUNDLE/summary.txt" # 2. Get user identity (if token valid) if [ "$HTTP_CODE" = "200" ]; then curl -s -H "Authorization: Bearer $TOKEN" \ "https://api.canva.com/rest/v1/users/me" | tee "$BUNDLE/user-identity.json" \ | python3 -m json.tool 2>/dev/null || true echo "Token: VALID" >> "$BUNDLE/summary.txt" else echo "Token: INVALID or EXPIRED (HTTP $HTTP_CODE)" >> "$BUNDLE/summary.txt" fi # 3. Check response headers for rate limit info echo "" >> "$BUNDLE/summary.txt" echo "--- Rate Limit Headers ---" >> "$BUNDLE/summary.txt" curl -s -D - -