/api-grpc:api-grpcfrom api-grpc
Designs and reviews gRPC and protobuf contracts. Use when adding or changing .proto files or RPC methods, reviewing a proto diff for rollout safety, setting up buf lint and breaking checks, choosing streaming or error models, or exposing gRPC through Envoy, grpc-gateway or Connect.
Ships in api-grpc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A .proto file is a long-lived contract. Wire format, JSON names, generated client code, and runtime behavior each break independently, so judge every change on all four.
Not for Go server code (golang), REST contracts or version-sunset policy (api-rest-design), or retry and backoff policy (api-idempotency). Each named skill applies if installed.
Run this gate first for a new surface, and skip it for a diff to an existing one.
Adopt Google's AIPs rather than inventing house rules.
acme.billing.v1 (AIP-215). The directory mirrors the package, and no file name carries a version (AIP-191).v1 is stable, and v1beta or v1alpha are pre-stable channels. Never ship beta behavior in a v1 package (AIP-185). A new major version does not import the previous one.<Method>Request and <Method>Response message. A shared or bare-scalar message turns every field change into a change to every RPC that uses it._UNSPECIFIED. Prefer well-known types such as Timestamp and FieldMask.java_package and friends) so generated code isn't named after the proto path.buf lint
buf breaking --against '.git#branch=main'
buf lint uses the STANDARD category by default, which includes PACKAGE_VERSION_SUFFIX, PACKAGE_DIRECTORY_MATCH, ENUM_ZERO_VALUE_SUFFIX, and the RPC_REQUEST_STANDARD_NAME and RPC_RESPONSE_STANDARD_NAME pair.buf breaking defaults to the FILE category, the strictest. Keep it for a public surface, because generated imports break when a message moves between files. Loosen to PACKAGE, WIRE_JSON, or WIRE only on purpose, and say why.google.api.http annotation can break the REST mapping while every proto check stays green. Snapshot the annotation-derived routes (verb, path, body) and diff them in CI, or contract-test the transcoded paths. Buf check plugins are the other route.UNARY_RPC lint category (rules RPC_NO_CLIENT_STREAMING and RPC_NO_SERVER_STREAMING).If buf isn't in the repo, say so, compare descriptors with the project's own protoc, Gradle, or Bazel task, and don't claim a check passed that you didn't run.
oneof), enums, services and methods (streaming mode included), and package or language options.references/protobuf-compatibility.md for field, enum, and oneof rules, and for the type-change table.Verdicts:
| Verdict | Meaning |
|---|---|
| Compatible | Safe inside the stated envelope |
| Rollout-dependent | Parses, but is safe only with sequencing or value constraints (readers before writers, old field kept until rollback closes) |
| Breaking | Breaks wire, named-format, source, or behavior |
| Insufficient context | Old schema, encoding, consumers, or deployment unknown |
Per finding give severity, location, dimension, old contract to new contract, the concrete failing scenario, and the smallest safe fix or staged migration. Reserve blocker for tag reuse, unparsable data, or an unavoidable production break. Close with a compatibility matrix for the changed symbols and the tests that would settle remaining assumptions.
False positives to avoid: a new optional field is not breaking just because old clients ignore it, and a field that never shipped needs no reservation (ask for release history). A renamed field is not harmless when JSON, text format, reflection, or generated source consumes the name.
Expose unary RPCs by default and record every streaming method as a decision. Server streaming is the first choice for push or tail workloads. Client and bidirectional streaming force every external consumer to write restart and resume logic that a unary retry never needs.
google.api.http annotation, so offer a non-streaming alternative for any consumer behind HTTP/1.1.google.rpc.Status. Per AIP-193, every error includes an ErrorInfo in details, and message is developer-facing English. Use the most specific canonical code. Mapping everything to UNKNOWN or INTERNAL flattens dashboards and breaks client retry logic.UNAVAILABLE or DEADLINE_EXCEEDED without an idempotency key or server-side deduplication (api-idempotency, if installed). AIP-194 treats only UNAVAILABLE as retryable by default.references/errors-and-gateways.md before wiring errors through Envoy, grpc-gateway, or Connect. The HTTP status line there is lossy, and the gRPC project forbids servers from deriving HTTP status from its client-side table.Authorization: Bearer <token> metadata, validated in an interceptor) and enforce scopes per method.RESOURCE_EXHAUSTED with a RetryInfo detail.State the verdict or design decisions, the buf commands you ran with their results, and which risks stayed unverified. Go server mechanics (interceptors, status.Error, context cancellation) belong to golang, if installed.
Primary sources: buf.build/docs (breaking, lint rules), google.aip.dev (121, 127, 185, 191, 193, 194, 215), grpc.io guides (deadlines, retry), github.com/grpc/grpc doc/http-grpc-status-mapping.md, googleapis google/rpc/status.proto, and protobuf.dev (updating a message type, ProtoJSON). Buf defaults (STANDARD lint, FILE breaking, the UNARY_RPC category) rechecked at buf.build/docs in October 2026.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin api-grpc