Incident Prior Artのロゴ

Incident Prior Art

コミュニティ
Dark-Alex-17
incident-prior-art

コード変更を運用履歴(過去のインシデント、障害、オンコール対応での修正)と照らし合わせ、苦労して得た本番環境の知見が回帰しないようレビューします。方法は2つあります。git考古学では、差分で弱められたり削除されたりする行をblameし、インシデント対応の修正として追加されたものか確認します(外部エージェントは不要です)。過去事例の委任では、差分から抽出した症状に関する検索語を使い、設定済みのインシデント履歴調査エージェントを起動します。検出結果は標準のレビュー重大度分類に統合され、過去の障害要因の再導入はCRITICALとなります。git履歴のコマンドを実行するためのシェルアクセスを許可します。

概要

公開者Dark-Alex-17
リポジトリcoyote
スキル名incident-prior-art
スター
56
フォーク
2
同梱ファイル
指示のみ
ライセンスAGPL-3.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

You are checking a code change against operational history. Code review answers "is this code good?"; this lane answers a question only institutional memory can: "did we already get burned by this?" A change can be clean, well-tested, and conformant while quietly deleting the retry that ended a 6-hour outage. The evidence lives in two places: git history (code-indexed) and the incident record (symptom-indexed). Work both.

When this lane runs

This lane is OPTIONAL and runs only when both hold:

  1. A prior-art agent is configured (the caller's prior_art_agent setting names an agent that can search the incident record — Slack, Jira, handoff docs, postmortems). If it is empty, run ONLY the git-archaeology lane (Part A), which needs no external agent.
  2. The diff touches operationally-relevant surface: services with on-call history, code that emits alerts/metrics/log lines operators watch, error handling, retries, timeouts, rate limits, queue/batch processing, or config controlling any of these. A docs change or a pure-UI tweak does not need an incident sweep — skip and say so in one line.

Part A: Git archaeology (code-indexed, always available)

The highest-value catch in this entire lane: a diff that removes or weakens a line that exists because of a past incident. Look at what the diff DELETES or LOOSENS — guards, retries, timeouts, limits, locks, ordering, special-case branches with no obvious purpose — and ask where each came from:

execute_command --command "git log --oneline -3 -L <start>,<end>:<file>"
execute_command --command "git log --oneline -S '<deleted snippet>' -- <file>"

Read the originating commit message (git show --stat <sha>). Signals that a line was born in an incident fix:

  • Ticket/incident references (INC-, JIRA keys, "postmortem", "outage", "hotfix", "pages", "sev")
  • Fix-shaped messages ("prevent X under load", "handle Y race", "bound Z to avoid OOM")
  • A commit that touches only this guard, dated near a known incident

A deleted/weakened line whose origin is an incident fix is a 🔴 CRITICAL finding — the diff reintroduces a known production failure mode. Cite the line, the originating commit, and its message. If the origin is ordinary feature work, no finding — do not manufacture history.

Part B: Extract symptom-vocabulary search keys from the diff

The incident record is indexed by what OPERATORS saw, not by file paths. Before delegating, translate the diff into that vocabulary:

  1. Error/log strings added, changed, or deleted — incidents are found by error strings more than by anything else. A DELETED log line is itself a lead: someone may rely on it for triage.
  2. Metric, alert, and dashboard names the code emits or the change affects.
  3. Config keys and their old/new values (timeouts, limits, feature flags).
  4. Service/feature/domain terms an operator would use ("invoice proration", "webhook retries", "usage export") — not function names.
  5. External dependencies touched (queues, third-party APIs, databases) — their names appear in incident titles.

Collect 3-8 strong keys. Weak generic keys ("error", "billing") flood the search; skip them.

Part C: Delegate to the prior-art agent (REVIEW MODE)

Spawn the configured agent. Its normal job is live-incident triage, so the prompt MUST re-scope it — the spawn prompt is its entire context:

agent__spawn --agent <prior_art_agent> --prompt "REVIEW MODE — prior-art check for a proposed code change (NOT live triage; nothing is on fire).

## CHANGE SUMMARY
<2-4 sentences: what the diff does, which service/feature, what operational surface it touches>

## SEARCH KEYS
<the Part B keys: error strings, metric/alert names, config keys, feature terms>

## TASK
Search the incident record (handoff docs, Slack, Jira, postmortems) for past incidents matching these keys. For each relevant hit report:
- Reference (ticket/thread/doc section) and date
- What happened and what the resolution was
- Relevance: does this change RISK REINTRODUCING that failure mode, or should it ADOPT a safeguard from that resolution?

Only report incidents with a concrete connection to these search keys. 'The billing system has had incidents' is noise. If nothing relevant exists, say so plainly — a clean result is a valid result.

You are read-only. Do not post, comment, or edit anything."

Folding findings into the review report

Prior-art findings use the SAME severity taxonomy as the rest of the review — no separate verdict:

FindingSeverity
Diff reintroduces a past incident's failure mode (archaeology hit on a deleted guard, or historian match showing this exact pattern caused an incident)🔴 CRITICAL — cite the incident/commit
Past incident's resolution added a safeguard the new code should mirror but doesn't (sibling code got a fix; this new path lacks it)🟡 WARNING
Related incident exists; change looks safe but reviewer/author should know the history🟢 SUGGESTION — informational, with the reference
Historian found nothing relevantOne line in the report: "Prior-art check: no relevant incident history found for ."

Present these under a dedicated "Operational history" section in the final report, each finding citing its incident reference or originating commit.

Anti-patterns

  • Running the incident sweep on every trivial change — it is trigger-gated for a reason; Slack/Jira searches are slow and rate-limited.
  • Blocking on vague similarity ("this area had incidents once") — a 🔴 requires a concrete reintroduction path tied to a specific incident or originating commit.
  • Searching by file paths or function names — the incident record doesn't know them; translate to symptom vocabulary first.
  • Skipping Part A because no prior-art agent is configured — archaeology is local git work and always available.
  • Treating a clean historian result as wasted effort — "no prior art" is signal, and it belongs in the report as one line, not zero.
  • Manufacturing findings from ordinary-feature-work commits to have something to say. Most deleted lines were not incident fixes.

よくある質問

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

コード変更を運用履歴(過去のインシデント、障害、オンコール対応での修正)と照らし合わせ、苦労して得た本番環境の知見が回帰しないようレビューします。方法は2つあります。git考古学では、差分で弱められたり削除されたりする行をblameし、インシデント対応の修正として追加されたものか確認します(外部エージェントは不要です)。過去事例の委任では、差分から抽出した症状に関する検索語を使い、設定済みのインシデント履歴調査エージェントを起動します。検出結果は標準のレビュー重大度分類に統合され、過去の障害要因の再導入はCRITICALとなります。git履歴のコマンドを実行するためのシェルアクセスを許可します。

TypingMindでIncident Prior Artを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/incident-prior-artを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

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

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

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

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

AIスキル「Incident Prior Art」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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