Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Collect Figma API diagnostic evidence for support tickets and troubleshooting. Use when encountering persistent issues, preparing support tickets, or collecting diagnostic information for Figma API problems. Trigger with phrases like "figma debug", "figma support bundle", "collect figma logs", "figma diagnostic".
.claude/skills/jeremylongshore-figma-debug-bundle/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 32% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 85% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 222% | 0% |
Collect all diagnostic data needed to troubleshoot Figma REST API issues or submit a support request. Outputs a redacted archive with connectivity tests, token validation, rate limit status, and API response samples.
FIGMA_PAT environment variable setcurl and jq availablebash#!/bin/bash # figma-debug-bundle.sh set -euo pipefail BUNDLE_DIR="figma-debug-$(date +%Y%m%d-%H%M%S)" mkdir -p "$BUNDLE_DIR" echo "=== Figma Debug Bundle ===" | tee "$BUNDLE_DIR/summary.txt" echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$BUNDLE_DIR/summary.txt" echo "---" >> "$BUNDLE_DIR/summary.txt" # 1. Environment info echo "--- Environment ---" >> "$BUNDLE_DIR/summary.txt" echo "Node: $(node --version 2>/dev/null || echo 'not installed')" >> "$BUNDLE_DIR/summary.txt" echo "npm: $(npm --version 2>/dev/null || echo 'not installed')" >> "$BUNDLE_DIR/summary.txt" echo "OS: $(uname -srm)" >> "$BUNDLE_DIR/summary.txt" echo "PAT configured: ${FIGMA_PAT:+YES (${#FIGMA_PAT} chars)}" >> "$BUNDLE_DIR/summary.txt" echo "File key: ${FIGMA_FILE_KEY:-NOT SET}" >> "$BUNDLE_DIR/summary.txt" # 2. API connectivity test echo "" >> "$BUNDLE_DIR/summary.txt" echo "--- Connectivity ---" >> "$BUNDLE_DIR/summary.txt" echo -n "GET /v1/me: " >> "$BUNDLE_DIR/summary.txt" curl -s -o "$BUNDLE_DIR/me.json" -w "%{http_code} %{time_total}s" \ -H "X-Figma-Token: ${FIGMA_PAT}" \ https://api.figma.com/v1/me >> "$BUNDLE_DIR/summary.txt" echo "" >> "$BUNDLE_DIR/summary.txt" # 3. File access test (if key is set) if [ -n "${FIGMA_FILE_KEY:-}" ]; then echo -n "GET /v1/files: " >> "$BUNDLE_DIR/summary.txt" curl -s -o "$BUNDLE_DIR/file-meta.json" -w "%{http_code} %{time_total}s" \ -H "X-Figma-Token: ${FIGMA_PAT}" \ "https://api.figma.com/v1/files/${FIGMA_FILE_KEY}?depth=1" >> "$BUNDLE_DIR/summary.txt" echo "" >> "$BUNDLE_DIR/summary.txt" fi # 4. Rate limit check (capture response headers) echo "" >> "$BUNDLE_DIR/summary.txt" echo "--- Rate Limit Headers ---" >> "$BUNDLE_DIR/summary.txt" curl -s -D "$BUNDLE_DIR/headers.txt" -o /dev/null \ -H "X-Figma-Token: ${FIGMA_PAT}" \ https://api.figma.com/v1/me grep -iE "(rate|retry|figma)" "$BUNDLE_DIR/headers.txt" >> "$BUNDLE_DIR/summary.txt" 2>/dev/null || echo "No rate limit headers" >> "$BUNDLE_DIR/summary.txt" # 5. Redact sensitive data echo "" >> "$BUNDLE_DIR/summary.txt" echo "--- Redaction ---" >> "$BUNDLE_DIR/summary.txt" # Remove email from /v1/me response if [ -f "$BUNDLE_DIR/me.json" ]; then jq '{handle: .handle, id: .id, img_url: "[REDACTED]", email: "[REDACTED]"}' \ "$BUNDLE_DIR/me.json" > "$BUNDLE_DIR/me-redacted.json" 2>/dev/null || true rm -f "$BUNDLE_DIR/me.json" fi # Remove raw headers (may contain token in other tools) rm -f "$BUNDLE_DIR/headers.txt" echo "Redaction complete" >> "$BUNDLE_DIR/summary.txt" # 6. Package tar -czf "$BUNDLE_DIR.tar.gz" "$BUNDLE_DIR" rm -rf "$BUNDLE_DIR" echo "Bundle created: $BUNDLE_DIR.tar.gz"
bashchmod +x figma-debug-bundle.sh ./figma-debug-bundle.sh
bash# Inspect the bundle contents tar -tzf figma-debug-*.tar.gz # Extract and review tar -xzf figma-debug-*.tar.gz cat figma-debug-*/summary.txt
figma-debug-YYYYMMDD-HHMMSS.tar.gz containing:summary.txt -- environment, connectivity, rate limit statusme-redacted.json -- authenticated user (email redacted)file-meta.json -- file metadata (if file key provided)| Item | What It Catches | Why It Matters | |------|----------------|----------------| | /v1/me response code | Token validity | 403 = expired/invalid PAT | | /v1/files response code | File access | 404 = wrong key, 403 = not shared | | Rate limit headers | Throttling state | Retry-After shows if currently limited | | Response time | Latency issues | >2s suggests network or server problems |
figd_*)For rate limit issues, see figma-rate-limits.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 25,625 | 14,817 | -42% | 1 | 1 | 0% | 4,018 | 4,320 | +8% | 0 | 0 | — |
case-02 | fail→pass | 26,530 | 18,186 | -31% | 1 | 1 | 0% | 5,339 | 5,350 | +0% | 0 | 0 | — |
case-03 | fail→fail | 23,418 | 24,234 | +3% | 1 | 1 | 0% | 4,937 | 5,573 | +13% | 0 | 0 | — |
case-04 | pass→pass | 19,023 | 23,025 | +21% | 1 | 1 | 0% | 3,634 | 5,394 | +48% | 0 | 0 | — |
case-05 | pass→pass | 19,053 | 15,976 | -16% | 1 | 1 | 0% | 2,906 | 4,750 | +63% | 0 | 0 | — |
case-06 | pass→pass | 13,806 | 17,627 | +28% | 1 | 1 | 0% | 2,742 | 5,041 | +84% | 0 | 0 | — |
case-07 | fail→pass | 16,922 | 14,499 | -14% | 1 | 1 | 0% | 2,906 | 3,823 | +32% | 0 | 0 | — |
case-08 | pass→pass | 6,299 | 6,530 | +4% | 1 | 1 | 0% | 1,123 | 2,712 | +141% | 0 | 0 | — |
case-09 | pass→pass | 7,217 | 5,302 | -27% | 1 | 1 | 0% | 1,388 | 2,554 | +84% | 0 | 0 | — |
case-10 | fail→pass | 9,914 | 1,891 | -81% | 1 | 1 | 0% | 1,676 | 1,897 | +13% | 0 | 0 | — |
case-11 | fail→pass | 7,616 | 2,549 | -67% | 1 | 1 | 0% | 1,096 | 2,031 | +85% | 0 | 0 | — |
case-12 | pass→pass | 8,724 | 2,667 | -69% | 1 | 1 | 0% | 1,222 | 2,036 | +67% | 0 | 0 | — |
case-13 | fail→fail | 18,934 | 5,651 | -70% | 1 | 1 | 0% | 1,336 | 2,626 | +97% | 0 | 0 | — |
case-14 | fail→pass | 4,205 | 2,355 | -44% | 1 | 1 | 0% | 608 | 1,955 | +222% | 0 | 0 | — |
case-15 | fail→pass | 10,694 | 7,269 | -32% | 1 | 1 | 0% | 2,153 | 2,932 | +36% | 0 | 0 | — |
case-16 | pass→pass | 8,497 | 4,149 | -51% | 1 | 1 | 0% | 1,279 | 2,332 | +82% | 0 | 0 | — |
case-17 | fail→fail | 8,056 | 225,549 | +2700% | 1 | 1 | 0% | 1,275 | 2,442 | +92% | 0 | 0 | — |
case-18 | pass→pass | 10,958 | 3,970 | -64% | 1 | 1 | 0% | 1,906 | 2,213 | +16% | 0 | 0 | — |
case-19 | pass→pass | 8,615 | 4,203 | -51% | 1 | 1 | 0% | 1,501 | 2,212 | +47% | 0 | 0 | — |
case-20 | pass→pass | 8,993 | 7,857 | -13% | 1 | 1 | 0% | 1,629 | 2,807 | +72% | 0 | 0 | — |
case-21 | pass→pass | 12,217 | 11,316 | -7% | 1 | 1 | 0% | 1,932 | 3,330 | +72% | 0 | 0 | — |
case-22 | fail→pass | 12,710 | 4,319 | -66% | 1 | 1 | 0% | 2,101 | 2,249 | +7% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.