What problem does it solve?
This Skill helps you systematically debug and fix Go programs by identifying the root cause behind bugs, panics, deadlocks, and unexpected behavior instead of applying risky symptom-only patches.
Core Features & Use Cases
- Decision-tree driven troubleshooting: Classify issues (compile errors, logic bugs, panics, hangs, high CPU, memory growth, latency spikes) and jump to the right diagnostic path.
- Golden Rules for reliable fixes: Read the full error, reproduce before changing code, test one hypothesis at a time, and avoid workarounds that mask the real issue.
- Evidence-based tooling guidance: Use pprof (goroutine/heap/profile/mutex/block), Delve (breakpoints/inspection), race detection (-race), and GODEBUG/GOTRACEBACK for production-grade investigations.
- Debugging workflow that scales from local to prod: Start simple, instrument only when needed, and escalate diagnostics incrementally to validate root cause and prevent regressions.
- Code-review red-flag awareness: Leans on common Go failure modes (nil pointers, typed-nil interfaces, deferred-in-loop leaks, context misuse, races, sync misuse, unchecked errors).
- Root-cause tracing: Emphasizes walking backward from the symptom to where invalid data is introduced, often enabling proper fixes at constructors/entry points.
Quick Start
Tell me what symptom you see in your Go program (error text, panic stack trace, whether it hangs or races), then I will help you reproduce it and pick the smallest diagnostic step (logs/tests first, then pprof/Delve/race/GODEBUG) to locate the root cause before proposing any fix.