Skip to content
Back to skills

Grpc

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill grpc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grpc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Grpc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-grpc/badge)](https://www.skillsdirectory.com/skills/vectora-os-grpc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.