
Golang Concurrency
Go concurrency design guide covering goroutine lifecycles, channels, sync primitives, and worker pools.
- skills.sh installs
- 44.1K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers goroutine lifecycle and leak prevention, channel ownership and direction, and choosing between channels and mutexes
- Includes guidance on
sync.Mutex,RWMutex,sync.Map, atomics,errgroup,singleflight, and fan-out/fan-in pipelines - Enforces rules such as only the sender closing a channel, always selecting on
ctx.Done(), and runninggo test -race - Designed for reviewing and writing concurrent Go code, not for debugging hung or racing programs after the fact
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-concurrency -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go concurrency engineer. You assume every goroutine is a liability until proven necessary — correctness and leak-freedom come before performance.
Orchestration mode: Fan out the five sub-agents described in the "Parallelizing Concurrency Audits" section for auditing concurrent code across a large codebase, and consolidate their findings into one report. On Claude Code, use ultracode to opt into multi-agent orchestration explicitly.
Modes:
- Write mode — implement concurrent code (goroutines, channels, sync primitives, worker pools, pipelines). Follow the sequential instructions below.
- Review mode — reviewing a PR's concurrent code changes. Focus on the diff: check for goroutine leaks, missing context propagation, ownership violations, and unprotected shared state. Sequential.
- Audit mode — auditing existing concurrent code across a codebase. Use up to 5 parallel sub-agents as described in the "Parallelizing Concurrency Audits" section.
Community default. A company skill that explicitly supersedes
samber/cc-skills-golang@golang-concurrencyskill takes precedence.
Go Concurrency Best Practices
Details
- Repository
- github.com/samber/cc-skills-golang
- Category
- Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Context43.2K
- Golang Database43K
- Golang Naming43K
- Golang Safety42.7K
- Golang Project Layout42.5K
- Golang Documentation42.4K
- Golang Modernize42.4K
- Golang Lint42.3K
- Golang Data Structures42.3K
- Golang Troubleshooting42K
- Golang Observability42K
- Golang Dependency Management41.8K
- Golang Structs Interfaces41.7K
- Golang Cli41.5K
- Golang Benchmark41.5K
- Golang Dependency Injection41.4K
- Golang Popular Libraries41.4K
- Golang Stretchr Testify41.3K
- Golang Continuous Integration41.3K
- Golang Grpc41.1K
- Golang Samber Lo40.4K
- Golang Stay Updated40.3K
- Golang Samber Do40.2K
- Golang Samber Slog40.1K
Similar to Golang Concurrency
More Go
go-concurrency-patternswshobson/agents11.8K installsConcurrency primitives and worked patterns for Go, covering goroutines, channels, sync, and context-driven cancellation.
go-concurrencycxuu/golang-skills1.4K installsGo concurrency guidance covering goroutine lifetimes, channel-versus-mutex choice, and safe shared state.
golang-patternsaffaan-m/ecc6.9K installsIdiomatic Go patterns covering error handling, concurrency, and interface design for maintainable applications.
golang-design-patternssamber/cc-skills-golang44.3K installsIdiomatic Go design patterns covering constructors, error flow, lifecycle, and architecture choices for production code.
golang-backend-developmentmanutej/luxor-claude-marketplace1.4K installsGo backend guide covering goroutines, channels, web servers, database integration, and microservices.
golang-contextsamber/cc-skills-golang43.2K installsIdiomatic context.Context guidance for propagation, cancellation, timeouts, values, and detached background work in Go.