Skip to content
Back to skills

Grpc Services

ASecurity

Design and evolve gRPC and Protobuf services safely: schema compatibility, deadlines, errors and streaming

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentssecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill grpc-services --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grpc Services?

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

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

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-services
description: "Design and evolve gRPC and Protobuf services safely: schema compatibility, deadlines, errors and streaming"
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# gRPC services

Use when authoring `.proto` contracts, implementing gRPC servers/clients, or configuring service-to-service RPCs.

## Schema evolution
- Never change a field's tag number or incompatible wire type once released; always add `reserved` for deleted field numbers and names.
- Wrap requests and responses in dedicated message types (`GetUserRequest`, `GetUserResponse`) even for one field so future additions stay non-breaking.
- Use explicit `optional` in `proto3` when distinguishing unset values from defaults (`0`, `""`, `false`) matters.

## Reliability and timeouts
- Attach a deadline on every outbound client RPC; propagate incoming context deadlines across downstream calls to prevent cascading hangs.
- Retry only idempotent methods (`WaitForReady` / service config) on `UNAVAILABLE`, never on `DEADLINE_EXCEEDED` or mutations without idempotency keys.
- Return canonical gRPC status codes (`INVALID_ARGUMENT`, `NOT_FOUND`, `PERMISSION_DENIED`, `FAILED_PRECONDITION`) rather than wrapping everything in `UNKNOWN` or `INTERNAL`.

## Security and streaming
- Enforce TLS/mTLS and validate per-RPC auth tokens in server interceptors, not inside every handler individually.
- Bound message sizes (`MaxRecvMsgSize`), configure HTTP/2 keepalives for long-lived streams, and propagate stream cancellation.

## Verify
Run `buf lint` / `buf breaking` (or `protoc`), unit tests for error code mapping and deadlines, and a streaming cancellation test.

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.