dynamic-debugger
Interactive debugging via DAP-MCP for multiple languages with natural language commands
What this skill does
# Dynamic Debugger Skill
Interactive debugging capability fer Claude Code via DAP-MCP integration. Debug yer code in natural language without leavin' the conversation.
## Overview
This skill enables interactive debuggin' through the Debug Adapter Protocol (DAP) via MCP server integration. Set breakpoints, step through code, inspect variables, and control execution flow across multiple programming languages using natural language commands.
**What ye get:**
- Natural language debugging commands ("set breakpoint at line 42")
- **Current support:** Python (debugpy), C/C++/Rust (lldb)
- **Planned support:** JavaScript/TypeScript, Go, Java, .NET (see configs/future/)
- Automatic intent and language detection
- Session management with resource limits
- Graceful error handling and recovery
## Activation (Opt-In)
**This skill is DISABLED by default** (`disableModelInvocation: true`).
**To enable:**
1. **Explicit invocation** (recommended):
```
"Use the dynamic-debugger skill to debug this function"
```
2. **Auto-activation** (edit SKILL.md frontmatter):
```yaml
disableModelInvocation: false # or remove this line
```
**Why opt-in?**
- Requires external dap-mcp server installation
- Starts debugger processes (resource intensive)
- Full filesystem access needed
- Best enabled only when actively debugging
## Prerequisites
**Required:**
- dap-mcp server installed (`pip install dap-mcp` or `uv pip install dap-mcp`)
- Language-specific debuggers (current support):
- Python: debugpy (`pip install debugpy`)
- C/C++/Rust: lldb-dap (install lldb with DAP support)
**Verification:**
```bash
# Check dap-mcp installation
python3 -m dap_mcp --help
# Check language debuggers
python -c "import debugpy; print('debugpy ready')"
which gdb
dlv version
```
## Quick Start
### Scenario 1: Python Async Bug
**User:** "This async function isn't awaiting properly. Debug it."
**Skill activates automatically:**
1. Detects debugging intent (high confidence)
2. Identifies Python from file extensions
3. Starts debugpy session
4. Sets breakpoint at async function
5. Shows await state and variable values
### Scenario 2: C++ Segfault
**User:** "Getting segfault in malloc. Set a breakpoint."
**Skill response:**
1. Explicit trigger detected ("set a breakpoint")
2. Identifies C++ from file extensions
3. Starts gdb session
4. Catches segfault with stack trace
5. Inspects pointer values at crash point
### Scenario 3: JavaScript Promise Chain
**User:** "Why is this Promise chain not resolving?"
**Skill response:**
1. Implicit trigger detected ("why is")
2. Asks confirmation (medium confidence)
3. Identifies JavaScript from package.json
4. Sets breakpoints in .then() handlers
5. Steps through async flow
## Common Workflows
### Starting a Debug Session
Explicit triggers (auto-start):
- "debug this"
- "set a breakpoint at line X"
- "step through this function"
- "inspect variable X"
Implicit triggers (may ask confirmation):
- "Why is X wrong?"
- "This isn't working"
- "Trace execution of X"
- "Test is failing in X"
### Debugging Commands
**Breakpoint management:**
- "Set breakpoint at line 42"
- "Remove breakpoint at line 42"
- "List all breakpoints"
**Execution control:**
- "Step over" (execute current line)
- "Step into" (enter function call)
- "Step out" (exit current function)
- "Continue" (run until next breakpoint)
**Variable inspection:**
- "What's the value of userId?"
- "Show all local variables"
- "Evaluate expression: x + y"
**Session management:**
- "Show call stack"
- "List threads/goroutines"
- "Stop debugging"
## Navigation Guide (MANDATORY)
**Load these files on demand based on context:**
### When to Load reference.md
**Trigger:** User needs specific API details, configuration syntax, or error codes
**Contains:** Complete API reference, language configurations, session management API, error handling details, resource limits
**Size:** 3,000-4,000 tokens
**Example queries:** "How do I configure the Go debugger?", "What are the resource limits?", "Show me all error codes"
### When to Load examples.md
**Trigger:** User wants working code examples or specific debugging scenarios
**Contains:** Production-ready debugging examples for all 6 languages with complete workflows
**Size:** 2,000-3,000 tokens
**Example queries:** "Show me a Python async debugging example", "How do I debug a Rust panic?", "Example of goroutine deadlock debugging"
### When to Load patterns.md
**Trigger:** User asks about best practices, architectural patterns, or debugging strategies
**Contains:** Production debugging patterns, performance techniques, security best practices, common pitfalls
**Size:** 1,500-2,000 tokens
**Example queries:** "What are best practices for debugging?", "How do I debug performance issues?", "Common security mistakes?"
**Default behavior:** Use only SKILL.md for basic debugging commands. Load supporting files only when explicitly needed.
## Session Management
**Single concurrent session:** Only one debugging session per user at a time
**Timeouts:**
- Session idle: 30 minutes
- Connection idle: 5 minutes
- Startup: 10 seconds max
**Resource limits:**
- Memory: 4GB max for debugged process
- No CPU limits (debugging is resource-intensive)
- Automatic cleanup on session end
## Language Detection
**Automatic detection** via:
1. File extensions (primary signal)
2. Manifest files (package.json, Cargo.toml, go.mod)
3. Project structure analysis
**Confidence thresholds:**
- High (>90%): Auto-select language
- Medium (70-90%): Ask user confirmation
- Low (<70%): Prompt user to specify
**Manual override:** "Debug this as Python code" (bypasses auto-detection)
## Troubleshooting
### dap-mcp Server Not Found
**Symptom:** "dap-mcp server not available"
**Solution:**
```bash
npm install -g dap-mcp
npx dap-mcp --version
```
### Language Debugger Missing
**Symptom:** "debugpy not found" or "gdb not available"
**Solution:** Install language-specific debugger (see Prerequisites)
### Session Timeout
**Symptom:** "Session timed out after 30 minutes"
**Solution:** Start new session with "debug this"
### Concurrent Session Blocked
**Symptom:** "Another debugging session is active"
**Solution:** Stop existing session with "stop debugging" or wait for timeout
### Memory Limit Exceeded
**Symptom:** "Debugged process exceeded 4GB memory limit"
**Solution:** Reduce data structures or use sampling for large datasets
## Error Recovery
All errors provide:
1. Clear description of what failed
2. Actionable recovery steps
3. Manual fallback commands if needed
**Graceful degradation:** If dap-mcp unavailable, skill suggests manual debugger commands.
## Token Budget
- Orchestration overhead: <100 tokens per command
- Intent detection: <20 tokens
- Language detection: <30 tokens (cached after first detection)
- Error messages: <50 tokens
**Design philosophy:** Keep skill orchestration minimal. Most tokens spent on actual debugging interaction, not overhead.
## Security
⚠️ **IMPORTANT SECURITY CONSIDERATIONS:**
- **Full Filesystem Access:** This skill can read/write ANY file on your system (required for debugging)
- **Process Execution:** Starts debugger processes with full system permissions
- **No Sandboxing:** Debugged code runs with your user privileges
- **Local-Only Default:** Server binds to localhost only (do NOT expose to network)
- **Sensitive Data:** Debugger can access memory, environment variables, credentials in running processes
**Best Practices:**
- Only debug code you trust
- Review debugger configurations before use
- Be cautious with production credentials in environment
- Use dedicated development environments for sensitive projects
- Never debug untrusted binaries
**Process Isolation:**
- Debugger runs in separate process from Claude Code
- Cleanup script terminates all debugger processes on exit
## Performance Targets
- Server startup: <10 seconds
- Breakpoint operations: <2 seconds
- Step oRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.