Skip to content
Back to skills

Incident Debugging

ASecurity

Use this skill whenever something is broken and the cause is unknown - "error di production", "kenapa gagal", "user komplain", "service down", "bug aneh", stack traces, 500s, timeouts, wrong data. Drives a disciplined evidence-first diagnosis instead of guess-and-patch. Do NOT use for planned code review or deploys.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 15, 2026
ai-agentsdebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned October 15, 2026

npx -y skills add me-workspace/orchestrator-operational-agent-skills --skill incident-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Incident Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Incident Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/me-workspace-incident-debugging/badge)](https://www.skillsdirectory.com/skills/me-workspace-incident-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: incident-debugging
description: Use this skill whenever something is broken and the cause is unknown - "error di production", "kenapa gagal", "user komplain", "service down", "bug aneh", stack traces, 500s, timeouts, wrong data. Drives a disciplined evidence-first diagnosis instead of guess-and-patch. Do NOT use for planned code review or deploys.
---

# Incident Debugging

Rule zero: **reproduce or trace before you touch anything.** A fix without a confirmed root cause is a new bug with better marketing.

## 1. Stabilize (only if actively bleeding)
If users are losing money/data right now: mitigate first (rollback last deploy, disable the feature flag, restart the crashed service) and say explicitly that this is mitigation, not the fix.

## 2. Gather evidence - in this order
1. **Exact symptom**: error text, status code, screenshot, affected user/id, first-seen time.
2. **What changed?** Deploys, config edits, cron runs, dependency/API changes near first-seen time. Most incidents are caused by the most recent change.
3. **Logs around the failure**: app log, web server log, `journalctl -u <svc> --since`, DB slow log. Grep for the request id / user id, not just the error string.
4. **Scope**: one user or all? One endpoint or everything? Constant or intermittent? Intermittent → suspect race, resource exhaustion, or an external dependency.

## 3. Hypothesize and test
- Write the top 2-3 hypotheses ranked by evidence. For each: what observation would confirm/refute it?
- Test the cheapest discriminating check first (read a log, run one query, curl one endpoint) - not the most invasive.
- Change **one variable at a time**. If you must experiment on production state, back up what you touch first.
- Beware pattern-matching: a familiar-looking symptom can have a different cause. Confirm on THIS system's evidence.

## 4. Fix
- Fix the root cause, minimally. Resist drive-by refactors in an incident patch.
- Check for the same bug class elsewhere (grep for the same pattern).
- Verify the fix against the original reproduction, then run the normal post-deploy smoke test.

## 5. Close out
Short write-up: symptom → root cause → fix → verification → prevention (test added? monitor added? checklist updated?). If a prevention item is skipped, list it as open debt, don't let it evaporate.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.