
Go Concurrency
Go concurrency guidance covering goroutine lifetimes, channel-versus-mutex choice, and safe shared state.
- skills.sh installs
- 1.4K
- GitHub stars
- 196
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers goroutine lifetimes, channels versus mutexes, synchronous function design, and documenting thread-safety
- Includes reference files for goroutine patterns, sync primitives, buffer pooling, and advanced worker and pipeline patterns
- Enforces that every goroutine has a stop mechanism and that channels are unbuffered or size one unless justified
- Designed for Go code that spawns goroutines, shares state, or fixes data races, and points to go-context for context.Context patterns
Install
$ npx -y skills add cxuu/golang-skills --skill go-concurrency -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Go Concurrency
Compatibility: Atomic examples may use standard-library typed atomics where available or
go.uber.org/atomicwhere a project already depends on it.
Resource Routing
references/GOROUTINE-PATTERNS.md- Read when starting, stopping, or waiting for goroutines.references/SYNC-PRIMITIVES.md- Read when choosing between mutexes, atomics, channels, and once-like primitives.references/BUFFER-POOLING.md- Read when considering channel-backed or sync.Pool-style reuse.references/ADVANCED-PATTERNS.md- Read for worker pools, pipelines, errgroup, and cancellation-heavy patterns.
Goroutine Lifetimes
Normative: When you spawn goroutines, make it clear when or whether they exit.
Goroutines can leak by blocking on channel sends/receives. The GC will not terminate a blocked goroutine even if no other goroutine holds a reference to the channel. Even non-leaking in-flight goroutines cause panics (send on closed channel), data races, memory issues, and resource leaks.
Core Rules
Details
- Repository
- github.com/cxuu/golang-skills
- Category
- Go
- First seen
- May 16, 2026
More from cxuu/golang-skills
All 20- Go Linting1.4K
- Go Interfaces1.4K
- Go Documentation1.3K
- Go Style Core1.3K
- Go Performance1.3K
- Go Context1.3K
- Go Naming1.3K
- Go Defensive1.3K
- Go Packages1.3K
- Go Functional Options1.3K
- Go Data Structures1.3K
- Go Control Flow1.3K
- Go Logging1.1K
- Go Functions1.1K
- Go Generics1.1K
- Go Declarations1.1K
- Go Code Review1.8K
- Go Testing1.4K
- Go Error Handling1.4K
Similar to Go Concurrency
More Go
golang-concurrencysamber/cc-skills-golang44.1K installsGo concurrency design guide covering goroutine lifecycles, channels, sync primitives, and worker pools.
golang-concurrency-patternsbobmatnyc/claude-mpm-skills427 installsGo concurrency patterns for production services: context cancellation, errgroup, worker pools, and race avoidance.
go-contextcxuu/golang-skills1.3K installsGo context conventions covering placement, cancellation, deadlines, and when to store values in context.
golang-design-patternssamber/cc-skills-golang44.3K installsIdiomatic Go design patterns covering constructors, error flow, lifecycle, and architecture choices for production code.
golang-prosickn33/agentic-awesome-skills455 installsExpert Go 1.21+ guidance for concurrency, performance tuning, and production-ready microservices with testing and profiling.