Logo vun Windbgskill

Windbgskill

Communautéit
Kwansy98
windbgskill

Control WinDbg via HTTP REST API for three scenarios - dump analysis (process crash dumps, kernel crash dumps / BSOD), live kernel debugging (KDNET, local kernel, VM kernel), and user-mode process debugging (attach to process, application crash). Use when the user mentions WinDbg, crash dump, .dmp file, BSOD, bugcheck, kernel debug, process debug, !analyze, breakpoints, or says the windbgskill plugin is running on a port number.

Iwwersiicht

EditeurKwansy98
Repositorywindbgskill
Skill-Nummwindbgskill
Stären
30
Forks
3
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Kwansy98 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Windbgskill an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Kwansy98/windbgskill/tree/main/skills/windbg
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kwansy98/windbgskill.git /tmp/windbgskill
mkdir -p .claude/skills
cp -r /tmp/windbgskill/skills/windbg .claude/skills/windbgskill
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Windbgskill an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Windbgskill automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Windbgskill net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

WinDbg HTTP Bridge

Controls WinDbg through windbgskill.dll, exposing a local HTTP server. For dump analysis, launch WinDbgX with the dump and bridge initialization in one command. For an existing interactive debug session, load and start the bridge in that session. After initialization, communicate via HTTP (curl, curl.exe, Python, or any HTTP client).

All three debug modes share the same plugin interface — the only difference is which WinDbg commands you send.

Quick Start

Open a dump

When the user provides a dump path and the bridge is not already running, open the dump and initialize the bridge in the same WinDbgX invocation:

powershell
WinDbgX.exe -z "pathtodmp" -c ".load D:\All\project\mycode\windbgskill\windbgskill\x64\Release\windbgskill.dll; !windbgskill start 127.0.0.1 23333"

Replace pathtodmp with the dump's absolute path. The DLL passed to .load must also be an absolute path; passing only the filename can fail because WinDbg does not reliably resolve extensions from PATH or its extension search path. If the DLL is installed elsewhere, resolve that file first and substitute its absolute path. Use port 23333 unless the user has selected another port.

This single command is the dump-opening workflow: -z opens the dump and -c loads the extension and starts the HTTP bridge after WinDbg initializes.

Initialize an existing debug session

For an already-open live kernel or user-mode session, run the commands inside WinDbg, still using the DLL's absolute path:

.load D:\All\project\mycode\windbgskill\windbgskill\x64\Release\windbgskill.dll

# Default: listen on 127.0.0.1:9090 (local access only)
!windbgskill start

# Specify port only (still binds to 127.0.0.1)
!windbgskill start 9090

# Specify IP and port (use 0.0.0.0 to allow remote machine access)
!windbgskill start 0.0.0.0 9090

User tells you the port (e.g. "windbgskill plugin is on port 9090"):

powershell
curl.exe -s http://127.0.0.1:9090/api/status
curl.exe -s -X POST http://127.0.0.1:9090/api/exec -d "!analyze -v"

Always check /api/status first. If state is running, call /api/break before sending any commands.

Debugger States

StateMeaningAction
brokenTarget paused, debugger prompt activeSend commands freely
runningTarget executingCall /api/break first
no_targetNo debug session openIf a dump path is available, launch it with the WinDbgX command above; otherwise ask the user which target to attach
steppingSingle-step modeTreat same as broken

State transitions: running → POST /api/break → broken → POST /api/go → running

Scenario Detection

If the user doesn't specify which mode, infer from context before asking.

SignalLikely Scenario
.dmp / .mdmp file path mentionedDump analysis
"BSOD", "bugcheck", "blue screen", kernel dumpKernel dump analysis
"attached kernel", "KDNET", "VM debug", "local kernel"Live kernel debugging
"attached process", "process hang", "application crash"User-mode debugging
!analyze -v output has BUGCHECK_CODEKernel dump
!analyze -v output has EXCEPTION_CODE without bugcheckProcess dump or user-mode
!process 0 0 returns process listLive kernel debugging

When the scenario is ambiguous and cannot be inferred from context, ask: "Is this dump analysis, live kernel debugging, or user-mode process debugging?"

API Reference

Base URL: http://127.0.0.1:{PORT}

EndpointMethodPurpose
/api/helpGETAPI docs (LLM self-discovery)
/api/statusGETDebugger state, port, and current command info
/api/execPOSTExecute a WinDbg command
/api/breakPOSTInterrupt a running or stuck target
/api/goPOSTResume target execution
/api/shutdownPOSTStop the HTTP server remotely
powershell
# Self-discovery
curl.exe -s http://127.0.0.1:{PORT}/api/help

# Check state - also shows which command is currently running
# {"state":"broken","port":9090,"exec":{"busy":false}}
# {"state":"broken","port":9090,"exec":{"busy":true,"cmd":"!analyze -v","elapsed_s":47}}
curl.exe -s http://127.0.0.1:{PORT}/api/status

# Execute a command (body = raw WinDbg command, response = raw output)
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "k"
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "!analyze -v"

# Custom timeout via query param (default 60 s)
curl.exe -s -X POST "http://127.0.0.1:{PORT}/api/exec?timeout=180" -d "!analyze -v"

# Interrupt / resume
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/break
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/go

# Stop server remotely
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/shutdown

Common Commands by Scenario

Dump Analysis (process dump or kernel dump)

