go-clean-architecture

Community

Master Go clean architecture with clear layers.

Authorbillybbuffum
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go projects often struggle with maintaining a clear separation of concerns as codebases grow. This Skill provides expert guidance on implementing a true Clean Architecture in Go, clarifying how to organize domain, application, and infrastructure layers to keep business rules independent from frameworks and external details.

Core Features & Use Cases

  • Clear Layered Boundaries: Domain models and business logic live in internal/domain, with outer layers depending inward.
  • Dependency Rule Enforcement: Outer layers depend on inner domain interfaces only, preventing leakage of framework concerns.
  • Practical Patterns: Concrete Go code samples and guidance for entities, repositories, and services across the three layers.
  • Use Case: A Go microservice evolves its domain layer without touching HTTP or persistence code, simplifying testing and maintenance.

Quick Start

Create a new Go module, then structure your code as internal/domain (domain models and interfaces), internal/application (services and use cases), and internal/infrastructure (concrete persistence and adapters). Wire everything in a minimal main.go to bootstrap the application.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-clean-architecture
Download link: https://github.com/billybbuffum/budget/archive/main.zip#go-clean-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.