GR

groq-debug-bundle

Automates the collection of redacted environment data and logs to assist in Groq API support and troubleshooting.

Install

mkdir -p .claude/skills/groq-debug-bundle && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2752" && unzip -o skill.zip -d .claude/skills/groq-debug-bundle && rm skill.zip

Installs to .claude/skills/groq-debug-bundle

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Collect Groq debug evidence for support tickets and troubleshooting.
68 charsno explicit “when” trigger
Beginner

Key capabilities

  • Capture OS, Node/Python versions, and Groq SDK versions
  • Confirm API authentication and count available models
  • Capture rate limit headers and `retry-after` values
  • Measure per-model latency for minimal completions
  • Extract and redact Groq-related errors from application logs
  • Package diagnostic information into a `.tar.gz` archive

How it works

The skill executes a six-step shell script that collects system environment details, tests Groq API connectivity and rate limits, measures model latency, and extracts relevant application logs. All sensitive information is masked before packaging the data into a timestamped `.tar.gz` archive.

Inputs & outputs

You give it
Groq API key, application logs, and system environment variables
You get back
A redacted `.tar.gz` archive containing environment info, SDK version, connectivity test results, rate limit headers, per-model latency, and redacted applicatio

When to use groq-debug-bundle

  • Prepare diagnostic data for support
  • Collect connectivity test logs
  • Debug SDK installation issues
  • Gather latency metrics

About 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_KEY set in environment
  • curl and jq available
  • 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.

  1. Environment — capture OS, Node/Python versions, installed Groq SDK versions, and a masked key fingerprint (length + 4-char prefix only, never the key).
  2. Connectivity — hit GET /openai/v1/models to confirm auth and count available models.
  3. Rate limits — send a 1-token completion and grab the x-ratelimit-*, retry-after, and x-request-id response headers.
  4. Latency — time a minimal completion against each model of interest.
  5. Log extraction — grep recent Groq/429/rate-limit errors from logs/*.log and mask any gsk_ keys and .env values.
  6. Packagetar -czf the 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:

FilePurposeSensitive?
environment.txtNode/Python versions, SDK version, key fingerprintKey prefix only
connectivity.txtAPI reachability, model countNo
rate-limits.txtCurrent rate limit headersNo
latency.txtResponse times per modelNo
app-logs.txtRecent error logs (redacted)Redacted
config-redacted.txtConfig 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_KEY unsetenvironment.txt records NOT SET and every curl step returns 401; 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 — install jq, 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 omits app-logs.txt rather than failing.
  • 429 during latency/rate-limit steps — expected when debugging throttling; the captured retry-after and x-ratelimit-* headers are the point. For deeper 429 handling see groq-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

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.

When not to use it

  • When `GROQ_API_KEY` is not set in the environment
  • When `jq` is not installed on the system

Prerequisites

GROQ_API_KEY environment variable setcurl command-line tool availablejq command-line tool availabletar command-line tool available

Limitations

  • The bundle will record `NOT SET` for `GROQ_API_KEY` if it is unset
  • Connectivity/model-count lines will be empty if `jq` is not installed
  • Application logs will be omitted if the `logs/` directory is absent

How it compares

This skill automates the collection and redaction of specific Groq diagnostic data into a single bundle, which is more efficient and secure than manually gathering and redacting information for support tickets.

Compared to similar skills

groq-debug-bundle side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
groq-debug-bundle (this skill)227dCautionBeginner
analyzing-logs1427dReviewBeginner
sentry104moCautionBeginner
obsidian-incident-runbook327dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

sentry

openai

Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.

1048

obsidian-incident-runbook

jeremylongshore

Troubleshoot Obsidian plugin failures with systematic incident response. Use when plugins crash, data is corrupted, or users report critical issues with your Obsidian plugin. Trigger with phrases like "obsidian crash", "obsidian plugin broken", "obsidian incident", "debug obsidian failure", "obsidian emergency".

346

obsidian-observability

jeremylongshore

Set up comprehensive logging and monitoring for Obsidian plugins. Use when implementing debug logging, tracking plugin performance, or setting up error reporting for your Obsidian plugin. Trigger with phrases like "obsidian logging", "obsidian monitoring", "obsidian debug", "track obsidian plugin".

534

langsmith-observability

davila7

LLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring production systems, or building systematic testing pipelines for AI applications.

430

network-info

UKGovernmentBEIS

Gather network configuration and connectivity information including interfaces, routes, and DNS

329

Search skills

Search the agent skills registry