Implements robust Go concurrency patterns using errgroup, worker pools, and lifecycle management to prevent goroutine leaks.
This skill provides Claude with domain-specific knowledge to write safe, performant concurrent code in Go. It enforces a strict 'no fire-and-forget' rule, ensuring every goroutine has a managed lifecycle via context cancellation and proper synchronization. Whether handling parallel API requests with errgroup or managing high-volume data processing with worker pools, this skill guides Claude to implement best practices for graceful shutdowns and bounded concurrency, effectively preventing common pitfalls like memory leaks and unhandled errors in backend services.
Key Features
010 GitHub stars
02Context-aware graceful shutdowns
03Managed goroutine lifecycle enforcement
04Bounded concurrency with worker pools
05Error propagation for parallel requests
06Advanced errgroup pattern implementation
Use Cases
01Processing high-volume data streams using fixed-size worker pools for backpressure
02Executing multiple parallel HTTP or database calls with centralized error handling
03Building resilient backend services that respect cancellation signals and shutdown gracefully