What problem does it solve?
Go projects often suffer from inconsistent module layouts, unclear concurrency choices, and non-idiomatic patterns that slow development and introduce bugs. This skill provides structured guidance to plan, write, and verify Go code across modules, ensuring maintainable and scalable outcomes.
Core Features & Use Cases
- Project structure guidance: decisions for single-binary, multi-module, or library layouts with Go modules and go.mod considerations.
- Concurrency & patterns: recommended approaches for fan-out, pipelines, worker pools, and cancellation with idiomatic context usage.
- Error handling & generics: best practices for wrapping errors, sentinel errors, and leveraging generics with type constraints.
- Testing & quality: guidance for tests, benchmarks, and anti-pattern avoidance; support for modern Go tooling.
- Observability & patterns: structured logging (slog), and Go-idiomatic patterns for maintenance and debugging.
Quick Start
Show how to scaffold a Go module project and perform a local build.