Arch-Go Architecture & Best Practices

0•

Implements idiomatic Go 1.22+ patterns, robust concurrency models, and standard project architectures for production-grade backend development.

The arch-go skill provides a comprehensive knowledge base for modern Go development, spanning Go 1.22 through 1.26. It serves as a quality baseline for Claude when building or reviewing Go projects, ensuring adherence to idiomatic patterns like small interfaces, functional options, and context propagation. The skill covers advanced concurrency with errgroups, standardized project structures (cmd/internal/pkg), structured logging with slog, and rigorous testing methodologies using table-driven tests and virtual time testing. It is designed to assist in creating highly maintainable, scalable, and idiomatic Go codebases.

Key Features

01Modern Go idioms including iterators (Go 1.23+) and native pattern routing (Go 1.22+)
020 GitHub stars
03Structured logging with slog and idiomatic error wrapping/inspection
04Advanced concurrency management using errgroup and Go 1.25+ WaitGroup.Go
05Standardized project structure (cmd/internal/pkg) for clear separation of concerns
06Comprehensive testing patterns featuring table-driven tests and synctest (Go 1.24+)

Use Cases

01Bootstrapping new Go microservices with a standardized folder structure and manual dependency injection
02Performing deep code reviews to ensure idiomatic patterns, proper error propagation, and race-condition safety
03Refactoring legacy Go code to modern 1.22+ standards, including net/http routing and structured logging