go-service

Installation
SKILL.md

Go Service

Generate service files for GO modular architecture conventions.

When to Use

  • Create reusable business services for a module
  • Email senders, token generators, password hashers
  • Template compilers, cache-backed lookups
  • Any single-responsibility domain service consumed by use cases or other services.

Three-File Pattern

Every service requires up to three files:

  1. DTO structs (if needed): internal/modules/<module>/dto/<service_name>_dto.go
  2. Port interface: internal/modules/<module>/ports/<service_name>_service.go
  3. Service implementation: internal/modules/<module>/service/<service_name>_service.go
Related skills
Installs
18
First Seen
Feb 24, 2026