agentleFS
skyvanguardskyvanguard/infra-ops/skills/incident-triage/SKILL.md

incident-triage

Skill1 starsChanged 10 months agoMITView on GitHub

Use when a user reports something isn't working, a service is down, or an error occurred. Follows structured triage methodology to diagnose root cause.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 12 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask ONE focused question to classify:

    line 16
  2. Distinctive:

    Run these checks immediately without asking:

    line 29
  3. Distinctive:

    Run disk check from system-diagnostics

    line 46
  4. Distinctive:

    Test ONE hypothesis at a time

    line 68
  5. Distinctive:

    Start with the most likely

    line 69
  6. Distinctive:

    ALWAYS present the fix and ask for explicit confirmation

    line 94
  7. Distinctive:

    After execution, verify the fix worked

    line 97
  8. Distinctive:

    NEVER run destructive commands without explicit user approval

    line 111
  9. Distinctive:

    NEVER restart services without asking first

    line 112
  10. Distinctive:

    ALWAYS check disk space early (it's the #1 silent killer)

    line 113
  11. Distinctive:

    Keep a running log of what you've checked and found

    line 114
  12. Distinctive:

    If unsure, ask ONE clarifying question before proceeding

    line 115

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Incident Triage

Overview

Systematically diagnose reported incidents using a structured triage process. Gather symptoms, form hypotheses, test them, and identify root cause with minimal back-and-forth.

Process

Step 1: Classify the Incident

Ask ONE focused question to classify:

CategoryIndicators
Service Down"X isn't working", "can't access Y", timeout errors
Performance"slow", "lag", "takes forever"
Error/CrashStack traces, error codes, crashes
Network"can't connect", DNS, routing issues
Authentication"can't log in", permission denied, token expired
Data"missing data", corruption, wrong values

Step 2: Gather Context (automated)

Run these checks immediately without asking:

Service status:

PlatformCommand
WindowsGet-Service | Where-Object {$_.Status -ne 'Running'} | Select Name, Status
Linuxsystemctl list-units --failed
macOSlaunchctl list | grep -v "^-"

Recent errors:

PlatformCommand
WindowsGet-EventLog -LogName System -EntryType Error -Newest 10
Linuxjournalctl -p err --since "1 hour ago" --no-pager -n 20
macOSlog show --predicate 'eventType == logEvent AND messageType == error' --last 1h | tail -20

Disk space (common cause):

  • Run disk check from system-diagnostics

DNS resolution (if network-related):

PlatformCommand
Allnslookup [target] or dig [target]

Step 3: Form Hypotheses

Based on symptoms and automated checks, form 2-3 hypotheses ranked by likelihood:

### Hypotheses
1. [Most likely] - Evidence: [what supports this]
2. [Possible] - Evidence: [what supports this]
3. [Less likely] - Evidence: [what supports this]

Step 4: Test Hypotheses

For each hypothesis, run targeted verification commands:

  • Test ONE hypothesis at a time
  • Start with the most likely
  • Each test should be a single, read-only command
  • Record result before moving to next

Step 5: Identify Root Cause

Once root cause is confirmed:

### Root Cause
**Issue:** [clear description]
**Evidence:** [commands and output that confirm]
**Impact:** [what's affected]

### Resolution Options
1. [Quick fix] - Risk: [low/medium/high]
2. [Proper fix] - Risk: [low/medium/high]
3. [Preventive measure] - For future avoidance

### Recommended Action
[Which option and why]

Step 6: Execute Fix (with permission)

  • ALWAYS present the fix and ask for explicit confirmation
  • Show the exact command(s) that will run
  • Explain what each command does
  • After execution, verify the fix worked

Escalation Criteria

Escalate (ask user to involve someone else) when:

  • Issue requires access you don't have (cloud console, production DB)
  • Hardware failure suspected
  • Security breach indicators found
  • Data loss confirmed
  • Issue persists after 2 fix attempts

Rules

  • NEVER run destructive commands without explicit user approval
  • NEVER restart services without asking first
  • ALWAYS check disk space early (it's the #1 silent killer)
  • Keep a running log of what you've checked and found
  • If unsure, ask ONE clarifying question before proceeding

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.