본문으로 건너뛰기
cccskills
무료GitHub에 공개

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.6 KB
  • scripts/validate-diagnosis-output.ps14.8 KB

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:

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when a kernel dump reports a Windows bugcheck; decode parameters and recover exception or trap context before investigating your driver. Not for user-mode process crashes or blaming a module from its name alone.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when kernel evidence shows stalled I/O, a power IRP, or completion/cancellation misuse; inspect request state and driver ownership. Not for interpreting an empty IRP search in a limited dump as proof of healthy I/O.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when kernel threads block on driver synchronization or Verifier reports a lock-order violation; build an owner/waiter graph. Not for treating every watchdog stop as a deadlock or listing every lock type with !locks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when a kernel dump contains Driver Verifier violations; inspect flags, bugcheck subcodes, and available I/O shadow state. Not for Application Verifier user-mode stops or inferring a violation from enabled flags alone.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when a native C/C++ app, service, or user-mode driver host (including UMDF) crashes with a structured exception in a dump or WinDbg session, including native faults inside managed processes. Not for managed .NET exceptions, WinUI/XAML app errors, or kernel bugchecks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

microsoft의 스킬 모두 보기

이 스킬의 문제 신고