golang-troubleshooting
golang troubleshooting
What it does
- dlv: go install github.com/go-delve/delve/cmd/dlv@latest
- File and line number → go directly there
- Type mismatch → check function signatures, interface satisfaction
- "undefined" → check imports, exported names, build tags
- "cannot use X as Y" → check concrete types vs interfaces
- Write a failing test that captures the bug
- Make it deterministic
Requirements & configuration
- 3. Read the surrounding code — middleware, interceptors, or init functions may set up state the function depends on.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
golang-troubleshooting FAQ
What does the golang-troubleshooting skill do?
Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (→ See `samber/cc-skills-golang@golang-benchmark` skill) or applying optimization patterns (→ See `samber/cc-skills-golang@golang-performance` skill). dlv: go install github.com/go-delve/delve/cmd/dlv@latest File and line number → go directly there
What does golang-troubleshooting require?
3. Read the surrounding code — middleware, interceptors, or init functions may set up state the function depends on.
How do I install golang-troubleshooting?
Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-troubleshooting --agent claude-code — the source lives at github.com/samber/cc-skills-golang.
Maintain golang-troubleshooting?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/samber-cc-skills-golang-golang-troubleshooting?ref=badge) npx agentictools info skills/samber-cc-skills-golang-golang-troubleshooting The second line is the CLI lookup for this page — handy in READMEs and docs.