Sre Incident Responseのロゴ

Sre Incident Response

コミュニティ
paulip114
sre-incident-response

Use during or when preparing for a production incident — declaring it, incident command roles, the live incident document, status updates, mitigation, handoff, drills — and when systematically diagnosing a production problem. Based on Google's IMAG / Incident Command System practice.

概要

公開者paulip114
リポジトリsre-practice-skills
スキル名sre-incident-response
スター
64
フォーク
19
同梱ファイル
1
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    paulip114がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Sre Incident Response」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/paulip114/sre-practice-skills/tree/main/sre-incident-response
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/paulip114/sre-practice-skills.git /tmp/sre-practice-skills
mkdir -p .claude/skills
cp -r /tmp/sre-practice-skills/sre-incident-response .claude/skills/sre-incident-response
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSre Incident Responseを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSre Incident Responseを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Sre Incident Responseは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Incident Response and Troubleshooting

Manage the incident (people, communication, control) and resolve it (mitigate first, then diagnose systematically).

Incident Response

Resolve the incident (mitigate impact, restore service) and manage it (coordinate people, keep everyone informed). Most incidents that spiral do so because of management failures, not technical ones.

The 3Cs

  • Coordinate the response effort.
  • Communicate among responders, to the organization, and to users.
  • Control the response: one clear line of command; no freelancing.

Common failure modes to guard against: the on-call is so deep in the technical problem that nobody manages; nobody knows what others are doing; well-meaning people make uncoordinated changes that make things worse.

When to declare an incident

Declare early. It is cheap to close a small incident and expensive to organize a big one hours late. Declare if any is true:

  • A second team is needed to fix it.
  • The problem is visible to users/customers.
  • It is still unsolved after about an hour of focused work.

Teams should keep their own written criteria based on past outages and known high-risk areas.

Roles

RoleResponsibilities
Incident Commander (IC)Holds the overall picture; assigns roles; makes decisions; removes blockers. Holds every role not yet delegated. Does not get lost in debugging.
Operations Lead (OL)Leads hands-on mitigation. The ops team is the only group that changes production during the incident.
Communications Lead (CL)Public face of the response: periodic updates to stakeholders and users, answers inquiries, keeps the incident doc current.
Planning (larger incidents)Files bugs, tracks deviations from normal state to undo later, arranges handoffs and staffing.

The person who declares is IC by default. Roles can be delegated recursively; if anyone is overloaded they ask for more people and create sub-teams.

Running the incident

  1. Declare in the agreed channel; name the IC.
  2. Open the live incident state document (references/incident-state-doc-template.md). IC's most important job is keeping it accurate; most important info at the top.
  3. Assess impact: who/what is affected, since when, how badly, is it growing.
  4. Mitigate first, root-cause later. Users care that errors stop, not that you understand why. Reach for generic mitigations as soon as you know where the problem is, even if you don't know what it is:
    • Roll back the latest release or config push.
    • Drain traffic away from a bad zone/cluster/region.
    • Disable the new feature via flag.
    • Add capacity / shed low-priority load.
    • Block an abusive client. Record every change in the doc so it can be reverted. Preserve evidence (logs, core dumps) where feasible.
  5. Communicate on a cadence (e.g. every 30–60 min for major incidents, even if "no change"). Use pre-written templates. Say clearly when the incident is over — silence is read as "still broken".
  6. Re-evaluate periodically: is the current approach still the best one? Should we escalate or switch tack?
  7. Hand off explicitly. When the IC changes (shift end, fatigue, or someone more experienced arrives), brief the new IC, say "you are now the incident commander", wait for explicit acknowledgment, and announce the change.
  8. Close: confirm recovery with metrics, declare resolved, assign a postmortem owner (sre-postmortem).

Responders should watch their own state: if you're panicking or exhausted, ask for help or rotate out. Rotate long-incident responders every few hours.

Preparing beforehand

  • Write and socialize the incident process (roles, criteria, channel) before it's needed.
  • Agree on one communication channel (chat room + bridge) and practise using it. Don't host it on infrastructure that might be the thing that's down.
  • Keep a contact list of on-calls and escalation paths for every team you depend on.
  • Prepare 2–3 status update templates and know who approves external communications.
  • Build generic mitigation tooling (one-command rollback, drain, feature kill switches) in calm times; review past postmortems to find which ones would have helped.
  • Practise: role-play past incidents ("Wheel of Misfortune"), run disaster-recovery tests, and use the incident framework for ordinary multi-team operations so it stays familiar. Rotate who plays IC.

Effective Troubleshooting

Treat debugging as applied scientific method: observe, hypothesize, test, repeat — while keeping the service alive.

The loop

  1. Problem report. Write down: expected behavior, actual behavior, how to reproduce if possible, when it started, scope. Vague reports ("it's slow") must be sharpened first.
  2. Triage. Judge severity. If users are hurting, stop the bleeding first (rollback, drain, shed load — see Running the incident above) before deep diagnosis. Preserve evidence when you can (logs, snapshots, a held-out instance).
  3. Examine. Look at what the system is telling you:
    • Golden-signal dashboards for the service and its dependencies.
    • Logs and traces for failing requests; compare with a succeeding one.
    • Introspection endpoints (status pages, current config, version, health).
    • Recent changes: deploys, config pushes, flag flips, traffic shifts, dependency changes. Correlating the start time with a change is often the fastest lead.
  4. Diagnose. Form hypotheses that explain all the observations. Narrow the search space:
    • Simplify and reduce — can you reproduce with a smaller input, one instance, one request?
    • Divide and conquer / bisect — test the middle of the request path (or the commit range) and halve the search each step.
    • Ask "what, where, why" — what is the system doing, where are resources going, why is it doing that.
    • What touched it last? — systems tend to stay working until something changes.
  5. Test and treat. Design tests that can disprove a hypothesis. Prefer tests with mutually exclusive outcomes. Consider side effects: a test that adds logging or load can change behavior. Record every test and result.
  6. Cure. Once the cause is confirmed, fix it, verify, and record the findings for the postmortem (sre-postmortem).

Traps to avoid

  • Looking at irrelevant symptoms or misreading metrics — understand what a graph actually measures before trusting it.
  • Not knowing how to change the system or its inputs to test a hypothesis safely.
  • Favoring far-fetched theories over simple ones; remember common causes are common.
  • Chasing coincidences — correlation in time is a lead, not a proof. Other services may share the symptom for unrelated reasons.
  • Anchoring on the first hypothesis; actively list alternatives and look for evidence against your favorite.
  • Changing several things at once — you won't know which one mattered, and you may stack new problems.
  • Freelance changes during an incident — coordinate through the ops lead.

Make systems easier to debug (do this ahead of time)

  • Consistent structured logging with request IDs propagated across services; adjustable log verbosity at runtime.
  • Distributed tracing on critical paths.
  • Introspection endpoints showing version, config, dependency health, and recent errors.
  • Tools that diff current vs last-known-good config/version.
  • Write down useful diagnostic queries and playbook steps after each investigation.

Output when asked to help debug

Return: a sharpened problem statement, the evidence reviewed, a ranked list of hypotheses with the test that would confirm or refute each, recommended immediate mitigation if users are affected, and what to record for the postmortem.

Sources

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Sre Incident Response」では何ができますか?

Use during or when preparing for a production incident — declaring it, incident command roles, the live incident document, status updates, mitigation, handoff, drills — and when systematically diagnosing a production problem. Based on Google's IMAG / Incident Command System practice.

TypingMindでSre Incident Responseを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Sre Incident Responseはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSre Incident Responseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/paulip114/sre-practice-skills/tree/main/sre-incident-responseを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Sre Incident Responseを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Sre Incident Responseで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSre Incident Responseを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Sre Incident Response」は無料ですか?

はい。paulip114がApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