go-grpc-services
Installation
SKILL.md
When to Use
- Defining communication contracts between microservices
- Implementing gRPC server or client in a service
- Generating Go code from protobuf definitions
- Setting up service-to-service calls
Critical Patterns
| Pattern | Rule |
|---|---|
| Proto = Contract | Protobuf files are the single source of truth for inter-service APIs |
| Proto lives with the server | Each service owns its .proto files in proto/ |
| Client wraps gRPC | Consumer services use a thin client wrapper, never raw gRPC stubs |
| Domain doesn't know gRPC | Domain ports define interfaces; gRPC is an infrastructure adapter |
| Errors map to domain | gRPC status codes translate to domain errors at the client boundary |
Protobuf Definition
Related skills