agentleFS
TheoBrigitteTheoBrigitte/claude-config/.claude/skills/investigate-incident/SKILL.md

investigate-incident

Skill2 starsChanged 3 months agoMITView on GitHub

Investigate an incident to determine the root cause and potential impact.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. matarpeles/skills-registry-demo★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    If no incident reference is provided, ask the user for the incident link, ID or details before executing next steps.

    line 9
  2. Distinctive:

    Follow this exact sequence:

    line 11
  3. Distinctive:

    After the investigation agent completes and you have presented the report to the user, run the context-gathering phase below — do NOT …

    line 21
  4. Distinctive:

    After the context-gathering phase completes, proceed with incident management — do NOT prompt the user until this step is ready.

    line 27
  5. Distinctive:

    Create a new incident via incident.io

    line 34
  6. Distinctive:

    Create a new incident in incident.io with the investigation findings (summary, severity, affected components).

    line 42
  7. Distinctive:

    After creating the incident (or when posting to an existing incident channel):

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Investigate incident $ARGUMENTS for the Kubernetes cluster.

If no incident reference is provided, ask the user for the incident link, ID or details before executing next steps.

Follow this exact sequence:

Step 1: Investigation

Launch the incident-investigator subagent to perform the full investigation. Pass along any incident ID, cluster name, alert details, or other context the user has provided.

You MUST present the report to the user.

Step 2: Gather Context & Correlate Similar Incidents

After the investigation agent completes and you have presented the report to the user, run the context-gathering phase below — do NOT prompt the user until it is complete.

Launch the incident-context-gatherer subagent to collect context from PagerDuty, Slack, GitHub, and incident.io. Include all information learned during the investigation (root cause, affected components, error messages, related services, cluster name). This pass surfaces Slack threads, related incidents, or GitHub activity that match the investigation findings.

Step 3: Incident Management

After the context-gathering phase completes, proceed with incident management — do NOT prompt the user until this step is ready.

Present options via AskUserQuestion:

If a matching Slack incident channel and/or thread was found, present options like:

  1. Post to #inc-<incident-name> (the matching channel)
  2. Post in thread (link to the matching thread)
  3. Create a new incident via incident.io
  4. Skip

If no related Slack channel or thread was found, present options like:

  1. Create a new incident via incident.io
  2. Skip

Creating a new incident:

Create a new incident in incident.io with the investigation findings (summary, severity, affected components).

Posting to the incident channel:

After creating the incident (or when posting to an existing incident channel):

  1. Find the incident's Slack channel (incident.io auto-creates #inc-* channels)
  2. Send the investigation report into the Slack channel and upload the full report as canvas — do NOT draft, send it immediately

Step 4: Ask How to Resolve

Once the investigation is done (even if inconclusive), stop and ask the user what to do for resolution. List the options you found — fix, workaround, silence, escalate, leave as is — with your recommendation. Wait for the answer before going further.

Step 5: Post Incident Summary

This is the LAST step — do it only after the user answered Step 4, so the summary reflects what was actually decided.

Post a one-liner summary of the alert in #oncall-atlas (https://gigantic.slack.com/archives/C04UMF3KV3K) with mcp__slack__slack_send_message. Send it immediately — do NOT draft it for review.

One-liner format:

<status icon> <identifier> - <description>, <links>
  • status icon:
    • :large_green_circle: — the alert is fully resolved
    • :large_orange_circle: — the alert is mitigated (silence, workaround in place, ...) but not resolved
    • :red_circle: — the alert is still ongoing and needs attention from team atlas
  • identifier:
    • <alertname>/<cluster id> when it's only one alert on one cluster
    • <alertname> only when it affects multiple clusters
    • <cluster id> only when it's a cluster-wide problem with multiple related alerts
  • description: summarize in 25 words maximum — the root cause or ongoing problem, and what was done for resolution/mitigation; if silenced, say so and until when
  • links: maximum 2 links — a Slack channel or thread with more information about this incident, a GitHub issue with more information if any. Omit links you don't have; never fabricate one.

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.