golang-patterns

Installation
Summary

Idiomatic Go patterns, best practices, and conventions for building robust applications.

  • Covers core principles including simplicity over cleverness, useful zero values, and accepting interfaces while returning concrete types
  • Includes error handling patterns with wrapping, custom error types, and proper error checking using errors.Is and errors.As
  • Provides concurrency patterns for worker pools, context-based cancellation, graceful shutdown, and goroutine leak prevention
  • Addresses interface design, package organization, struct composition with functional options, and memory optimization techniques
  • Features anti-patterns to avoid, Go tooling integration, and a quick reference of Go idioms
SKILL.md

Go Development Patterns

Idiomatic Go patterns and best practices for building robust, efficient, and maintainable applications.

When to Activate

  • Writing new Go code
  • Reviewing Go code
  • Refactoring existing Go code
  • Designing Go packages/modules

Core Principles

1. Simplicity and Clarity

Go favors simplicity over cleverness. Code should be obvious and easy to read.

// Good: Clear and direct
Related skills
Installs
7.4K
GitHub Stars
179.7K
First Seen
Jan 27, 2026