kernel-debug

kernel-debug is a skill for Claude Code from svnscha/mcp-windbg. It costs 66 tokens per session (679 once invoked), scanned A, original, MIT.

A guide for attaching a debugger to a running Windows kernel, the core part of the operating system, through KDNET, a named pipe, or a serial connection.

In plain words
What is it for?
Use it to inspect processes, threads, modules, and I/O requests, set breakpoints, analyze blue-screen crashes, resume the target, and wait for it to stop again.
Why use it?
It helps investigate kernel crashes and driver failures while making the machine's paused or running state explicit, since breaking into a kernel stops the whole target.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mcp-windbg-skills plugin — 4 skills shipped together

Good fit Use it to inspect processes, threads, modules, and I/O requests, set breakpoints, analyze blue-screen crashes, resume the target, and wait for it to stop again.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/svnscha/mcp-windbg/kernel-debug
About the project

mcp-windbg is a Model Context Protocol server that lets AI models control WinDbg, the Windows debugger used to inspect crash dumps and debug user-mode or kernel software. Developers and investigators use it to run debugger commands, examine failures, and manage multiple live debugging sessions through natural-language requests. The catalogue add-ons connect coding agents to this debugging workflow.

svnscha/mcp-windbg · 1,633 stars · on GitHub · svnscha.de

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add svnscha/mcp-windbg --skill kernel-debug
Clone the repo
git clone --depth 1 https://github.com/svnscha/mcp-windbg

Made for: Claude Code.

Or install mcp-windbg-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kernel-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/svnscha/mcp-windbg/kernel-debug/github.svg)](https://agentmods.dev/skills/svnscha/mcp-windbg/kernel-debug)
Your own site
<a href="https://agentmods.dev/skills/svnscha/mcp-windbg/kernel-debug"><img src="https://agentmods.dev/badge/skills/svnscha/mcp-windbg/kernel-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kernel-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/svnscha/mcp-windbg/kernel-debug"><img src="https://agentmods.dev/badge/skills/svnscha/mcp-windbg/kernel-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00679
Opus 5.5 $0.00026 $0.00272
Sonnet 5.5 $0.00013 $0.00136
Haiku 4.5 $0.00007 $0.00068

Measured 25d ago against content hash c948d452e01b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kernel-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mcp-windbg-skills/skills/kernel-debug/SKILL.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed · +23 tokens per session c948d452e01b
  2. 1mo ago Changed · +10 lines abdf340b3934
  3. 1mo ago First seen · 56 lines · 43 tokens per session scan A c25493b399a2

Subscribe to this mod's changes

kernel-debug is a skill published in the GitHub repository svnscha/mcp-windbg (1,633 stars, last pushed 3d ago), licensed MIT. It adds 66 tokens to every session and 679 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.