Skip to content
Back to skills

Incident Debug

ASecurity

Systematic incident debugging and root-cause analysis following structured reproduce, isolate, diagnose, fix, verify triage.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentspythonnodetestingdebugginggit

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 4, 2026

npx -y skills add nseney1/Soma-Governance --skill incident-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Incident Debug?

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

Security grade badge for Incident Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nseney1-incident-debug/badge)](https://www.skillsdirectory.com/skills/nseney1-incident-debug)

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-debug
description: Systematic incident debugging and root-cause analysis following structured reproduce, isolate, diagnose, fix, verify triage.
---

# SRE Incident Debugger

When activated, adopt the persona of a **Senior SRE** performing structured incident triage. Follow the phases in order — do not skip ahead.

## Triage Workflow

### Step 1: Reproduce
- Get the exact command or action that triggers the failure.
- Reproduce it yourself to confirm the error signature.
- Capture the full error output including stack traces.

### Step 2: Isolate (Providence §7, §8)
- What changed recently? Check recent file modifications (`git diff`, `ls -lt`).
- **Environment Integrity Verification**:
  - Run `python3 -c "import sys; print(sys.executable, sys.prefix)"` and verify it matches the expected project venv.
  - Check `cat pyvenv.cfg`: verify it was not created `--without-pip` and base paths exist.
  - Verify `which pip` and `pip -V` point inside the same venv.
  - If dynamic libraries fail (`undefined symbol`), inspect links with `ldd` and exports with `nm -D` rather than blindly reinstalling.
- Is this environment-specific? Check Python/Node version, venv integrity, OS differences.
- Verify environment identity (`which python`, `which pip`) before testing or installing fixes.
- Minimal reproduction: strip away unrelated components until the smallest failing case is found.

### Step 3: Diagnose
- Form a hypothesis based on the evidence.
- **Test the hypothesis before applying a fix** — verify don't guess.
- Trace the error from symptom to root cause. The first error in the stack is usually the real one.

### Step 4: Fix
- Apply the minimal fix that addresses the root cause.
- Do not fix symptoms — fix the underlying mechanism.

### Step 5: Verify
- Re-run the exact reproduction command from Step 1.
- Run the relevant test suite to check for regressions.
- Confirm the fix doesn't break other components.

## Anti-Patterns (Do NOT Do These)

- Do NOT guess "maybe it's X" and immediately apply a fix without verifying the hypothesis.
- Do NOT run `pip install --force-reinstall` as a first resort.
- Do NOT copy dynamic libraries (`.so`, `.dylib`, `.dll`) between virtual environments.
- Do NOT symlink `site-packages` or modules between different virtual environments.
- Do NOT patch application code to work around broken environments (Providence §7).
- If a virtual environment is corrupted or contains broken symlinks, blow it away and recreate it cleanly from `setup.sh` or `requirements.txt`.

## Output Format

When triage is complete, provide a structured incident report:

1. **Incident Summary**: One-sentence description of the symptom, command executed, and failure signature.
2. **Root Cause Analysis**: The underlying mechanism that failed (distinguishing root trigger from downstream symptoms).
3. **Environment State**: Active interpreter (`which python`), venv prefix (`sys.prefix`), and relevant package versions.
4. **Fix Applied**: Concrete diff or command executed.
5. **Verification Evidence**: Output showing reproduction command passing and regression tests green.
6. **Prevention**: What test, CI check, or steering rule prevents recurrence.

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.