Attaches to a live Windows user-mode process via a WinDbg/CDB debug server for remote inspection. Use for hang analysis, lock contention, or live debugging instead of crash dumps.
Ships in mcp-windbg-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Attach to an existing WinDbg/CDB debug server with the mcp-windbg tools.
This is user-mode only - for a kernel target use the available kernel-debug skill.
Someone must already be hosting the target. In WinDbg or CDB on that machine:
.server tcp:port=5005
If they have not, say so rather than guessing a connection string - there is nothing to attach to yet.
CDB 10.0.29661.1004 with stdin redirected to NUL (/dev/null or
subprocess.DEVNULL), or a stdin pipe that reaches EOF, can exhaust Windows nonpaged
pool and freeze the host. For unattended startup use:
cdb -server tcp:port=5005 -noio <program>
Keep -server and its transport first, followed by -noio. This disables local
console I/O; use the remote client for commands and output. Apply -noio only to
the external -server process, never to the MCP-managed -remote client. Never use
NUL/EOF stdin without -noio. Arrange cleanup before launching, including failed
connections and interrupted investigations; record the spawned server PID. If
Could not write to pipe, 1450 repeats, stop only your owned server instead of
retrying. See the CDB upstream report.
open_cdb_remote with the connection string:
tcp:Port=5005,Server=hostnamenpipe:Pipe=pipename,Server=hostnameThe target is running when you attach, so the session may not be at a prompt.
send_ctrl_break halts it when you need it stopped.
run_cdb_command with the session_id:
~*k for every thread's stack - the usual first move on a hang!locks, !cs -l for lock contentionlm, !peb for what is loaded and how it startedbp, g, wait_for_break to catch a code path in the act.dump /ma <path> to capture a dump for offline analysisAttaching to a live process freezes it while broken in, and a frozen process is usually worse than an unanalyzed one:
g resumes and returns immediately; the target produces no output until it
stops again.wait_for_break blocks until it stops on its own.close_cdb_session when finished. By default it leaves the target as the
client found it, running again if it was running at attach; resume overrides
that. Say plainly whether the target was left running or halted, so nobody
discovers a frozen process an hour later. Closing
the session closes only the MCP client, not the external debug server. Separately
stop any server you started and verify it exited; leave pre-existing servers alone.
For a hang, the answer is usually the relationship between threads, not a single
stack: which thread holds what, and which are waiting on it. Say that explicitly
rather than pasting ~*k and leaving the reader to work it out.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
windbg, cdb, remote-debugging, windows-debugging, live-process
4 skills in this plugin
/analyze-dumpTriage a Windows crash dump - identify the exception, the faulting frame, and what to look at next. Use when the user points at a .dmp file, asks why a Windows process crashed, or asks why a machine blue-screened./kernel-debugAttach 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./windbg-doctorCheck that this machine can actually debug - MCP connection reachable, debugger present, symbols configured - and explain how to fix whatever is missing. Use when mcp-windbg tools fail, when a session will not open, or before a first debugging session./mcp-windbg-skills:debug-remotefrom mcp-windbg-skills
npx claudepluginhub svnscha/mcp-windbg --plugin mcp-windbg-skillsOther plugins' skills for the same job