What problem does it solve?
Provides concise, idiomatic Go patterns and conventions to reduce bugs, improve readability, and make Go projects easier to maintain by standardizing error handling, concurrency, and package organization.
Core Features & Use Cases
- Error handling & wrapping: clear examples for wrapping, custom error types, and usage of errors.Is / errors.As to make failures observable and debuggable.
- Concurrency and resource safety: worker pools, context cancellation, errgroup patterns, and guidance to avoid goroutine leaks.
- Package design & performance: advice on small focused interfaces, zero-value friendly types, embedding, slice preallocation, and integration with Go tooling for consistent builds and linting.
- Use Cases: review code for idiomatic errors and concurrency, design package boundaries for a new service, or refactor hot paths for performance and clarity.
Quick Start
Ask the skill to review a Go function or package for idiomatic patterns, error handling, concurrency safety, and recommended tooling steps.