golang-concurrency
Guidance for writing and reviewing concurrent Go code, covering goroutine lifecycle, channels, sync primitives, errgroup, worker pools, and leak prevention.
What it does
Golang concurrency design — goroutine lifecycle and leak prevention, channels and `select`, channel ownership and direction, `sync.Mutex`/`RWMutex`/`sync.Map`/`sync.Once`/atomics, `errgroup`, `singleflight`, worker pools, and fan-out/fan-in pipelines. Use when writing or reviewing concurrent Go code, when choosing between channels and mutexes, when protecting a shared map or counter, or when a goroutine has no clear exit. Not for defensive coding unrelated to concurrency such as nil panics, slice aliasing, or numeric overflow (→ See `samber/cc-skills-golang@golang-safety` skill), and not for debugging a specific hung, crashing, or racing program after the fact (→ See `samber/cc-skills-golang@golang-troubleshooting` skill).
Quality judgment
The description has excellent positive and negative triggers with clear routing to sibling skills, and the body is comprehensive and well-organized (decision tables, checklist, common mistakes, audit orchestration). Weaknesses: inline code examples are sparse — most patterns are deferred to referenced files not included here — and the modes/orchestration sections add noise without concrete usage guidance.