Skip to content
Debugging
Skill

/kernel-debug

Attach to a live Windows kernel target over KDNET, a named pipe, or serial and drive it. Use when the user wants to debug a kernel, a driver, or a bugchecking VM. For a kernel crash dump file (MEMORY.DMP, a minidump) use analyze-dump instead.

From plugin
mcp-windbg
1.7k4 skills1 agent1 MCP

Claude Code

$ npx -y skills add svnscha/mcp-windbg --skill kernel-debug --agent claude-code

SKILL.md

kernel-debug.SKILL.md
name: kernel-debug
description: Attach to a live Windows kernel target over KDNET, a named pipe, or serial and drive it. Use when the user wants to debug a kernel, a driver, or a bugchecking VM. For a kernel crash dump file (MEMORY.DMP, a minidump) use analyze-dump instead.

Debug a live Windows kernel target

MCP connection

Use the existing mcp-windbg MCP connection, whether it is launched by a plugin, a native executable, Python, or an HTTP service. Tool names below are base names; resolve them against the tools exposed by that connection rather than assuming a plugin-specific prefix. Keep each session on the server that opened it. If multiple servers match, use the user's selected server or ask which one. If the required tools are unavailable, report the missing connection or tool and help check its configuration; do not register a second server.

Drive a kernel target with the `mcp-windbg` kd tools. A kernel session halts the whole machine while it is broken in, so treat the target's running state as something you are responsible for.

Connecting

`open_kd_session` with the `-k` connection string:

  • KDNET: `net:port=50000,key=1.2.3.4`
  • Named pipe: `com:pipe,port=\.\pipe\com_1,baud=115200,reconnect`
  • Serial: `com:port=COM1,baud=115200`

Ask for the string rather than guessing it. The session arrives already broken in, so you can issue commands immediately.

Working the target

`run_kd_command` with the `session_id`. Common ground:

  • `vertarget`, `!pcr`, `lm m nt` to confirm what you are attached to
  • `!process 0 0`, `!thread`, `!irp` for OS state
  • `bp <module>!<symbol>` to set a breakpoint
  • `!analyze -v` after a bugcheck

Letting the machine run

This is where a kernel session differs from a dump, and where it is easy to leave a machine frozen:

  • `g` resumes the target and returns immediately. It does not wait, and it does

not produce output until the target stops again.

  • `wait_for_break` blocks until the target stops on its own - a bugcheck, a

breakpoint, a manual break - and returns what the debugger printed.

  • `send_ctrl_break` halts a running target now.
  • Any ordinary command issued while the target runs breaks in automatically

first, and the reason it stopped leads that command's output.

A typical loop: set a breakpoint, `g`, tell the user to trigger the code path, then `wait_for_break`.

Finishing

`close_kd_session` with `resume: true` (the default) so the machine runs again. Only pass `resume: false` when the user explicitly wants it left halted, and say plainly that the machine will stay frozen until a debugger releases it.

If you set breakpoints, clear them with `bc *` before closing unless the user wants them kept.

Read more
@svnscha
Ships withmcp-windbg

A Model Context Protocol server that bridges AI models with WinDbg for crash dump analysis, user-mode remote debugging, and kernel debugging.

1.7k4 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.7k
Star history of svnscha/mcp-windbg on GitHub, a chart by star-history.com

Other skills on mcp-windbg.

analyze-dump

analyze-dump

Triage a Windows crash dump - identify the exception, the faulting frame, and what to look at next. Use when the user points at a…

@svnscha@svnschaInstall Skill
debug-remote

debug-remote

Attach to a running Windows process through a WinDbg debug server and inspect it live. Use when the user wants to debug a process…

@svnscha@svnschaInstall Skill
windbg-doctor

windbg-doctor

Check that this machine can actually debug - MCP connection reachable, debugger present, symbols configured - and explain how to…

@svnscha@svnschaInstall Skill

More skills from other plugins.

cpu-high

cpu-high

排查 JVM / 应用 CPU 飙高(线程定位 + 代码路径分析)

arthas3d38k
@alibaba@alibabaInstall Skill
d3k

d3k

Test and debug a web app in its existing d3k browser, including local Chrome connected to a Vercel Sandbox over CDP. Use for UI…

dev300013d1.6k
@vercel-labs-2@vercel-labs-2Install Skill
gearboy-debugging

gearboy-debugging

Debug and trace Game Boy / Game Boy Color / Super Game Boy games using the Gearboy emulator MCP server. Provides workflows for…

gearboytoday1.2k
@drhelius@drheliusInstall Skill

Questions about kernel-debug.

Which coding agents can use kernel-debug?
kernel-debug installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.