dotnet-debugging
Debugs Windows and Linux/macOS applications (native, .NET/CLR, mixed-mode) with WinDbg MCP (crash dumps, !analyze, !syncblk, !dlk, !runaway, !dumpheap, !gcroot, BSOD), dotnet-dump, lldb with SOS, createdump, and container diagnostics (Docker, Kubernetes). Hang/deadlock diagnosis, high CPU triage, memory leak investigation, kernel debugging, and dotnet-monitor for production. Spans 17 topic areas. Do not use for routine .NET SDK profiling, benchmark design, or CI test debugging.
What this skill does
# dotnet-debugging ## Overview Windows and Linux/macOS debugging using WinDbg MCP tools (Windows), dotnet-dump, and lldb with SOS (Linux/macOS). Applicable to any application -- native, managed (.NET/CLR), or mixed-mode. Includes container diagnostic patterns for Docker and Kubernetes. Guides investigation of crash dumps, application hangs, high CPU, and memory pressure through structured command packs and report templates. **Platforms:** Windows (WinDbg MCP, cdb), Linux/macOS (dotnet-dump, lldb with SOS, createdump, dotnet-monitor). ## Routing Table | Topic | Keywords | Description | Companion File | |-------|----------|-------------|----------------| | MCP setup | MCP server, WinDbg, configuration | MCP server configuration | references/mcp-setup.md | | MCP access | MCP access, tool IDs, dispatch | MCP access patterns | references/access-mcp.md | | Common patterns | debug patterns, SOS, CLR | Common debugging patterns | references/common-patterns.md | | Dump workflow | dump file, .dmp, crash dump | Dump file analysis workflow | references/dump-workflow.md | | Live attach | live process, cdb, attach | Live process attach guide | references/live-attach.md | | Symbols | symbol server, .symfix, PDB | Symbol configuration | references/symbols.md | | Sanity check | verify, environment, baseline | Sanity check procedures | references/sanity-check.md | | Scenario packs | command pack, triage, workflow | Scenario command packs | references/scenario-command-packs.md | | Capture playbooks | capture, procdump, triggers | Capture playbooks | references/capture-playbooks.md | | Report template | diagnostic report, evidence | Diagnostic report template | references/report-template.md | | Crash triage | crash, exception, access violation | Crash triage | references/task-crash.md | | Hang triage | hang, deadlock, freeze | Hang triage | references/task-hang.md | | High-CPU triage | high CPU, runaway thread, spin | High-CPU triage | references/task-high-cpu.md | | Memory triage | memory leak, heap, LOH | Memory leak triage | references/task-memory.md | | Kernel debugging | kernel, BSOD, bugcheck | Kernel debugging | references/task-kernel.md | | Unknown triage | unknown issue, general triage | Unknown issue triage | references/task-unknown.md | | Linux debugging | dotnet-dump, lldb, createdump, container | Linux/macOS debugging, dotnet-dump, lldb SOS, containers | references/linux-debugging.md | ## Scope - Crash dump analysis (.dmp files) on Windows, Linux, and macOS - Live process attach (cdb on Windows, lldb on Linux/macOS) - Hang and deadlock diagnosis (thread analysis, lock detection, wait chains) - High CPU triage (runaway thread identification) - Memory pressure and leak investigation (managed heap, native heap) - Kernel dump triage (BSOD / bugcheck analysis, Windows) - Container diagnostics (dotnet-dump in Docker/Kubernetes, sidecar patterns) - Production diagnostics (dotnet-monitor REST API, trigger-based collection) - SOS commands across all platforms (WinDbg, dotnet-dump, lldb) - Structured diagnostic reports with stack evidence ### Boundary with [skill:dotnet-tooling] Both skills use overlapping tools (dotnet-dump, dotnet-counters, dotnet-trace) but for different purposes: | Scenario | Use this skill (debugging) | Use [skill:dotnet-tooling] | |----------|---------------------------|---------------------------| | Investigating a crash dump (.dmp) | Yes | No | | "Why did my app crash/hang/OOM?" | Yes | No | | Attaching a debugger to a live process | Yes | No | | "How do I profile my app's performance?" | No | Yes (profiling) | | "How do I reduce GC pressure?" | No | Yes (gc-memory) | | Collecting a dump for later analysis | Yes | No | | Running dotnet-counters to monitor metrics | No | Yes (profiling) | | Analyzing a dump with dotnet-dump | Yes | No | | Decompiling an assembly to understand behavior | No | Yes (ilspy-decompile) | Rule of thumb: if something is **broken** (crash, hang, deadlock, OOM), route here. If something is **slow** or needs **optimization**, route to [skill:dotnet-tooling]. ## Out of scope - Performance profiling (dotnet-counters, dotnet-trace for optimization) -> [skill:dotnet-tooling] - GC tuning and managed memory optimization -> [skill:dotnet-tooling] - Assembly decompilation (ILSpy) -> [skill:dotnet-tooling] - Performance benchmarking and regression detection -> [skill:dotnet-testing] - Application-level logging and observability -> [skill:dotnet-devops] - Unit/integration test debugging -> [skill:dotnet-testing] ## MCP Tool Contract These tool IDs are the WinDbg MCP server's exported names (single-underscore `mcp_...`), not the `mcp__...` dispatch prefix used by some hosts. | Operation | Purpose | |-----------|---------| | `mcp_mcp-windbg_open_windbg_remote` | Attach to a live debug server | | `mcp_mcp-windbg_open_windbg_dump` | Open a saved dump file | | `mcp_mcp-windbg_run_windbg_cmd` | Execute debugger commands | | `mcp_mcp-windbg_close_windbg_remote` | Detach from live session | | `mcp_mcp-windbg_close_windbg_dump` | Close dump session | ## Diagnostic Workflow ### Preflight: Symbols Before any analysis, configure symbols to get meaningful stacks: 1. Set Microsoft symbol server: `.symfix` (sets `srv*` to Microsoft public symbols) 2. Add application symbols: `.sympath+ C:\path\to\your\pdbs` 3. Reload modules: `.reload /f` 4. Verify: `lm` (list modules -- check for "deferred" vs "loaded" status) Without correct symbols, stacks show raw addresses instead of function names. ### Crash Dump Analysis 1. Open dump: `mcp_mcp-windbg_open_windbg_dump` with dump file path 2. Load SOS for managed code: `.loadby sos clr` (Framework) or `.loadby sos coreclr` (.NET Core) 3. Get exception context: `!pe` (print exception), `!analyze -v` (automatic analysis) 4. Inspect threads: `~*e !clrstack` (all managed stacks), `!threads` (thread list) 5. Check managed heap: `!dumpheap -stat` (heap summary), `!gcroot <addr>` (object roots) ### Hang / Deadlock Diagnosis 1. Attach or open dump, load SOS 2. List all threads: `!threads`, identify waiting threads with `!syncblk` (sync block table) 3. Detect deadlocks: `!dlk` (SOS deadlock detection) 4. Inspect thread stacks: `~Ns !clrstack` for specific thread N 5. Check wait reasons: `!waitchain` for COM/RPC chains, `!mda` for MDA diagnostics ### High CPU Triage 1. Attach to live process or collect multiple dumps 10-30 seconds apart 2. Use `!runaway` to identify threads consuming the most CPU time 3. Inspect hot thread stacks: `~Ns kb` (native stack), `~Ns !clrstack` (managed stack) 4. Look for tight loops, blocked finalizer threads, or excessive GC ### Memory Pressure Investigation 1. Open dump, load SOS 2. Managed heap: `!dumpheap -stat` (type statistics), `!dumpheap -type <TypeName>` (filter) 3. Find leaked objects: `!gcroot <address>` (trace GC roots to pinned or static references) 4. Native heap: `!heap -s` (heap summary), `!heap -l` (leak detection) 5. LOH fragmentation: `!eeheap -gc` (GC heap segments) ## Report Template ``` ## Diagnostic Report **Symptom:** [crash/hang/high-cpu/memory-leak] **Process:** [name, PID, bitness] **Dump type:** [full/mini/live-attach] ### Evidence - Exception: [type and message, or N/A] - Faulting thread: [ID, managed/native, stack summary] - Key stacks: [condensed callstack with module!function] ### Root Cause [Concise analysis backed by stack/heap evidence] ### Recommendations [Numbered action items] ``` ## Guardrails - Do not claim certainty without callee-side evidence - Do not call it a deadlock unless lock/wait evidence supports it - Preserve user privacy: do not include secrets from environment blocks in reports Cross-references: [skill:dotnet-tooling] for .NET SDK diagnostic tools (`references/profiling.md`) and GC/memory tuning (`references/gc-memory.md`). ## References - [WinDbg MCP](https://github.com/anthropics/windbg-mcp) -- MCP server for WinDbg integration - [WinDbg Documentation](https://learn.microsoft.com/en-us/window
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.