Go Debug banner
dsjacobsen dsjacobsen

Go Debug

Development community

Description

--- name: go-debug description: Debug a Go issue - analyze errors, traces, and behavior --- Debug the issue described. Gather information: 1. **Error message** - Exact error text 2. **Stack trace** - If available 3. **Expected vs actual** - What should happen vs what happens 4. **Reproduction steps** - How to trigger the issue **Debugging approach:** ```bash # Run with race detector go test -race ./... # Run with verbose output go test -v ./path/to/package # Check for common issues go vet

Installation

Installs to ~/.claude/commands/dsjacobsen-agent-resources-go-debug.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/dsjacobsen/agent-resources/HEAD/.claude/commands/go-debug.md -o ~/.claude/commands/dsjacobsen-agent-resources-go-debug.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository