feat: add debugging workflow guidance via MCP prompts, skills, and docs#11
Merged
Conversation
Adds four complementary layers of workflow guidance for AI assistants using mcp-dap-server, covering source debug, attach, core dump, and binary/assembly scenarios: - prompts.go: 4 MCP prompt handlers (debug-source, debug-attach, debug-core-dump, debug-binary) registered via registerPrompts(), each returning a structured step-by-step tool invocation guide - docs/superpowers/skills/: 4 Claude Code skill files with trigger conditions, decision trees, and root-cause patterns per scenario - docs/debugging-workflows.md: human-readable reference with decision table, Mermaid workflow diagrams, and common gotchas - CLAUDE.md: documents prompts.go, skill files, and workflow reference - main.go: wires registerPrompts() into server startup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
derekparker
commented
Mar 11, 2026
- Move skills from docs/superpowers/skills/ to top-level skills/ - stop tool: add detach=true parameter to disconnect without terminating the debuggee (sends DAP disconnect with terminateDebuggee=false) - debug-attach skill: note that debug() already returns initial context; only call context() after resuming; add C/C++ thread/lock indicators and memory-leak examples alongside Go examples; document stop(detach=true) - debug-binary skill: note that step() returns context automatically - debug-source skill: add language-specific evaluate() expression syntax for Delve (Go) and GDB (C/C++); expand common patterns table to cover Go, C/C++, and Rust root causes - Update CLAUDE.md and docs/debugging-workflows.md for new skills/ path Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
debug-source,debug-attach,debug-core-dump,debug-binary) inprompts.go— always-available guided workflows returned viaprompts/getdocs/superpowers/skills/with trigger conditions, step-by-step tool sequences, decision trees, and root-cause pattern guidesdocs/debugging-workflows.mdwith a decision table, Mermaid diagrams for each scenario, and common gotchasCLAUDE.mdto document the new prompts, skills, and workflow referenceregisterPrompts()intomain.goserver startup