Imported from isOdin-l/templateAgents (
libs/grpc/AGENTS.md). Install upstream withnpx skills add isOdin-l/templateAgents --skill grpc. Copyright stays with the author.
AGENTS.md — libs/grpc
gRPC definitions and generated code.
OVERVIEW
Protocol Buffers definitions and generated Go/TypeScript code for inter-service communication. Services communicate via gRPC for type-safe RPC calls.
STRUCTURE
libs/grpc/
├── *.proto # Protobuf definitions
├── */ # Generated code per service
│ ├── *.pb.go # Go generated
│ └── *_grpc.pb.go # gRPC generated
├── package.json # JS package
├── go.mod
└── ...
CONVENTIONS
Adding New Service
- Create
{service}.proto:
syntax = "proto3";
package service;
service MyService {
rpc Method (Request) returns (Response);
}
message Request { ... }
message Response { ... }
- Generate code:
# Go
go generate ./...
# TypeScript (if needed)
bun run codegen
ANTI-PATTERNS
- DO NOT edit
*.pb.gofiles — modify.protoand regenerate - DO NOT edit
*_grpc.pb.gofiles — modify.protoand regenerate
NOTES
- Generated files have "DO NOT EDIT" headers
- Services in
apps/*implement these interfaces - Some frontend libs use generated TS