agentleFS
pinexaipinexai/claude-code-skills/incident-triage/SKILL.md

incident-triage

Skill1 starsChanged 4 months agoMITView on GitHub

Use this skill when given production error logs to investigate, when told something is erroring in production, or when asked to trace a failing request or explain a spike in errors. Triggers include a pasted error log or stack trace dump, "prod is erroring", "what's causing these 500s", "trace this request", "why are we seeing errors in the logs". Do NOT use this skill for a local compile error or a single stack trace from your own terminal — that's normal debugging (see root-cause-debugger). This skill is specifically for correlating a volume of production log data back to source code.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write-runbook, threat-hunting and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MaheshAwasareSkill

    write-runbook

    Generate an operational runbook for a service from its code, config, and dependencies — what to do when it breaks, where to look, how to roll back, who to escalate to. Use proactively before a service goes to production, after a major incident, or when handing off operational ownership.

    Also in 3 projects that use this

  • allanninalSkill

    threat-hunting

    Hunt threats using Sigma detection rules and security analysis techniques. Use when investigating security incidents, creating detection rules, or analyzing suspicious activity.

    Also in 3 projects that use this

  • srclightSkill

    explore-codebase

    This skill should be used when the user asks to "explore this codebase", "understand this project", "give me an overview", "how does this work", "onboard me", "walk me through the architecture", "map the codebase", or any request to understand a codebase's structure, architecture, or design.

    Also in 3 projects that use this

  • thlaureSkill

    review-change

    Use this skill when the user asks for a code review, a correctness pass, a check before PR, or asks whether a Signalist change follows project conventions.

    Also in 4 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every hypothesis must cite an exact file:line in the actual source — "probably something in the auth module" is not a hypothesis, it's a …

    line 48
  2. Distinctive:

    Don't propose a broad rewrite as the fix when a small change addresses the identified line — match the fix size to the diagnosed cause.

    line 53
  3. Distinctive:

    If a top-frequency cluster can't be correlated to a source location with the available code/logs, say so explicitly rather than filling the …

    line 55

“Common” is measured: kept by at least 6 in 10 of the 18 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

When this fires

Log aggregation tools can cluster errors by signature and show frequency, but they can't see your source code — they stop at "this error happened 1,200 times" without connecting it to the line that causes it. This skill picks up where the log tool stops: cluster the noise, then correlate each cluster back to the actual code so the on-call engineer gets a ranked, evidence-backed list of what to look at first.

Protocol

  1. Ingest the logs (stdin, pasted text, or a file). Don't pre-filter before clustering — noise and signal both matter for frequency ranking.
  2. Cluster by error signature and frequency. Group entries that share an error type/message shape (normalizing out request-specific values like IDs, timestamps, IPs), and count occurrences per cluster. This frequency ordering is what determines investigation priority, not recency or severity label alone.
  3. Correlate the top clusters to source locations. For each cluster worth investigating, find the actual code path that would produce that error — read the source, don't infer it from the error message alone.
  4. Rank root-cause hypotheses, each citing the specific file:line that supports it, ordered by evidence strength and cluster frequency — not by which one seems most plausible in the abstract.
  5. Propose the smallest safe fix for the top hypothesis, plus a concrete verification step (a test, a log query, a specific input to check) that would confirm the fix actually addresses the cluster.

Hard rules

  • Every hypothesis must cite an exact file:line in the actual source — "probably something in the auth module" is not a hypothesis, it's a guess.
  • Rank by evidence (frequency × how directly the code path explains the error), never by gut feeling about what's "usually" the cause.
  • Don't propose a broad rewrite as the fix when a small change addresses the identified line — match the fix size to the diagnosed cause.
  • If a top-frequency cluster can't be correlated to a source location with the available code/logs, say so explicitly rather than filling the gap with speculation.

Output

Clusters (by frequency):
  1. <count>x  <normalized error signature>
  2. <count>x  <normalized error signature>
  ...

Correlated hypotheses (ranked):
  1. <file>:<line> — <mechanism, tied to cluster #N>
  2. <file>:<line> — <mechanism, tied to cluster #M>

Proposed fix (for #1): <smallest change addressing that line>
Verification: <specific test/check that would confirm it>

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.