Windbg Diagnostic Methodのロゴ

Windbg Diagnostic Method

組織
microsoft
windbg-diagnostic-method

Use with every WinDbg plugin investigation to apply evidence-first reasoning, confidence calibration, contrarian review, structured reporting, and deterministic validation. Not a bug-family-specific triage skill.

概要

公開者microsoft
リポジトリwin-dev-skills
スキル名windbg-diagnostic-method
スター
477
フォーク
37
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

関連するリクエストがあると、モデルが自動的にWindbg Diagnostic Methodを読み込みます。

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

WinDbg Diagnostic Method

Apply this method alongside the bug-family-specific skill selected for an investigation. Pattern matches route the investigation; they do not prove the root cause.

Evidence ladder

Prefer direct evidence in this order:

  1. Faulting instruction/context, bugcheck or exception parameters, and resource owners/waiters from the actual dump or trace.
  2. Matching symbols and the user's authorized source for the involved build.
  3. Allocation/free, Verifier, IRP, lock, ETW, WCT, or TTD history captured for the same failure.
  4. Controlled reproduction and instrumentation.
  5. Pattern guidance as a hypothesis only.

Never claim commands, source access, or artifacts that are unavailable in the session.

First-pass normalization

  • Confirm process dump versus kernel dump and target architecture/build.
  • Load public Windows symbols and matching symbols for user/vendor modules.
  • Record missing pages, symbols, related-process dumps, trace scope, and tool availability.
  • User-mode exception: .exr -1, .ecxr, stack, and registers.
  • Kernel bugcheck: .bugcheck, !analyze -v, then documented context/trap recovery for that code.
  • Hang: identify the affected operation, wait type, owner/server, and deepest supported blocker.
  • Memory: distinguish corruption, address-space pressure, and commit/limit failures before choosing a fix.

Five-phase investigation

  1. OBSERVE: establish dump/trace type, architecture, symbols, code, stack, registers, thread/resource state, and missing evidence.
  2. HYPOTHESIZE: form a specific primary mechanism and at least two plausible alternatives when the evidence permits.
  3. TEST: identify direct debugger, source, trace, or reproduction evidence that distinguishes the hypotheses. Absence of evidence is not evidence of absence.
  4. EVALUATE: record supporting, contradictory, and missing evidence.
  5. CONCLUDE or PIVOT: name the violated invariant and verification plan, or remain candidate-pending-verification.

Routing index

EvidenceSkill
Native user-mode exception in an app, service, or UMDF/user-mode driver hostwindbg-user-exception-triage
User-mode heap corruption or allocation/free historywindbg-user-heap-corruption-investigation
Cross-thread/process, COM/RPC, or service waitwindbg-user-wait-chain-analysis
User-mode TTD history questionwindbg-user-ttd-reverse-debugging-triage
User-mode VA fragmentation, allocation failure, or commit pressurewindbg-user-virtual-memory-exhaustion
Thread-affine lock across coroutine suspensionwindbg-user-mutex-held-across-co-await
Kernel bugcheck, trap frame, or saved contextwindbg-kernel-bugcheck-triage
Driver Verifier violationwindbg-kernel-verifier-triage
Outstanding/power IRP, completion, or cancellationwindbg-kernel-irp-lifecycle-triage
Kernel lock owner/waiter chainwindbg-kernel-lock-deadlock-triage

These are the complete bug-family routes. Continue evidence-led reasoning for unsupported families; never dispatch to an absent skill.

Routing depth

  • Fast (indicative diagnosis confidence >=0.80): validate the apparent pattern, its required evidence, and plausible alternatives.
  • Validate (0.40-0.79): test the leading pattern and at least one plausible alternative through the full cycle.
  • Full reasoning (<0.40 or no match): reason from observations and preserve explicit uncertainty.

Confidence is explanatory judgment, not measured probability.

