
Golang Concurrency
This is a comprehensive concurrency engineering skill that treats every goroutine as a liability until proven necessary. It covers three modes: writing new concurrent code with channels and sync primitives, reviewing PRs for leaks and race conditions, and auditing existing codebases with up to 5 parallel sub-agents. The checklist is practical (how will it exit, who owns the channel, can I wait for it) and the anti-patterns are specific: time.After in loops, missing ctx.Done in select, closing from the receiver side. It includes a solid primitives reference covering WaitGroup vs errgroup, channels vs mutexes, and when to reach for singleflight or sync.Map. If you're writing Go services that spawn goroutines, this gives you a structured approach to not leaking them.
- skills.sh installs
- 43.6K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-concurrency --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Backend & APIs, Documentation, Rust, Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Context42.7K
- Golang Naming42.5K
- Golang Database42.5K
- Golang Safety42.2K
- Golang Project Layout42.1K
- Golang Documentation42K
- Golang Modernize42K
- Golang Lint41.9K
- Golang Data Structures41.8K
- Golang Troubleshooting41.6K
- Golang Observability41.5K
- Golang Dependency Management41.4K
- Golang Structs Interfaces41.3K
- Golang Cli41.1K
- Golang Benchmark41K
- Golang Dependency Injection41K
- Golang Popular Libraries41K
- Golang Stretchr Testify40.9K
- Golang Continuous Integration40.9K
- Golang Grpc40.7K
- Golang Samber Lo40K
- Golang Stay Updated40K
- Golang Samber Do39.8K
- Golang Samber Slog39.8K