agent-incident-response

agent-incident-response is a skill for Claude Code, Codex from MLOps-Courses/agentops-open-course. It costs 79 tokens per session (683 once invoked), scanned A, original, MIT.

An operational process for handling incidents in a production AI agent, meaning an agent that is actively serving users or running business work.

In plain words
What is it for?
Use it to detect, investigate, contain, review, and turn agent incidents into tests, alerts, evaluations, or other lasting checks.
Why use it?
It provides a repeatable way to investigate errors, slow responses, injection attempts, failed outputs, rising costs, and quality regressions, then prevent their return.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to detect, investigate, contain, review, and turn agent incidents into tests, alerts, evaluations, or other lasting checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mlops-courses/agentops-open-course/agent-incident-response
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MLOps-Courses/agentops-open-course --skill agent-incident-response
Clone the repo
git clone --depth 1 https://github.com/MLOps-Courses/agentops-open-course

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-incident-response

README.md
[![agentmods](https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agent-incident-response.svg)](https://agentmods.dev/skills/mlops-courses/agentops-open-course/agent-incident-response)
Your own site
<a href="https://agentmods.dev/skills/mlops-courses/agentops-open-course/agent-incident-response"><img src="https://agentmods.dev/badge/skills/mlops-courses/agentops-open-course/agent-incident-response.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.00683
Opus 5 $0.00039 $0.00342
Sonnet 5 $0.00016 $0.00137
Haiku 4.5 $0.00008 $0.00068

Measured 7d ago against content hash 1f786253a243, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

agent-incident-response scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-incident-response/SKILL.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Incident Response

An operated agent is a running workload with incidents of its own: error-budget burn, latency regression, injection spikes, schema failures, cost blowouts, and reviewed quality regressions. Close each one only when the smallest repeatable check or evidence path would expose it again.

When to use

  • An agent workload fires an alert (error budget, p95, cost, guardrail spike, schema failure).
  • A quality or cost incident with no alert, such as repeated reviewer findings or doubled token usage.
  • You want every outage to leave behind a test, eval case, alert, or baseline.

The loop: detect → triage → mitigate → review → prevent

  1. Detect. Alert on the workload's own health signals (error-budget burn, p95 latency, injection-neutralized spike, structured-output schema failures, missing token telemetry, collector down).
  2. Triage a fixed walk. Metric (scope it) → trace (read the failing turn's span tree) → logs (the error text the span summarizes) → audit (what state changed, who approved). They join on the trace id.
  3. Mitigate with existing controls. Roll out startup configuration to freeze writes, cap tokens/context, disable a misbehaving opt-in, or select a validated fallback model. Roll committed prompt or code changes back with the prior evaluated image digest. Record the replacement process's readiness time as the first postmortem line.
  4. Review blamelessly. Short, factual, about the system: impact, timeline, root cause tied to evidence, "what caught it and what didn't", actions with owners.
  5. Prevent — the load-bearing step. Promote the incident to the cheapest reproducible check or evidence path that would catch it again: a deterministic unit/red-team test, an eval case, an alert rule, or a corrected cost measurement. Fix or explicitly approve the cost change before reviewing a new baseline; never normalize unexplained inflation.

Reference implementation

From the AgentOps Open Course, installable with npx skills add MLOps-Courses/agentops-open-course:

Read the full file on GitHub · 35 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 35 lines · 79 tokens per session scan A 1f786253a243

Subscribe to this mod's changes

agent-incident-response is a skill published in the GitHub repository MLOps-Courses/agentops-open-course (2 stars, last pushed 5d ago), licensed MIT. It adds 79 tokens to every session and 683 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

troubleshoot-sandbox

Troubleshoot OpenSandbox issues by running diagnostics (logs, inspect, events, summary) via CLI or HTTP API to diagnose sandbox failures like OOM, crash, image pull errors, network problems, etc.

opensandbox-group/OpenSandbox · 48 tokens

routing-calibration-loop

Calibrates routing changes against a live router endpoint with executable probes, local DSL validation, versioned deploys, and structured failure review. Use when tuning signals, projections, decisions, or maintained route examples against a real apiserver.

vllm-project/semantic-router · 53 tokens

k8s-service-path

Trace the Kubernetes service path — Service to selector to pods to EndpointSlices to readiness, plus Ingress routing. Use when a service is getting no traffic, an ingress is not routing, or someone asks why a workload is unreachable inside a cluster.

automateyournetwork/netclaw · 55 tokens

kitaru-replay-ops

decode's Kitaru operator surface for headless replay and what-if — three-runs (observed / baseline-rerun / fork), CLI replay with --args/--overrides, checkpoint overrides, diffing execution records, cohort scaling, wait re-ask behavior, subagent-as-one-checkpoint. Use when replaying or forking a decode run, overriding…

decodingai-magazine/building-a-coding-agent-from-scratch-course · 97 tokens

cluster-events

Analyze cluster-wide Kubernetes events to identify issues and patterns. Aggregates Warning events, detects high-frequency patterns, and correlates related events.

scitix/siclaw · 30 tokens

networkpolicy-debug

Diagnose NetworkPolicy-related connectivity issues (traffic unexpectedly blocked, default-deny effects, egress blocking DNS). Identifies which NetworkPolicies affect a pod, checks ingress/egress rules, and verifies CNI support.

scitix/siclaw · 48 tokens