Agent skill · software engineering · aiskillstore
golang-enterprise-patterns
Enterprise-level Go architecture patterns including clean architecture,
Why this skill is useful
Provides specific enterprise-level Go architecture patterns and production-ready application structures that the AI wouldn't reliably generate on its own.
What it needs
About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Golang Enterprise Patterns This skill provides guidance on enterprise-level Go application architecture, design patterns, and production-ready code organization. When to Use This Skill When designing new Go applications with complex business logic When implementing clean architecture or hexagonal architecture When applying Domain-Driven Design (DDD) principles When organizing large Go codebases When establishing patterns for team consistency Clean Architecture Layer Structure Dependency Rule Dependencies flow inward only: Domain Layer Application Layer Hexagonal Architecture (Ports & Adapters) Port Definitions Adapter Implementations Domain-Driven Design (DDD) Aggregate Roots Value Objects Domain Events Dependency Injection Wire-Style DI Manual DI (Preferred for Simplicity) Error Handling Patterns Custom Error Types Configuration Management Best Practices 1. Keep domain pure - No framework dependencies in domain layer 2. Interface segregation - Small, focused interfaces 3. Dependency inversion - Depend on abstractions, not concretions 4. Explicit dependencies - Pass dependencies via constructor 5. Fail fast - Validate at boundaries, trust internal code 6. Make illegal states unrepresentable - Use types to enforce invariants
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/golang-enterprise-patterns