groq-debug-bundle
FreeNo executable scriptsNot checkedCollect Groq debug evidence for support tickets and troubleshooting. Use when encountering persistent issues, preparing support tickets, or collecting…
by jeremylongshore★ 2,961 GitHub starsAbout this skill
Groq Debug Bundle
Current State
!node --version 2>/dev/null || echo 'N/A'
!python3 --version 2>/dev/null || echo 'N/A'
!npm list groq-sdk 2>/dev/null | grep groq-sdk || echo 'groq-sdk not installed'
Overview
Collect all diagnostic information needed to resolve Groq API issues. Produces a redacted support bundle (a .tar.gz) with environment info, SDK version, connectivity test results, rate limit headers, per-model latency, and redacted application logs — everything a Groq support engineer needs, with secrets masked before the archive is written.
Prerequisites
GROQ_API_KEYset in environmentcurlandjqavailable- Access to application logs (optional — the log step is skipped if
logs/is absent)
Instructions
The bundle is assembled by a six-step shell script. Each step appends to a file inside a timestamped $BUNDLE_DIR; the final step tars it and deletes the working copy. Run the steps in order in one shell, or paste the whole sequence into a script.
- Environment — capture OS, Node/Python versions, installed Groq SDK versions, and a masked key fingerprint (length + 4-char prefix only, never the key).
- Connectivity — hit
GET /openai/v1/modelsto confirm auth and count available models. - Rate limits — send a 1-token completion and grab the
x-ratelimit-*,retry-after, andx-request-idresponse headers. - Latency — time a minimal completion against each model of interest.
- Log extraction — grep recent Groq/429/rate-limit errors from
logs/*.logand mask anygsk_keys and.envvalues. - Package —
tar -czfthe directory, remove the working copy, and print a review reminder.
The skeleton of Step 1 (the rest is in the full walkthrough):
#!/bin/bash
set -euo pipefail
BUNDLE_DIR="groq-debug-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BUNDLE_DIR"
# ... append environment, connectivity, rate-limits, latency, logs ...
See references/implementation.md for the complete, copy-pasteable six-step script.
Output
A single archive named groq-debug-TIMESTAMP.tar.gz (where TIMESTAMP is YYYYMMDD-HHMMSS) containing:
| File | Purpose | Sensitive? |
|---|---|---|
environment.txt |
Node/Python versions, SDK version, key fingerprint | Key prefix only |
connectivity.txt |
API reachability, model count | No |
rate-limits.txt |
Current rate limit headers | No |
latency.txt |
Response times per model | No |
app-logs.txt |
Recent error logs (redacted) | Redacted |
config-redacted.txt |
Config keys only (values masked) | Redacted |
The TypeScript diagnostic (see Examples) instead prints a JSON report with auth, modelsAvailable, completion, latencyMs, model, and usage.
Error Handling
GROQ_API_KEYunset —environment.txtrecordsNOT SETand everycurlstep returns401; export the key before collecting.401 Invalid API Key— the key is wrong or revoked; the bundle still captures the failure, which is the evidence support needs.jq: command not found— installjq, or the connectivity/model-count lines will be empty (the rest of the bundle still builds).- No
logs/directory — Step 5 is skipped silently; the bundle omitsapp-logs.txtrather than failing. 429during latency/rate-limit steps — expected when debugging throttling; the capturedretry-afterandx-ratelimit-*headers are the point. For deeper 429 handling seegroq-rate-limits.
ALWAYS Redact Before Sharing
- API keys (anything starting with
gsk_) - Bearer tokens
- PII (emails, names, IDs)
- Internal hostnames and IPs
Examples
A quick SDK-based diagnostic that confirms auth, lists models, times a completion, and prints a JSON report:
import Groq from "groq-sdk";
const groq = new Groq();
const models = await groq.models.list(); // 401 here = bad key
console.log(models.data.map((m) => m.id));
Full TypeScript diagnostic, healthy/bad-key sample outputs, and an end-to-end shell run with the resulting tarball listing are in references/examples.md.
Resources
- Groq Error Codes
- Groq Status Page
- Full implementation walkthrough
- Diagnostic examples & sample output
Next Steps
For rate limit and 429 throttling issues, escalate to the groq-rate-limits skill, which covers backoff strategy and quota inspection in depth.
Install groq-debug-bundle in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
Bash(grep:*)Bash(curl:*)Bash(tar:*)Bundled files
FAQ
What does the groq-debug-bundle skill do?
Collect Groq debug evidence for support tickets and troubleshooting. Use when encountering persistent issues, preparing support tickets, or collecting diagnostic information for Groq problems. Trigger with phrases like "groq debug", "groq support bundle", "collect groq logs", "groq diagnostic".
How do I install the groq-debug-bundle skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the groq-debug-bundle skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic