RE

resolve-agent-incidents

Diagnoses and standardizes fixes for agent failures, creating a reusable incident manual for troubleshooting.

Install

mkdir -p .claude/skills/resolve-agent-incidents && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11612" && unzip -o skill.zip -d .claude/skills/resolve-agent-incidents && rm skill.zip

Installs to .claude/skills/resolve-agent-incidents

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.

Use when Codex needs to diagnose, resolve, review, or document recurring agent incidents: subagent reward-hacking patterns, unsupported success claims, skipped validation, stale or hidden failures, Codex app/tool errors, MCP/runtime loading problems, hook/workflow issues, Windows path or shell failures, and maintenance troubleshooting records that should be normalized into a reusable incident manual.
403 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Define an incident with expected behavior, actual behavior, and affected surface.
  • Preserve evidence like error text, command calls, and file paths.
  • Classify incidents using a manual's taxonomy.
  • Apply documented fixes after checking local context fingerprints.
  • Verify fixes by rerunning commands or inspecting artifacts.
  • Update the incident manual with new or repeated issues.

How it works

The skill defines an incident, preserves evidence, classifies the issue, and applies or forms fixes, then verifies the outcome and updates a manual.

Inputs & outputs

You give it
agent or Codex app failure details
You get back
evidence-backed fixes and reusable incident records

When to use resolve-agent-incidents

  • Debug agent incident
  • Update incident manual
  • Standardize fix for recurring error

About this skill

Resolve Agent Incidents

Use this skill to turn agent or Codex app failures into fast, evidence-backed fixes and reusable incident records.

Workflow

  1. Define the incident in one sentence: expected behavior, actual behavior, affected surface, and whether the user is blocked.
  2. Preserve evidence before changing anything: exact error text, command/tool call, file path, timestamp when useful, and any not-run checks.
  3. Read references/incident-manual.md when the incident involves reward-hacking behavior, repeated tool/app failures, unclear validation claims, workflow hooks, or a pattern that should be recorded for future use. If the normal file-reading route fails, try another available read surface before treating the manual as unavailable, and preserve the original read failure as evidence.
  4. Classify the incident using the manual's taxonomy. Prefer one primary type and optional secondary tags.
  5. Match against known patterns. If a pattern matches, apply the documented fix only after checking that the local context really has the same fingerprint.
  6. If no pattern matches, form a narrow hypothesis, run the smallest direct check, and patch the first confirmed mismatch.
  7. Verify with direct evidence: rerun the failing command, inspect the changed artifact, or state the precise reason direct verification cannot run.
  8. Review the outcome for false completion claims: passing output, subagent reports, hook reminders, or MCP availability do not prove completion by themselves.
  9. Update the incident manual when the issue is new, repeated, or easy to misdiagnose. Add the symptom fingerprint, root cause, fix, verification, and residual risk.

Recording Rules

  • Record facts, not reassurance.
  • Treat subagent output as candidate evidence until independently checked.
  • Mark skipped checks as not_run; do not convert them into success language.
  • Do not read secrets or credential contents to diagnose an incident unless the user explicitly asks for that exact file.
  • Keep incident entries compact enough to scan during a live failure.
  • Prefer stable fingerprints over long logs: exact error fragments, tool names, paths, status codes, command names, and reproduction steps.

Reference

Use references/incident-manual.md for:

  • normalized incident types and tags;
  • reward-hacking anti-patterns and review questions;
  • known Codex app/tool failure patterns;
  • incident record and pattern entry templates;
  • update rules for maintaining the manual over time.

When not to use it

  • When the user explicitly asks to read secrets or credential contents to diagnose an incident.
  • When the issue is not an agent or Codex app failure.

Limitations

  • The skill does not read secrets or credential contents unless explicitly asked.
  • Subagent output is treated as candidate evidence until independently checked.

How it compares

This workflow provides a structured, evidence-based approach to incident resolution and documentation, unlike ad-hoc troubleshooting.

Compared to similar skills

resolve-agent-incidents side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
resolve-agent-incidents (this skill)02moNo flagsIntermediate
analyzing-logs1427dReviewBeginner
sentry104moCautionBeginner
obsidian-incident-runbook327dReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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