groq-incident-runbook
Provides procedures for responding to Groq API failures, including triage, fallback model routing, and error diagnostics.
Install
mkdir -p .claude/skills/groq-incident-runbook && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3399" && unzip -o skill.zip -d .claude/skills/groq-incident-runbook && rm skill.zipInstalls to .claude/skills/groq-incident-runbook
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.
Execute Groq incident response: triage, mitigation, fallback, and postmortem.Key capabilities
- →Classify Groq incident severity
- →Triage Groq API failures with a quick script
- →Decide on mitigation actions based on HTTP codes
- →Apply fixes for rate limits, authentication, or model failures
- →Communicate incident status and conduct post-mortems
How it works
The skill guides users through classifying incident severity, running a quick triage script, using a decision tree to determine actions, applying mitigations, and then communicating and documenting the incident.
Inputs & outputs
When to use groq-incident-runbook
- →Diagnosing Groq 5xx or rate-limit errors
- →Implementing fallback logic to secondary AI providers
- →Automating health checks for API availability
- →Generating post-incident documentation
About this skill
Groq Incident Runbook
Overview
Rapid incident response procedures for Groq API failures. Groq is a third-party inference provider -- when it goes down, your mitigation options are: wait, fall back to a different model, or fall back to a different provider.
This SKILL.md is the high-level flow. Deep, copy-paste-ready material lives in references/:
- triage-and-diagnostics.md — severity table, the Quick Triage script, and the full decision tree.
- mitigations.md — fallback-model routing (TypeScript), 429 rate-limit actions, 401 key rotation.
- communication-and-postmortem.md — Slack/status-page templates, evidence collection, postmortem template.
Prerequisites
GROQ_API_KEYexported in the environment you run the triage commands from.curlfor API probes;kubectlonly if you collect logs from a Kubernetes deployment.- Access to console.groq.com to rotate keys or upgrade the plan.
- A configured fallback provider (e.g. OpenAI) if you need to fail away from Groq entirely.
Authentication: every Groq API call in this runbook authenticates with a bearer token — Authorization: Bearer $GROQ_API_KEY. Keep the key in a secret manager, never inline; the evidence-collection step in communication-and-postmortem.md redacts gsk_ tokens from logs before archiving.
Instructions
Work the incident in five phases. Each phase points to the reference file with the exact commands.
-
Classify severity. Match user impact to the P1–P4 table in triage-and-diagnostics.md — this sets your response-time budget (P1 < 15 min, P4 next business day).
-
Triage. Run the Quick Triage script (status reachability, auth, per-model availability, rate-limit headers). The one-line probe that starts most incidents:
curl -s -o /dev/null -w "%{http_code}\n" \ https://api.groq.com/openai/v1/models \ -H "Authorization: Bearer $GROQ_API_KEY" -
Decide. Walk the decision tree in triage-and-diagnostics.md to turn the HTTP code (timeout / 401 / 429 / 5xx / slow) into an action path.
-
Mitigate. Apply the matching fix from mitigations.md: fallback-model routing for 5xx on one model, wait-or-reroute for 429, key rotation for 401, enable the fallback provider for a Groq-wide outage.
-
Communicate & close. Post the internal alert and status-page update, then after resolution collect evidence and write the postmortem — all in communication-and-postmortem.md.
Output
Running this runbook produces:
- A triage verdict — the HTTP status per model and whether the fault is Groq-side or ours.
- An applied mitigation — traffic routed to a healthy model or provider, or a rotated key.
- A communication trail — internal alert + external status-page message.
- An evidence bundle —
groq-incident-TIMESTAMP.tar.gzcontainingmodels.jsonand redactedapp-logs.txt. - A postmortem document — timeline, root cause, and dated action items.
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Can't reach status.groq.com | Network issue | Use mobile or different network |
| All models failing | Groq-wide outage | Enable fallback provider (OpenAI, etc.) |
| Key rotation fails | No admin access | Escalate to team lead with console access |
| Fallback provider also down | Multi-provider outage | Degrade gracefully, show cached content |
Examples
Example — 429 on the primary model. Triage shows llama-3.3-70b-versatile: HTTP 429
while llama-3.1-8b-instant: HTTP 200. The decision tree routes "one model 429 → route to a
different model," so you switch traffic to the 8B model per
mitigations.md, post a P3 internal alert, and file an action item
to add fallback routing. The fallback-routing function lives in
mitigations.md; the alert and postmortem templates are in
communication-and-postmortem.md.
Resources
Next Steps
For data-handling and compliance procedures after an incident, see the groq-data-handling skill in this pack.
When not to use it
- →When the incident is not related to Groq API failures
- →When a configured fallback provider is not available
- →When `GROQ_API_KEY` is not exported in the environment
Prerequisites
Limitations
- →Cannot reach status.groq.com if network issues exist
- →Key rotation requires admin access to console.groq.com
- →Fallback provider must be pre-configured
How it compares
This skill provides a structured incident response runbook specifically for Groq API failures, offering concrete steps for triage, mitigation, and post-mortem analysis.
Compared to similar skills
groq-incident-runbook side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| groq-incident-runbook (this skill) | 1 | 26d | Review | Intermediate |
| analyzing-logs | 14 | 26d | Review | Beginner |
| sentry | 10 | 4mo | Caution | Beginner |
| obsidian-incident-runbook | 3 | 26d | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
analyzing-logs
jeremylongshore
Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.
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`.
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".
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".
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.
network-info
UKGovernmentBEIS
Gather network configuration and connectivity information including interfaces, routes, and DNS