agentleFS
alabenkhlifaalabenkhlifa/dayjob/skills/incident/SKILL.md

incident

Skill1 starsChanged 31 days agoMITView on GitHub

Use when something is broken in production or users are affected right now — an outage, errors spiking, "we have an incident", "prod is down" — to triage, mitigate, and keep a running timeline.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use runbook, perf and 9 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.
  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 4 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 3 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 5 projects that use this

  • mijunriSkill

    database

    数据库脚本与操作规范。脚本放在 db_scripts 目录,遵循查询优化、事务、安全等实践。

    Also in 3 projects that use this

  • tuistSkill

    migrate

    Migrates existing Xcode projects to Tuist generated workspaces with build and run validation, external dependency mapping, and migration checklists. Use when adopting Tuist for an existing app or converting a hand-edited Xcode project to generated projects.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop the bleeding first, keep a timeline as you go, and never take a risky action without a yes.

    line 8
  2. Distinctive:

    Ask at most 3 quick questions, only for what you can't find: what is broken, who is affected, since when.

    line 34
  3. Very specific:

    Read the suspect diffs (git show <hash>).

    line 50
  4. Distinctive:

    Every finding, decision and action gets a timestamped line in the file.

    line 58
  5. Very specific:

    When the user confirms it's fixed: set Status: Resolved, add the resolution to the timeline, tick done actions, and suggest the postmortem …

    line 70
  6. Distinctive:

    No mitigation, no command that changes a live system (revert, reset, rollback, deploy, push, restart, scale, feature flag, config change), …

    line 75

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

Stop the bleeding first, keep a timeline as you go, and never take a risky action without a yes.

1. Open the incident file — right away

Create incident-<YYYY-MM-DD>-<slug>.md in the current folder (UTC date; slug from the symptom, e.g. checkout-500s). If an incident file with Status: Open or Status: Mitigated already covers this problem, append to it instead. Keeping this file is part of the job; you don't need to ask before writing it.

# Incident: <short title>
Status: Open
Started: <YYYY-MM-DD HH:MM> UTC
Severity: <SEV1 | SEV2 | SEV3>

## Impact
<who or what is affected, since when>

## Timeline (UTC)
- <HH:MM> — <event>

## Actions
- [ ] <action> — <owner>

Get times with date -u '+%H:%M'. Severity: SEV1 = most users or money affected, SEV2 = a key feature degraded, SEV3 = minor. Mark a guess with "(confirm)".

2. Triage

Ask at most 3 quick questions, only for what you can't find: what is broken, who is affected, since when.

3. Look for what changed

git log --since="24 hours ago" --format='%h %an %ar %s'
gh run list --limit 5 2>/dev/null   # only with a GitHub remote, as the gh account picked below
git tag --sort=-creatordate | head -5

gh account: the user may have several gh accounts, and the active one may not see this repo. Before the first gh call, list each account's access:

for u in $(gh auth status 2>&1 | sed -n 's/.*account \([^ ]*\).*/\1/p'); do echo "$u $(GH_TOKEN=$(gh auth token --user "$u") gh repo view --json viewerPermission -q .viewerPermission 2>/dev/null)"; done; true

Pick the first account with ADMIN, MAINTAIN or WRITE, else one with READ or TRIAGE. If none shows a permission, skip every gh call. Run every gh call as that account, GH_TOKEN=$(gh auth token --user <account>) gh ..., with 2>/dev/null. Never run gh auth switch.

Read the suspect diffs (git show <hash>). Match change times against when the symptom started.

4. Mitigate first

Propose the fastest safe mitigation — revert the suspect change, roll back the deploy, flip a feature flag, scale up — with the exact command. Never run any mitigation or any command that changes a live system (revert, reset, rollback, deploy, push, restart, scale, feature flag, config change), and never edit project code, without an explicit yes. Root cause can wait until users are OK.

5. Keep the timeline

Every finding, decision and action gets a timestamped line in the file. Facts, not blame: "config change deployed", not "X broke it".

6. Each reply during the incident

Status: <Open | Mitigated | Resolved> · Impact: <one line>
Next: <one step> — <command if any>
Need from you: <one thing, or "nothing">

7. Close

When the user confirms it's fixed: set Status: Resolved, add the resolution to the timeline, tick done actions, and suggest the postmortem skill.

Rules

  • Mitigation before root cause.
  • No mitigation, no command that changes a live system (revert, reset, rollback, deploy, push, restart, scale, feature flag, config change), and no project code edit without an explicit yes.
  • UTC times. Facts, not blame.

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.