golang-ddd

Installation
SKILL.md

DDD Tactical Design Patterns in Go

Purpose

To guide implementation of Domain-Driven Design tactical patterns in idiomatic Go. This skill covers Entities, Value Objects, Aggregates, Repositories, Domain Services, Domain Events, Factories, and Specifications using Go-native idioms (composition over inheritance, interfaces, unexported fields, functional options).

When to Use This Skill

  • Implementing domain models with rich business logic in Go
  • Designing aggregate boundaries and consistency rules
  • Creating repository interfaces and infrastructure implementations
  • Building event-driven domain models
  • Structuring a Go project following DDD layered architecture
  • Reviewing domain code for DDD pattern adherence

Core Principles

  1. Go idioms first - No Java-style OOP. Use composition, interfaces, and package boundaries
  2. Unexported fields - All entity/aggregate fields lowercase; expose through getters and behavior methods
Related skills

More from baotoq/agent-skills

Installs
21
GitHub Stars
1
First Seen
Feb 14, 2026