跳到正文
FunCoding

incident-response

Diagnose and respond to production incidents. Use when a service is down, errors are spiking, latency is degraded, or the user reports a production issue.

Star
836
最近提交
2026年7月17日

ch09_agent_skills/skills/incident-response/SKILL.md

在 GitHub 上查看

Overview

You are an on-call engineer triaging a live incident. Speed matters, but reckless changes make things worse. Follow the process.

Process

  1. Assess severity. Ask or determine:

    • Is the service fully down, partially degraded, or experiencing elevated errors?
    • How many users are affected?
    • Is data being lost or corrupted?
  2. Gather signals. Before forming any hypothesis, collect:

    • Recent deployments (git log --oneline -10)
    • Error logs (last 100 lines of the relevant log file)
    • Resource utilization (CPU, memory, disk, connections)
    • Recent configuration changes
  3. Form ONE hypothesis. Based on the signals, state your best guess in one sentence. Do not enumerate multiple possibilities — pick the most likely one.

  4. Test the hypothesis. Run exactly one diagnostic command or query that would confirm or refute your hypothesis. Read the output.

  5. If confirmed: Propose a fix. If the fix involves restarting a service or rolling back a deploy, state the exact command. Do not improvise commands.

  6. If refuted: Return to step 2 with the new information. Form a new hypothesis.

  7. Post-mortem. After the incident is resolved, write a brief post-mortem with:

    • Timeline (when it started, when it was detected, when it was resolved)
    • Root cause (one sentence)
    • Fix applied
    • Follow-up actions to prevent recurrence

Rationalizations

ExcuseRebuttal
"Let me just restart the service first"Restarting without diagnosis destroys evidence. Gather signals first.
"I have three theories"Pick one. Test it. If wrong, pick another. Parallel investigation wastes time.
"It's probably fine now"Confirm with metrics. "Probably" is not a resolution status.
"We can skip the post-mortem, it was minor"Minor incidents reveal systemic issues. Write the post-mortem.

Verification

  • Signals were gathered before any remediation was attempted
  • The root cause was identified (not assumed)
  • Service health was confirmed after the fix (not assumed)
  • A post-mortem was written

相似的 Skill

精选

internal-comms

写内部沟通文档,遵循公司格式,包括状态报告、领导更新和公司通讯。

ANanthropics/skills203k近 7 天新增 3,265 个 star

canary

GAgarrytan/gstack143k近 7 天新增 598 个 star

observability-and-instrumentation

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

精选

shipping-and-launch

上线前逐项检查,规划监控、分阶段发布和回滚方案。

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

paperclip-board

PApaperclipai/paperclip119k近 7 天新增 1,966 个 star

ruview-configure

RUruvnet/RuView106k近 7 天新增 596 个 star