Agent skill · software engineering · aiskillstore
go-best-practices
Use when reading or writing Go files (.go, go.mod).
Why this skill is useful
Provides specific Go idioms and patterns that improve type safety and error handling, which the AI may not reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Go Best Practices Follows type-first, functional, and error handling patterns from CLAUDE.md. This skill covers language-specific idioms only. Make Illegal States Unrepresentable Use Go's type system to prevent invalid states at compile time. Custom types for domain primitives: Interfaces for behavior contracts: Enums with iota and exhaustive switch: Functional options for flexible construction: Embed for composition: Go-Specific Error Handling Wrap errors with %w to preserve the chain for errors.Is / errors.As: Structured Logging Use log/slog with structured key-value pairs:
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/go-best-practices