golang-patterns
π―Skillfrom affaan-m/everything-claude-code
Provides reusable design patterns and idiomatic Go solutions for efficient, scalable, and maintainable software architecture.
Overview
Golang Patterns is a skill that provides idiomatic Go design patterns and best practices for building robust, efficient, and maintainable applications. It covers core principles like simplicity, zero-value design, error handling, and interface usage with practical code examples.
Key Features
- Core Go principles: simplicity over cleverness, useful zero values, accept interfaces return structs
- Comprehensive error handling patterns with wrapping, custom types, and sentinel errors
- Error checking with errors.Is and errors.As for type-safe error inspection
- Practical code examples contrasting good and bad patterns
- Covers package design, concurrency patterns, and module structure
Who is this for?
This skill is for Go developers who want their AI assistant to produce idiomatic, well-structured Go code. It is valuable for both developers learning Go patterns and experienced Gophers who want consistent, best-practice code generation from their AI tools.
Same repository
affaan-m/everything-claude-code(43 items)
Installation
npx skills add https://github.com/affaan-m/everything-claude-code --skill golang-patternsNeed more details? View full documentation on GitHub β
More from this repository10
Battle-tested Claude Code configurations from an Anthropic hackathon winner
Implements robust backend design patterns like repository, factory, singleton, and dependency injection for scalable and maintainable server-side architectures.
Validates and enforces consistent code quality, style guidelines, and best practices across programming languages and project structures.
Validates and secures code by providing comprehensive security checks for authentication, input handling, secrets management, and sensitive feature implementation.
Provides reusable React component patterns like composition, compound components, and render props to enhance code modularity and flexibility.
Enforces test-driven development by guiding developers to write comprehensive tests first, ensuring 80%+ code coverage across unit, integration, and E2E testing.
Provides reusable SQL query patterns, database design strategies, and performance optimization techniques for PostgreSQL development
Dynamically updates and refines AI model knowledge through iterative feedback, adaptive learning techniques, and intelligent knowledge integration.
Streamlines Go testing with comprehensive unit, integration, and benchmark strategies, mocking frameworks, and test coverage analysis.
Dynamically adapts and improves AI performance through iterative feedback, knowledge expansion, and self-optimization techniques.