BigHugger
sk Skill · samber

golang-concurrency

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…

installs 8w
4,839
30-day movement
starts with the next reading
Related entries
1
Connections
1
bashGo

This is an agent skill (SKILL.md) that loads Golang concurrency design guidance into an AI coding agent. It covers goroutine lifecycle and leak prevention, channels and select, sync primitives, errgroup, singleflight, and worker-pool/pipeline patterns, with bundled reference documents on channels, pipelines, and sync primitives.

Reach for it when writing or reviewing concurrent Go code and you need rules for goroutine exits, choosing channels versus mutexes, or protecting shared state.

Use it to

  • Design goroutine shutdown to prevent leaks
  • Choose between channels, mutexes, and atomics
  • Protect a shared map or counter
  • Build worker pools and fan-out/fan-in pipelines
  • Review concurrent Go code against a checklist

For Go developers using Claude Code or similar coding agents

Host repository
samber/cc-skills-golang
Version
1.2.1
Installs, lifetime
39k
Installs, 8 weeks
4,839
Allowed tools
Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent AskUserQuestion
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,273
Host language
Go
topicsgolangconcurrencygoroutineschannelssyncworker-pools