Logo de Windbg Diagnostic Method

Windbg Diagnostic Method

Organização
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.

Visão geral

Publicado pormicrosoft
Repositóriowin-dev-skills
Nome da habilidadewindbg-diagnostic-method
Estrelas
477
Forks
37
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por microsoft no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Windbg Diagnostic Method no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/microsoft/win-dev-skills/tree/main/plugins/windbg/skills/windbg-diagnostic-method
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Windbg Diagnostic Method em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Windbg Diagnostic Method automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Windbg Diagnostic Method não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Windbg Diagnostic Method faz?

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.

Por que usar Windbg Diagnostic Method no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Windbg Diagnostic Method é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Windbg Diagnostic Method no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/microsoft/win-dev-skills/tree/main/plugins/windbg/skills/windbg-diagnostic-method. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Windbg Diagnostic Method?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Windbg Diagnostic Method?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Windbg Diagnostic Method com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Windbg Diagnostic Method é gratuita?

Sim. A habilidade é publicada no GitHub por microsoft sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