gRPC and Protocol Buffers — proto design and package versioning, field numbering and compatibility rules, unary and streaming RPCs, deadlines and cancellation, status codes, interceptors, load balancing, buf lint and breaking checks. Use for service-to-service RPC (gRPC, protobuf, proto, streaming, deadlines).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Grpc?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-grpc)
---
name: grpc
description: gRPC and Protocol Buffers — proto design and package versioning, field numbering and compatibility rules, unary and streaming RPCs, deadlines and cancellation, status codes, interceptors, load balancing, buf lint and breaking checks. Use for service-to-service RPC (gRPC, protobuf, proto, streaming, deadlines).
metadata:
category: api
---
# gRPC
## Purpose
Build efficient, strongly typed service contracts that evolve safely.
**Use when:** internal service-to-service APIs with performance needs.
**Not for:** public browser APIs (unless via gateway).
## Inputs
- Service interactions, latency needs.
## Outputs
- Proto files, compatibility checks, deadline policy.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "grpc"` for prior decisions, patterns and anti-patterns.
- [API design standard](../../../standards/api-design.md)
- [Versioning standard](../../../standards/versioning.md)
## Steps
1. **Protos.** Package per version (`v1`); messages per RPC request/response.
Done when protos pass `buf lint`.
2. **Compatibility.** Never reuse field numbers; reserve removed ones; run breaking checks in CI.
Done when breaking check is a gate.
3. **Deadlines.** Every call sets a deadline; propagate cancellation.
Done when no call without deadline.
4. **Errors.** Map domain errors to status codes with details.
Done when error mapping is documented.
## Best practices
- Request/response messages per RPC for evolvability.
- Client-side load balancing awareness with HTTP/2.
## Common mistakes
- Changing field types.
- Missing deadlines leading to hung calls.
## Example
`inventory.v1.InventoryService/Reserve` with 300 ms deadline, `FAILED_PRECONDITION` on insufficient stock, buf breaking check in CI.
## Reusable prompt
```text
Apply the gRPC skill (.agents/skills/grpc/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Design the protos, compatibility rules, deadlines and error mapping for the services.
Return: Proto files, compatibility checks, deadline policy..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```