What problem does it solve? Concurrent Go code is prone to goroutine leaks, race conditions, channel ownership bugs, and deadlocks that are hard to detect in review. This Skill encodes Go concurrency best practices so an AI coding agent writes and reviews concurrent code with correct lifecycle management, cancellation, and error propagation. ## Core Features & Use Cases - Write mode: Implements goroutines, channels, worker pools, and fan-out/fan-in pipelines following structured concurrency rules such as sender-closes-channel, ctx.Done() in every select, and errgroup.SetLimit for bounded concurrency. - Review mode: Audits PR diffs for goroutine leaks, missing context propagation, ownership violations, unprotected shared state, and WaitGroup misuse. - Audit mode: Orchestrates up to 5 parallel sub-agents to scan a codebase for goroutine spawns, mutable globals, channel misuse, and unsafe sync primitive usage. - Use Case: When asked to fetch 50 URLs with at most 10 concurrent requests and fail-fast behavior, it produces errgroup.WithContext plus SetLimit(10) instead of a hand-rolled worker pool. ## Quick Start Ask the agent to review this Go function for goroutine leaks and race conditions, or to write a bounded worker pool using errgroup.