Skip to content
Skillv1.0.0

mistral-incident-runbook

Execute Mistral AI incident response procedures with triage, mitigation, and postmortem. Use when responding to Mistral AI-related outages, investigating errors, or running post-incident reviews. Trig

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (plugins/saas-packs/mistral-pack/skills/mistral-incident-runbook/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-incident-runbook. Copyright stays with the author (MIT).

Mistral AI Incident Runbook

Overview

Rapid incident response procedures for Mistral AI integration failures. Covers severity classification, quick triage script, decision tree, per-error mitigations, communication templates, and postmortem process.

Prerequisites

  • An assigned incident commander and a documented application severity policy
  • Read-only access to application telemetry, deployment state, and redacted logs
  • A configured MISTRAL_API_KEY supplied through the environment or secret manager
  • Authorization to apply the named rollback, fallback, or concurrency change
  • A secure incident workspace for evidence and stakeholder updates

Instructions

  1. Use Read and Grep on approved logs and configuration to establish impact, start time, endpoint, model, HTTP status, and request IDs without copying prompts, credentials, or customer content.
  2. Assign severity from observed user impact, not from the provider status page alone.
  3. Run the minimal redacted probe, follow the matching immediate-action branch, and prefer a reversible mitigation over an untested production change.
  4. Verify both the provider probe and the affected application path. Keep the incident open through the service's normal observation window.
  5. Produce the output contract below and follow the retained-evidence checklist in operator-checklist.md.

Severity Levels

Level Definition Response Time Example
P1 Complete outage < 15 min All Mistral requests failing
P2 Degraded service < 1 hour High latency, partial 429s
P3 Minor impact < 4 hours Occasional errors, non-critical feature
P4 No user impact Next business day Monitoring gaps, docs

Quick Triage Script

#!/bin/bash
set -euo pipefail
echo "=== Mistral AI Quick Triage ==="
echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)"

# 1. API health
echo -e "\n1. Mistral API status:"
HTTP=$(curl -s -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer ${MISTRAL_API_KEY}" \
  https://api.mistral.ai/v1/models 2>/dev/null)
echo "   HTTP: $HTTP"
case $HTTP in
  200) echo "   OK — API is reachable" ;;
  401) echo "   AUTH FAILURE — API key invalid or revoked" ;;
  429) echo "   RATE LIMITED — check workspace limits" ;;
  5*) echo "   SERVER ERROR — Mistral service issue" ;;
  000) echo "   NETWORK ERROR — cannot reach api.mistral.ai" ;;
esac

# 2. Our service health
echo -e "\n2. App health endpoint:"
curl -sf https://yourapp.com/health 2>/dev/null | jq '.services.mistral' || echo "   UNREACHABLE"

# 3. Error rate (if Prometheus available)
echo -e "\n3. Error rate (last 5m):"
curl -sf "localhost:9090/api/v1/query?query=rate(mistral_errors_total[5m])" 2>/dev/null \
  | jq -r '.data.result[] | "\(.metric.model): \(.value[1])/s"' || echo "   Prometheus unavailable"

Decision Tree

API returning errors?
|-- YES: curl -H "Authorization: Bearer $KEY" https://api.mistral.ai/v1/models
|   |-- 401 → API key issue (Step 1 below)
|   |-- 429 → Rate limited (Step 2 below)
|   |-- 5xx → Mistral service issue (Step 3 below)
|   +-- Timeout → Network issue (Step 4 below)
+-- NO: Our service returning errors?
    |-- YES → Check app logs and config
    +-- NO → Resolved, continue monitoring

Immediate Actions

Step 1: 401 — Authentication Failure (P1)

set -euo pipefail
# Verify presence without printing key material or key metadata
test -n "${MISTRAL_API_KEY:-}" || {
  echo "MISTRAL_API_KEY is not set" >&2
  exit 1
}

# Test directly; emit only the HTTP status, never verbose request headers
curl -sS -o /dev/null -w "HTTP %{http_code}\n" \
  -H "Authorization: Bearer ${MISTRAL_API_KEY}" \
  https://api.mistral.ai/v1/models

