/ Directory / Playground / Debug Skill
● Community AlmogBaku ⚡ Instant

Debug Skill

by AlmogBaku · AlmogBaku/debug-skill

Real-debugger skill: breakpoints, stepping, variable inspection.

Most agents 'debug' by printing. This skill actually attaches a debugger (delve, debugpy, gdb) and exposes step/continue/inspect to Claude. Useful for nasty bugs where 'add a log' loops forever.

Why use it

Key features

Live Demo

What it looks like in practice

debug-skill.replay ▶ ready
0/0

Install

Pick your client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "debug-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/AlmogBaku/debug-skill",
        "~/.claude/skills/debug-skill"
      ],
      "_inferred": true
    }
  }
}

Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "debug-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/AlmogBaku/debug-skill",
        "~/.claude/skills/debug-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "debug-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/AlmogBaku/debug-skill",
        "~/.claude/skills/debug-skill"
      ],
      "_inferred": true
    }
  }
}

Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "debug-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/AlmogBaku/debug-skill",
        "~/.claude/skills/debug-skill"
      ],
      "_inferred": true
    }
  }
}

Same shape as Claude Desktop. Restart Windsurf to pick up changes.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "debug-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/AlmogBaku/debug-skill",
        "~/.claude/skills/debug-skill"
      ]
    }
  ]
}

Continue uses an array of server objects rather than a map.

~/.config/zed/settings.json
{
  "context_servers": {
    "debug-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/AlmogBaku/debug-skill",
          "~/.claude/skills/debug-skill"
        ]
      }
    }
  }
}

Add to context_servers. Zed hot-reloads on save.

claude mcp add debug-skill -- git clone https://github.com/AlmogBaku/debug-skill ~/.claude/skills/debug-skill

One-liner. Verify with claude mcp list. Remove with claude mcp remove.

Use Cases

Real-world ways to use Debug Skill

Find the nil deref a print loop can't catch

👤 Backend devs ⏱ ~15 min intermediate

When to use: A specific input causes a panic and you can't see where without a debugger.

Prerequisites
  • Server/skill installed and authenticated — See repo README
Flow
  1. Reproduce under debugger
    Using the debug skill, run main_test.go::TestPanicCase under delve with a breakpoint at the panic frame.✓ Copied
    → Process paused at the panic
  2. Inspect
    Print locals and the call chain. Show me which variable is nil.✓ Copied
    → Variable value + caller chain

Outcome: Bug located, not guessed.

Pitfalls
  • Breakpoints by symbol can match multiple methods in Go interfaces — Breakpoints by symbol can match multiple methods in Go interfaces — qualify with the package path.

Cost & Limits

What this costs to run

API quota
See provider docs for rate limits
Tokens per call
Varies by tool
Monetary
See repo README for pricing details
Tip
Cache tool results and avoid repeated identical calls.

Security

Permissions, secrets, blast radius

Credential storage: Use environment variables; never commit secrets
Data egress: Tool calls go to the provider's API as documented

Troubleshooting

Common errors and fixes

delve not found

Install delve: go install github.com/go-delve/delve/cmd/dlv@latest.

Verify: dlv version
debugger detaches randomly

Long pauses can hit the IDE's heartbeat. Use the skill's --no-heartbeat option for slow flows.

Verify: Set the flag and retry

Alternatives

Debug Skill vs others

AlternativeWhen to use it insteadTradeoff
ad-hoc print debuggingTrivial bugsFaster setup; doesn't scale to hard bugs

More

Resources

📖 Read the official README on GitHub

🐙 Browse open issues

🔍 Browse all 400+ MCP servers and Skills