Trigger and fix gates

  • Verify the trigger in the dump, disassembly, source, trace, or controlled reproduction before declaring a final fix.
  • Name the violated invariant and the parties or path that violate it.
  • Separate the detector or victim from the original writer, freeing actor, or resource holder.
  • A fix must restore the violated invariant, not merely suppress the reproducer.
  • If the trigger is unverified, use candidate-pending-verification, set the fix to null or a verification plan, and name the evidence/fix matrix needed.
  • Do not blame a module solely from a bucket or MODULE_NAME.

Fix-confidence calibration

Diagnosis confidence and fix confidence are separate. Every proposed fix must declare fix_confidence and one fix_code_path_coverage value:

Fix confidenceRequired coverage
>=0.90read-this-session: the actual fix path was read in this investigation.
0.70-0.89read-prior-session or symbol-or-disassembly: direct coverage exists, but the complete source path was not read in this investigation.
0.50-0.69pattern-only, or incomplete symbol/disassembly evidence. Treat the fix as a candidate.
<0.50not-read: no direct fix-path coverage. Keep the diagnosis candidate-pending-verification and set the fix to null or a verification plan.

Lower confidence is always allowed when evidence quality, path coverage, or alternatives warrant it. Never raise confidence to fit the table.

Independent review

Before finalizing a full diagnosis:

  1. When the host supports the bundled Copilot agents, invoke the contrarian agent once with the complete proposed diagnosis.
  2. When the host cannot run that agent, state that the independent review did not run; do not silently substitute inline self-review.
  3. If the verdict is CHALLENGED, test the counter-hypothesis with direct evidence, then downgrade confidence or remain pending verification.
  4. Stop after one loopback. A second challenge remains pending verification.

Record contrarian_loopback as the Boolean true or false.

Report contract

A full report contains these H2 sections in order:

  1. Analysis
  2. Root Cause
  3. Fix
  4. Reasoning Chain
  5. Alternatives Considered
  6. Trigger Verification
  7. Mermaid
  8. Contrarian Verdict
  9. JSON Output Contract Summary

The Trigger Verification section must distinguish observed, contradictory, and missing evidence plus fix validation. Mermaid must reflect verified evidence. The JSON summary must include:

  • diagnosis_status
  • routing_path
  • root_cause
  • confidence
  • fix_confidence
  • fix_code_path_coverage
  • contrarian_review
  • contrarian_loopback

Deterministic report validation

After writing the report, run the bundled validator with PowerShell 7:

powershell
pwsh -NoProfile -File <skill-directory>\scripts\validate-diagnosis-output.ps1 `
  -Path <diagnosis-markdown-path>

Use the installed windbg-diagnostic-method directory for <skill-directory>. The script checks each section body independently, requires at least two alternatives, accepts explicit or implicit Mermaid participants, parses the JSON summary, and exits nonzero on failure.

Correct failed checks and rerun the script before presenting the report as structurally complete. Structural validation does not replace technical review.

Safety and privacy

Dumps, traces, ETLs, CABs, source, paths, tokens, and memory contents can be sensitive. Obtain authorization before capture, configuration changes, or sharing. Verifier and Page Heap can disrupt workloads and require a recoverable test plan plus restoration steps. Public feedback follows FEEDBACK.md and defaults to a minimal reviewed summary with no automatic attachments.

Feedback

For feedback about this method or validator, follow the package FEEDBACK.md. Do not attach private diagnosis files automatically.

同梱ファイル

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

よくある質問

AIスキル「Windbg Diagnostic Method」では何ができますか?

Use with every WinDbg plugin investigation to apply evidence-first reasoning, confidence calibration, contrarian review, structured reporting, and deterministic validation. Not a bug-family-specific triage skill.

TypingMindでWindbg Diagnostic Methodを使うメリットは何ですか?

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

TypingMindにWindbg Diagnostic Methodをインストールするにはどうすればよいですか?

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

Windbg Diagnostic Methodを使えるAIモデルはどれですか?

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

Windbg Diagnostic Methodは何個のAIモデルで使えますか?

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

AIスキル「Windbg Diagnostic Method」は無料ですか?

はい。microsoftがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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