What problem does it solve?
Go codebases often drift into inconsistent package boundaries, swallowed errors, unsafe goroutines, and missing tests. This Skill gives the AI a focused set of Go development conventions so edits and reviews of Go source code stay idiomatic and safe.
Core Features & Use Cases
- Idiomatic Go Guidance: Enforces simple, explicit implementations with clear package boundaries and naming conventions.
- Error Handling Discipline: Requires errors to be handled with context, using
%w wrapping and errors.Is/errors.As for branching.
- Concurrency & Testing Rules: Covers goroutine lifecycle management with
context.Context, race detection via go test -race, and table-driven tests.
- Use Case: When asking the AI to add a new endpoint to a Go service, it will structure the handler, wrap errors with context, manage goroutine cancellation properly, and add table-driven tests for affected logic.
Quick Start
Ask the AI to review or modify your Go source files while following the cc-go-dev conventions for package structure, error handling, concurrency, and testing.