What problem does it solve?
This Skill helps you design, review, and debug Go concurrency so goroutines exit cleanly, channels are used safely, and shared state stays race-free.
Core Features & Use Cases
- Goroutine lifecycle control: Ensures every goroutine has a clear shutdown path through context cancellation, done signals, or waiting primitives.
- Channel safety: Guides channel direction, ownership, closing rules, and backpressure-aware buffering decisions.
- Synchronization decisions: Helps choose between mutexes, atomics, sync.Map, sync.Pool, sync.Once, WaitGroup, errgroup, and singleflight.
- Pipeline and worker patterns: Supports fan-out/fan-in pipelines, bounded worker pools, and cancellation-aware stages.
- Production hardening: Encourages panic recovery at goroutine boundaries, timer hygiene, and leak detection in tests.
- Use case: Use this Skill when refactoring a Go service that leaks workers, deadlocks on shutdown, or needs bounded concurrent URL fetching with first-error cancellation.
Quick Start
Ask the Skill to review your Go concurrency code for leaks, race conditions, channel ownership, and the best synchronization primitive for the job.