# Go GRPC

> Go GRPC is an open-source agent skill for developer tools. Guides an AI agent through production gRPC services in Go: protos, errors, streaming. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(architecture)/go-grpc
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-grpc
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill covers the parts of gRPC in Go that go beyond a first hello-world service. It steers the agent toward versioned proto packages with dedicated request and response messages, mapping domain errors to status codes in one place, and attaching deadlines to every call. It also sets out how to structure interceptors for recovery, logging and auth, how to write streams that stop when the context ends, and how to register health checks and shut the server down gracefully.

The guidance is organised as a set of rules and code patterns the agent applies while editing a project. It includes a server setup example with TLS, a receive size limit, reflection and a graceful stop with a forced fallback, plus a checklist for reviewing the result. Client guidance covers shared connections built with grpc.NewClient, service-config retries limited to unavailable responses, and round-robin load balancing. Two reference files hold longer client and testing examples that are read only when needed.

The skill expects a Go project and a Go toolchain. Code generation relies on buf or protoc, and the allowed tools include gofmt and go commands. Tests are written against an in-memory bufconn server rather than a real network port.

## When your agent uses it

> gRPC services in Go beyond the basics: proto design, status codes and error details, interceptors, deadlines, streaming, health checks, and graceful shutdown. Use when: "gRPC service", "proto design", "gRPC error handling", "interceptor", "gRPC streaming", "gRPC deadline", "grpc health check", "gRPC status codes". Not for: REST handlers (go-api-design), protobuf-agnostic layering (go-architecture-review), TLS hardening (go-security-audit).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(architecture)/go-grpc)
- [Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*), Bash(protoc:*)…](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(architecture)/go-grpc/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(architecture)/go-grpc)

## Features

- **Proto contract design:** Rules for versioned packages, field numbering, reserved tags and per-RPC message types.
- **Status code error mapping:** Pattern for converting domain errors into gRPC status codes without leaking internal details.
- **Deadlines and context propagation:** Guidance for setting client timeouts and passing cancellation through server calls.
- **Chained interceptors:** Ordering and structure for unary and streaming interceptors covering recovery, logging and auth.
- **Streaming patterns:** Server streaming examples that terminate cleanly when the stream context is done.
- **Health and graceful shutdown:** Health service registration and a graceful stop that falls back to a forced stop after a grace period.

## Good for

- Design a versioned gRPC proto for a new payment service
- Map domain errors to the correct gRPC status codes
- Add logging and auth interceptors to an existing gRPC server
- Write a server-streaming RPC that stops when the client disconnects
- Set up a gRPC health check and graceful shutdown for a Go service
- Write bufconn-based tests that assert gRPC status codes

## Install

### Any agent

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

## FAQ

### What does the skill need to run?

It requires the Go toolchain and protoc or buf for code generation, as stated in its compatibility notes.

### When is Go GRPC meant to be used versus other skills?

It is for gRPC services in Go. REST handlers are routed to go-api-design, protobuf-agnostic layering to go-architecture-review, and TLS hardening to go-security-audit.

### Does Go GRPC run any scripts?

No, the skill has no scripts. It provides instructions and reference files only.

### Which tools is Go GRPC allowed to use?

Read, Edit, Write, Glob, Grep, and Bash limited to go, gofmt, protoc and buf commands.

### Does Go GRPC run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Go GRPC?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Go GRPC?

The closest alternatives to Go GRPC are API GraphQL GRPC, Go backend, Go API design, Protobuf GRPC API review and Go database.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [API GraphQL GRPC](https://ai-powered.com/skills/api-graphql-grpc): API GraphQL GRPC is an open-source agent skill for developer tools.
- [Go backend](https://ai-powered.com/skills/go-backend): Go backend is an open-source agent skill for developer tools.
- [Go API design](https://ai-powered.com/skills/go-api-design): Go API design is an open-source agent skill for developer tools.
- [Protobuf GRPC API review](https://ai-powered.com/skills/protobuf-grpc-api-review): Protobuf GRPC API review is an open-source agent skill for developer tools.
- [Go database](https://ai-powered.com/skills/go-database): Go database is an open-source agent skill for databases.
- [Go CLI](https://ai-powered.com/skills/go-cli): Go CLI is an open-source agent skill for developer tools.
- [Go design patterns](https://ai-powered.com/skills/go-design-patterns): Go design patterns is an open-source agent skill for developer tools.
- [Developing genkit go](https://ai-powered.com/skills/developing-genkit-go): Developing genkit go is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-grpc
