Go Goroutine Leak

Find and fix goroutines that never exit in a Go service. Take goroutine profiles from /debug/pprof/goroutine at two times under the same load, diff them with go tool pprof -base, group by identical stack, read each group's wait reason (chan send, chan receive, select, IO wait, semacquire) to name the missing counterpart, then give every goroutine an owner, a cancellation path and a bounded lifetime and add goleak so a leak fails CI. Use whenever "goroutine count keeps climbing", "memory grows with request volume in our Go service", "runtime.NumGoroutine is 200k", "connections never close", "goroutines stuck in chan send", or "leak in tests". Not for data races (go-race-triage), CPU time or heap allocation profiles (profiling), a Node heap that grows (node-memory-leak), or a first-principles cause hunt (debugging).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 4a457f58f4

Frequently asked questions

npx get-skill add greenblacked/go-goroutine-leak