---
name: "grpc-go-protocol-buffers"
description: "Build ultra-low latency, contract-driven microservices using gRPC-Go and Protobuf v3."
metadata:
  author: "gRPC"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "write proto3 file"
  - "compile grpc go"
  - "implement grpc server go"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# gRPC-Go High-Performance RPC & Protocol Buffers v3

Implements gRPC-Go: authoring .proto service definitions, compiling with protoc-gen-go and protoc-gen-go-grpc, implementing service interfaces, interceptors (unary and stream interceptors), and TLS encryption.

## When to Invoke
Invoke this skill whenever you need to:
- write proto3 file
- compile grpc go
- implement grpc server go

## Execution SOP & Rules
1. Define schema in service.proto: syntax = 'proto3'; service Payment { rpc Process(Request) returns (Response); }.
2. Compile: protoc --go_out=. --go-grpc_out=. service.proto.
3. Implement interface: type server struct { pb.UnimplementedPaymentServer }.
4. Register and serve: s := grpc.NewServer(grpc.UnaryInterceptor(LoggingInterceptor)); pb.RegisterPaymentServer(s, &server{}).

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