# If invalid: rotate key at console.mistral.ai
# Then update in your secret manager:
# GCP: gcloud secrets versions add mistral-api-key --data-file=-
# AWS: aws secretsmanager put-secret-value --secret-id mistral/api-key
# K8s: kubectl create secret generic mistral --from-literal=api-key="$NEW_KEY" --dry-run=client -o yaml | kubectl apply -f -

Step 2: 429 — Rate Limited (P2)

set -euo pipefail
# Check headers for limit info
curl -sS -D - -o /dev/null \
  -H "Authorization: Bearer ${MISTRAL_API_KEY}" \
  https://api.mistral.ai/v1/models | grep -i "ratelimit\|retry-after"

# Immediate mitigation: reduce concurrency
kubectl set env deployment/app MAX_CONCURRENT_MISTRAL=3

# Check workspace limits: https://admin.mistral.ai/plateforme/limits
# Long-term: Contact Mistral to increase limits

Step 3: 5xx — Mistral Service Error (P1/P2)

set -euo pipefail
# Check Mistral status page
echo "Check: https://status.mistral.ai/"

# Enable fallback/degradation
kubectl set env deployment/app MISTRAL_FALLBACK=true

# Monitor recovery (check every 30s)
watch -n 30 'curl -s -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer ${MISTRAL_API_KEY}" \
  https://api.mistral.ai/v1/models'

Step 4: Network/Timeout Error (P2)

set -euo pipefail
# Test DNS
nslookup api.mistral.ai

# Test connectivity
curl -v --connect-timeout 5 https://api.mistral.ai/v1/models

# Check egress policies
kubectl get networkpolicy -A | grep mistral

# Temporary two-minute timeout while the network cause is investigated.
# Revert after recovery; this does not fix upstream latency.
kubectl set env deployment/app MISTRAL_TIMEOUT_MS=120000

Communication Templates

Internal (Slack)

:red_circle: P[1-4] INCIDENT: Mistral AI Integration
**Status**: INVESTIGATING | MITIGATING | RESOLVED
**Impact**: [Description of user-facing impact]
**Action**: [Current action being taken]
**Next update**: [HH:MM UTC]
**IC**: @[name]

External (Status Page)

AI Feature Degradation

We are experiencing issues with our AI-powered features.
Some users may see slower responses or temporary unavailability.

Our team is investigating with our AI provider.

Affected: [list features]
Workaround: [if any]
Updated: [timestamp UTC]

Post-Incident

Evidence Collection

#!/bin/bash
set -euo pipefail; umask 077
DIR="$(mktemp -d "${TMPDIR:-/tmp}/mistral-incident-evidence.XXXXXX")"
ARCHIVE="mistral-incident-evidence-$(date -u +%Y%m%d-%H%M%S).tar.gz"
trap 'rm -rf -- "$DIR"' EXIT
# Closed projection excludes logs, events, annotations, container specs, messages, labels, credentials, prompts, payloads, and customer identifiers.
kubectl get deployment mistral-service -o json | jq -e '
  def count_or_null: if type == "number" and . >= 0 and floor == . then . else null end;
  {
    schema_version: "mistral-incident-evidence/v1",
    deployment_generation: (.metadata.generation | count_or_null),
    replicas: {
      desired: (.spec.replicas | count_or_null), current: (.status.replicas | count_or_null),
      updated: (.status.updatedReplicas | count_or_null), ready: (.status.readyReplicas | count_or_null),
      available: (.status.availableReplicas | count_or_null),
      unavailable: (.status.unavailableReplicas | count_or_null)
    },
    rollout_conditions: [
      .status.conditions[]?
      | select(.type == "Available" or .type == "Progressing" or .type == "ReplicaFailure")
      | {type, status: (if .status == "True" or .status == "False" or .status == "Unknown"
                        then .status else "Unknown" end)}
    ]
  }
