Agent skill · Documentation

incident-analysis

Use when analysing production logs, investigating incidents, writing postmortems, or reviewing error patterns from structured logs (JSONL, journal, HAProxy, PostgreSQL). Enforces source provenance, timezone discipline, hypothesis falsification, and evidence-graded findings. Prevents scope leakage, confidence flattening, and unreproducible counts.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill incident-analysis --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/analysis/incident-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Incident Analysis Analyse production incidents with falsificationist discipline. Every finding is a hypothesis. Every hypothesis has evidence with provenance. Every count has a reproducible command. This skill exists because a 2026-03-16 afternoon analysis produced 10 errors caught by two peer reviewers — all caused by operating on data without verifying it matched the analytical assumptions. The errors are catalogued in `CREATION-LOG.md` in this directory. ## When to Use - Analysing production log files (JSONL, systemd journal, HAProxy access logs, PostgreSQL logs) - Writing or reviewing postmortem documents - Investigating error patterns across multiple log sources - Any task where counts, timelines, or causal claims are derived from log data ## Phase 1: Source Inventory **Before any analysis, inventory every data source.** This is the single cheapest check that catches the most errors. (Lesson: the 2026-03-16 analysis operated on a 28-hour JSONL file believing it covered 2.5 hours.) For each log file, record: | Field | How to get it | |-------|--------------| | File path | The file you're analysing | | Line count | `wc -l` | | First timestamp | `head -1` or `jq -r '.timestamp'

What's inside
Steps it walks through
  1. When to Use
  2. Phase 1: Source Inventory
  3. Timezone Reference
  4. Positive Control
  5. Phase 2: Enumerate Before Hypothesising
  6. Phase 3: Findings as Hypotheses
  7. Well-Formed Finding Template
  8. Confidence Calibration
  9. Report Structure Separation
  10. Phase 4: Cross-Source Reconciliation
  11. Phase 5: Causal Chain, Not Root Cause
  12. Phase 6: Provenance Discipline
  13. Phase 7: Self-Challenge Before Presenting
  14. Quick Reference: Verification Order
Ships with 1 file
  • metadata.json
Commands it runs
grep -oE ' [0-9]{3} ' haproxy.log | sort | uniq -c | sort -rn
Then drill into specific codes
grep ' 504 ' haproxy.log | ...
jq -r 'select(.level == "error") | .event' file.jsonl | sort | uniq -c | sort -rn
Then drill into specific events
jq -r 'select(.event == "Database session error")' file.jsonl | ...
More from claude-skill-registry
All skills →
About this skill
What does the incident-analysis skill do?

Use when analysing production logs, investigating incidents, writing postmortems, or reviewing error patterns from structured logs (JSONL, journal, HAProxy, PostgreSQL). Enforces source provenance, timezone discipline, hypothesis falsification, and evidence-graded findings. Prevents scope leakage, confidence flattening, and unreproducible counts.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill incident-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going