What problem does it solve? Writing production-grade Go services requires deep knowledge of generics, goroutine lifecycle management, clean architecture, and runtime profiling. This Skill provides structured reference material and canonical code patterns so you avoid data races, goroutine leaks, memory bloat, and architectural coupling when building Go systems. ## Core Features & Use Cases - Modern Language Features: Covers Go 1.21+ built-ins, generics with type constraints, the slices/maps/cmp packages, and structured logging with log/slog including context-aware trace handlers. - Concurrency Patterns: Provides production-ready worker pools, fan-out/fan-in pipelines, errgroup with concurrency limits, and sharded concurrent maps, plus race detection and deadlock diagnostics. - Microservices Architecture: Defines standard project layout, graceful shutdown for dual HTTP/gRPC servers, middleware composition, domain error mapping to HTTP/gRPC status codes, and constructor-based dependency injection. - Performance Optimization: Includes pprof profiling endpoints, micro-benchmarking with b.ResetTimer, sync.Pool patterns, zero-allocation string/byte conversions, and GC tuning via GOGC and GOMEMLIMIT. - Use Case: When building a Go microservice that must handle thousands of concurrent requests, use this Skill to wire graceful shutdown, implement a bounded worker pool, and profile heap allocations before deployment. ## Quick Start Ask the agent to design a Go worker pool with context cancellation and graceful shutdown for your service, or to review your Go code for race conditions and allocation hotspots.