' > "$DIR/deployment-summary.json"
# Archive only the allowlisted projection, never the working directory.
tar -czf "$ARCHIVE" -C "$DIR" deployment-summary.json
echo "Evidence: $ARCHIVE"; echo "Inspect it, restrict access, and record its retention deadline before sharing."

Postmortem Template

## Incident: Mistral AI [Error Type]
**Date:** YYYY-MM-DD  |  **Duration:** Xh Ym  |  **Severity:** P[1-4]

### Summary
[1-2 sentence description]

### Timeline (UTC)
| Time | Event |
|------|-------|
| HH:MM | Alert fired |
| HH:MM | IC assigned |
| HH:MM | Root cause identified |
| HH:MM | Mitigated |
| HH:MM | Resolved |

### Root Cause
[Technical explanation]

### Impact
- Users affected: [N]
- Failed requests: [N]
- Duration: [time]

### Action Items
| Priority | Action | Owner | Due |
|----------|--------|-------|-----|
| P1 | [Fix] | @name | date |
| P2 | [Prevent] | @name | date |

Error Handling

Issue Cause Solution
kubectl auth expired Token expired Re-authenticate with cloud provider
Metrics unavailable Prometheus down Fall back to app logs
Secret rotation fails IAM permissions Escalate to admin
Fallback not working Not implemented Return cached responses or error page

Resources

Output

  • Issue identified and severity classified
  • Mitigation applied per error type
  • Stakeholders notified with status updates
  • Evidence collected for postmortem
  • Action items documented

The report must also name the incident commander, UTC observation window, rollback or fallback state, unresolved risks, and next update time. Mark the incident RESOLVED only after the affected application path—not just the provider probe—meets its normal health threshold through that window.

Examples

Provider-side degradation

The provider probe returns intermittent 503 responses, the status page reports an active incident, and application error rate crosses the P2 threshold. Enable the pre-approved fallback, cap retries to prevent amplification, post the external degradation notice, and keep monitoring the primary path. Resolve only after the primary path is healthy for the service's observation window and the fallback has been safely reverted.

Credential failure isolated to one environment

Production returns 401 while staging succeeds and the provider status page is clear. Classify the event as an internal credential incident. Compare secret version metadata without exposing values, rotate the production credential through the secret manager, restart only affected consumers, and verify the application path. Record who approved the rotation and when the superseded secret was revoked.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-mistral-incid-028970/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-mistral-incid-028970.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-mistral-incid-028970",
  "kind": "skill",
  "name": "mistral-incident-runbook",
  "description": "Execute Mistral AI incident response procedures with triage, mitigation, and postmortem. Use when responding to Mistral AI-related outages, investigating errors, or running post-incident reviews. Trigger with phrases like \"mistral incident\", \"mistral outage\", \"mistral down\", \"mistral on-call\", \"mistral emergency\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "saas",
      "mistral",
      "incident-response",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Execute Mistral AI incident response procedures with triage, mitigation, and postmortem. Use when responding to Mistral AI-related outages, investigating errors, or running post-incident reviews. Trigger with phrases like \"mistral incident\", \"mistral outage\", \"mistral down\", \"mistral on-call\", \"mistral emergency\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "plugins/saas-packs/mistral-pack/skills/mistral-incident-runbook/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/plugins/saas-packs/mistral-pack/skills/mistral-incident-runbook/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/plugins/saas-packs/mistral-pack/skills/mistral-incident-runbook/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Grep,",
      "Bash(kubectl:*),",
      "Bash(curl:*)"
    ],
    "license": "MIT"
  },
  "instructions": "# Mistral AI Incident Runbook\n\n## Overview\n\nRapid incident response procedures for Mistral AI integration failures. Covers severity classification, quick triage script, decision tree, per-error mitigations, communication templates, and postmortem process.\n\n## Prerequisites\n\n- An assigned incident commander and a documented application severity policy\n- Read-only access to application telemetry, deployment state, and redacted logs\n- A configured `MISTRAL_API_KEY` supplied through the environment or secret manager\n- Authorization to apply the named rollback, fallback, or concurrency change\n- A s",
  "cost": {
    "context_tokens": 2598
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-mistral-incid-028970/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.