/go-service-guide:architecturefrom go-service-guide
Enforces clean/hexagonal architecture rules including dependency direction, interface ownership, and folder structure. Use when creating packages, services, or understanding codebase layout.
Ships in go-service-guide. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
References: Examples
Dependencies point inward. Outer layers depend on inner, never reverse. Avoid circular dependencies.
| Layer | Contains | Must NOT |
|---|---|---|
| Usecase | Entities, business logic, interfaces, repository | Import transport or apps |
| Driving Adapters (transport) | HTTP handlers, consumers | Contain business logic |
| Driven Adapters (clients) | External API implementations | Import transport or usecase |
ports/, interfaces/, or contracts/ packages| Location | Contains |
|---|---|
cmd/ | Lambda/CLI entrypoints |
config/appconfig/ | Environment configurations |
infra/ | CDK stack + constructs |
internal/<domain>/ | Self-contained bounded contexts (usecase/, repository/, model/) |
internal/clients/ | External API clients + models |
internal/transport/ | HTTP handlers, Kinesis consumers |
internal/apps/ | Dependency wiring |
internal/ - Private to servicepkg/ - Shared utilities for other reposEach domain in internal/<domain>/ follows:
<domain>/
├── input.go # Input DTOs
├── output.go # Output DTOs
├── usecase/
│ ├── service.go # Business logic + interfaces
│ └── service_mock.go
├── repository/
│ └── repository.go
└── model/
└── entity.go # Domain entities
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/concurrencyGoroutine ownership, errgroup patterns, worker pools, and graceful shutdown. Use when writing concurrent code or parallel request handling./go-styleUber Go style guide rules for guidelines, performance, and code style. Use when writing or reviewing Go code for style compliance./observabilityTracing with OpenTelemetry and structured logging with slog. Use when adding observability to services, handlers, or debugging production issues./patternsProject patterns including functional options, must pattern, caching decorator, error handling, configuration, and HTTP clients. Use when implementing common patterns in the codebase.npx claudepluginhub cemezgin/go-service-guide --plugin go-service-guideOther plugins' skills for the same job