GoalCommand
Automated crash analysis!analyze -v
Switch to faulting thread context.ecxr
Call stackk / kb / kn
All threads' / processors' stacks~*k
Switch to thread/processor N~Ns
Registersr
Loaded moduleslm
Reload symbols for a module.reload <module>
Force reload all symbols.reload /f
Verbose symbol diagnostics!sym noisy then .reload
Display type / structuredt <type> [addr]
Memory layout!address
Process environment block!peb
Thread environment block!teb
Heap overview!heap -s

Symbol issues: if output shows ??? symbols or symbol file could not be found, run .reload <module> or .reload /f. Use !sym noisy before .reload to diagnose why symbols fail to load.

Live Kernel Debugging

~N in kernel context = switch to processor/core N (not thread). Use !process / !thread to navigate threads.

GoalCommand
List all processes!process 0 0
Processes with thread details!process 0 7
Inspect specific process!process <addr> 7
Switch to processor/core N~Ns
Current thread info!thread
Driver object!drvobj <name> 7
Device object!devobj <addr>
Pool tag analysis!pool <addr> / !poolused
Page table entry!pte <addr>
Display EPROCESSdt nt!_EPROCESS <addr>
List drivers / moduleslm
Set breakpoint on kernel symbolbp nt!NtCreateFile
Virtual memory stats!vm
Reload driver symbols.reload <driver.sys>

User-mode Process Debugging

~N in user-mode context = switch to thread N (e.g. ~0s, ~1s).

GoalCommand
List threads~
All threads' call stacks~*k
Switch to thread N~Ns
Call stackk / kb
Display local variablesdv
Search symbolsx <module>!<pattern>
Handle table!handle
Heap overview!heap -s
Process environment block!peb
Set breakpointbp <module>!<function>
List breakpointsbl

Workflows

Crash dump analysis

powershell
# 1. If the bridge is not running yet, open the dump and initialize it in one command
WinDbgX.exe -z "pathtodmp" -c ".load D:\All\project\mycode\windbgskill\windbgskill\x64\Release\windbgskill.dll; !windbgskill start 127.0.0.1 23333"

# 2. Confirm state (a loaded dump is in broken state)
curl.exe -s http://127.0.0.1:23333/api/status

# 3. Automated analysis (can take 60-120 s if downloading symbols)
curl.exe -s -X POST "http://127.0.0.1:23333/api/exec?timeout=180" -d "!analyze -v"

# 4. Switch to faulting context and inspect stack
curl.exe -s -X POST http://127.0.0.1:23333/api/exec -d ".ecxr"
curl.exe -s -X POST http://127.0.0.1:23333/api/exec -d "k"

Live kernel debugging

powershell
# 1. Break in
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/break

# 2. Explore system state
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "!process 0 0"

# 3. Set breakpoint and resume
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "bp nt!NtCreateFile"
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/go

# 4. When breakpoint hits, inspect
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "k"
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "r"

User-mode process debugging

powershell
# 1. Break in
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/break

# 2. Overview
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "~*k"
curl.exe -s -X POST "http://127.0.0.1:{PORT}/api/exec?timeout=120" -d "!analyze -v"

# 3. Set breakpoint and resume
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/exec -d "bp MyModule!MyFunction"
curl.exe -s -X POST http://127.0.0.1:{PORT}/api/go

Rules

  • Use any available HTTP client (curl, curl.exe, Python requests, etc.).
  • For a dump that is not open yet, use WinDbgX.exe -z "pathtodmp" -c ".load <absolute-dll-path>; !windbgskill start 127.0.0.1 <port>"; never split dump opening and bridge initialization into unrelated manual steps.
  • Always pass .load an absolute DLL path. Do not rely on PATH, the current directory, or WinDbg's extension search path.
  • /api/exec body is plain text — send the WinDbg command directly, no JSON wrapping.
  • Slow commands (!analyze -v, .reload /f, symbol downloads): append ?timeout=180; default is 60 s.
  • /api/exec returns HTTP 409 if target is running — call /api/break first.
  • /api/exec returns HTTP 503 if the engine is stuck — diagnose and recover:
    1. GET /api/status → exec.busy, exec.cmd, exec.elapsed_s show what is blocking and for how long.
    2. POST /api/break → sends a passive interrupt to unblock the stuck command.
    3. Retry the original command or investigate the cause.
  • After resume commands (g, p, t, pt, tt), state becomes running; check /api/status before next command.
  • ~N means thread N in user-mode, processor/core N in kernel mode and kernel dumps.
  • If the debug scenario is unclear, infer from context first; ask the user only if inference is not possible.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Windbgskill?

Control WinDbg via HTTP REST API for three scenarios - dump analysis (process crash dumps, kernel crash dumps / BSOD), live kernel debugging (KDNET, local kernel, VM kernel), and user-mode process debugging (attach to process, application crash). Use when the user mentions WinDbg, crash dump, .dmp file, BSOD, bugcheck, kernel debug, process debug, !analyze, breakpoints, or says the windbgskill plugin is running on a port number.

Firwat Windbgskill op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Windbgskill besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Windbgskill an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Kwansy98/windbgskill/tree/main/skills/windbg an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Windbgskill benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Windbgskill benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Windbgskill domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Windbgskill gratis?

Jo. De Skill gëtt vum Kwansy98 ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