Skip to content
Skill

Go troubleshooting

Walks an AI agent through diagnosing Go panics, hangs, leaks and race reports

Go troubleshooting is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
90
Last commit
License
MIT
Listing updated

Similar skills

About Go troubleshooting

This skill guides a coding agent through diagnosing runtime problems in Go programs. It starts from the symptom and points to the right procedure: reading a panic and its stack trace, dumping goroutines to find hangs and deadlocks, diffing heap and goroutine profiles to locate memory and goroutine leaks, and interpreting race detector output. It also covers capturing evidence from a production incident before restarting the service.

The workflow follows a strict method: reproduce the failure in a test, form one hypothesis, make one change, and observe the result, rather than stacking fixes. It includes checks such as keeping pprof endpoints on private interfaces and verifying that a regression test fails without the fix. Reference files cover common Go bugs, flaky tests and build or toolchain errors, and are loaded only when needed.

The skill expects a Go toolchain and runs go, gofmt and delve commands through its allowed tools. Delve is optional and only needed for interactive debugging of live values or goroutine states.

When your agent uses it

Diagnose runtime problems in Go programs: panics and stack traces, deadlocks, goroutine leaks, memory leaks, OOM kills, race reports, and debugging with delve and pprof. Use when: "debug this panic", "read this stack trace", "deadlock", "memory leak", "goroutine count growing", "OOM", "program hangs", "race detector output", "use delve". Not for: optimizing code that works (go-performance-review), writing new concurrent code (go-concurrency-review), failing test design (go-test-quality).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (19 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

What it does

Panic stack trace reading
Explains how to read a Go panic, locate the top frame in your own code and interpret nil receivers.
Deadlock and hang triage
Classifies goroutine dump states such as mutex waits and channel blocks to find the stuck party.
Memory leak profiling
Compares heap profiles over time with pprof to find growth that never returns.
Goroutine leak detection
Uses goroutine profiles and the leak profile to find goroutines that never terminate.
Race detector guidance
Reads race reports showing both conflicting accesses and applies mutex, ownership or immutability fixes.
Flaky test reproduction
Provides repeat, shuffle and CPU-count runs to make intermittent test failures reproducible.
Production incident capture
Lists diagnostic artifacts to collect from a running service before restarting it.

Good for

  • Explain a nil pointer panic from a Go stack trace
  • Find why a Go service hangs under load
  • Track down a memory leak causing OOM kills
  • Diagnose a growing goroutine count in a server
  • Interpret output from go test -race
  • Debug a Go program step by step with delve

Go troubleshooting FAQ

What does the skill need to run?

It requires the Go toolchain. Delve is optional and only needed for interactive debugging.

Does Go troubleshooting change code automatically?

It is designed to follow a diagnose-first method: reproduce, observe, localize, then change code, with a verification checklist before finishing.

Is Go troubleshooting for writing new concurrent code or optimizing performance?

No. The description directs those tasks to separate skills for performance review, concurrency review and test quality.

Does Go troubleshooting run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Go troubleshooting?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Go troubleshooting?

The closest alternatives to Go troubleshooting are Go performance review, Memory timing debugging, Go concurrency review, Go defensive coding and Agent introspection debugging.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from eduardo-sl/go-agent-skills

  1. Guides Go agents in designing HTTP REST APIs, handlers, middleware and shutdown

    • Open source
    • 90 GitHub stars
    • Developer tools
  2. Reviews Go project structure, dependency direction and module boundaries

    • Open source
    • 90 GitHub stars
    • Developer tools
  3. Guides an AI agent to build Go command-line tools with clean flags, streams and exit codes

    • Open source
    • 90 GitHub stars
    • Developer tools
  4. Guides Go code toward constructor injection, explicit wiring and no global state

    • Open source
    • 90 GitHub stars
    • Developer tools
  5. Guides Go code toward idiomatic design patterns like functional options and factories

    • Open source
    • 90 GitHub stars
    • Developer tools
  6. Guides building Go GraphQL servers with gqlgen, covering N+1 batching and query limits

    • Open source
    • 90 GitHub stars
    • Developer tools