go-grpc-init-skill

go-grpc-init-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 154 tokens per session (1,669 once invoked), scanned A, original, Apache-2.0.

A starter guide for building Go services that communicate with gRPC. gRPC is a framework for calling functions across services, using Protocol Buffers, a typed format for defining messages and service methods.

In plain words
What is it for?
Use it to define .proto files, create Go gRPC servers and clients, add unary or streaming calls, configure JWT authentication, and handle errors and health checks.
Why use it?
It provides the service and client structure needed for different request and streaming patterns instead of designing them from scratch. It also covers authentication, error mapping, health checks, and request interceptors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define .proto files, create Go gRPC servers and clients, add unary or streaming calls, configure JWT authentication, and handle errors and health checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/go-grpc-init-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill go-grpc-init-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-grpc-init-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-grpc-init-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/go-grpc-init-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/go-grpc-init-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-grpc-init-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-grpc-init-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/go-grpc-init-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/go-grpc-init-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.01669
Opus 5.5 $0.00062 $0.00668
Sonnet 5.5 $0.00031 $0.00334
Haiku 4.5 $0.00015 $0.00167

Measured 19d ago against content hash a8846e1eb8f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-grpc-init-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/scripts/proto-gen.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/go/go-grpc-init-skill/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go gRPC Init Skill

Go gRPC 服务初始化技能,面向需要构建高性能 RPC 服务或微服务通信的开发者。

gRPC 是 Google 开源的高性能 RPC 框架,基于 HTTP/2 + Protocol Buffers。

能力清单

能力 说明 难度
.proto 定义 消息 + 服务 + 4 种 RPC 模式 ⭐
服务端骨架 四种 RPC 实现、健康检查与生成脚本 ⭐⭐
客户端封装 复用连接,调用设置超时 ⭐⭐
JWT 认证 接入参考,复用项目的 Token 校验 ⭐⭐
流模式 Server Streaming / Client Streaming / Bidirectional ⭐⭐⭐
错误码映射 gRPC status code ↔ wg-skills 负数错误码 ⭐⭐
健康检查 gRPC Health Check Protocol ⭐
拦截器链 日志、认证与错误转换接入参考 ⭐⭐

触发场景

用户说以下任一句即触发本 skill:

  • 「帮我搭一个 Go gRPC 服务」
  • 「用 Go 写微服务通信」
  • 「Protocol Buffers 怎么定义」
  • 「grpc 流式 RPC 怎么做」
  • 「Go grpc 拦截器怎么加」
  • 「grpc JWT 认证怎么做」

核心概念

什么是 gRPC

gRPC = google Remote Procedure Call

维度 传统 HTTP REST gRPC
协议 HTTP/1.1 + JSON HTTP/2 + Protocol Buffers
性能 中 取决于负载与实现(使用二进制序列化)
通信模式 Request-Response 4 种(Unary/Server/Client/Bidi)
代码生成 OpenAPI / Swagger 原生自动生成(.proto → 多语言)
流控 无 HTTP/2 原生多路复用
强类型 弱(JSON 弱类型) 强(.proto 定义)

4 种 RPC 模式

1. Unary(普通调用)
   Client ──────► Server
                 一问一答

2. Server Streaming(服务端流)
   Client ──────► Server
   ◄─────── Stream
                 服务端持续推送

3. Client Streaming(客户端流)
   Client ────►
   ────►       Server
   (Stream)    客户端持续发送

4. Bidirectional Streaming(双向流)
   Client ◄────► Server
                 实时双向通信

适合场景

场景 推荐模式 原因
简单查询 Unary 一问一答
列表查询 Server Streaming 服务端分页推送
文件上传 Client Streaming 客户端分段发送
实时聊天 Bidirectional 双方实时收发
实时行情 Server Streaming 服务端持续推送
IoT 设备通信 Bidirectional 设备与服务双向

快速开始

将 templates 目录整体复制到一个新项目目录,进入复制后的目录。需要 Go 1.23+、带标准 proto 定义的 protoc,以及 Bash(Windows 可用 Git Bash)。

go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
export PATH="$(go env GOPATH)/bin:$PATH"  # 若设置了 GOBIN,改为加入该目录
bash scripts/proto-gen.sh
go mod tidy
go test ./...
go run ./server

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -621 lines a8846e1eb8f3
  2. 1mo ago First seen · 758 lines · 154 tokens per session scan A af2bb08ea88c

Subscribe to this mod's changes

go-grpc-init-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 154 tokens to every session and 1,669 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

go-grpc-init-skill compared with skills from other repositories

go-grpc-init-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-grpc-init-skilljiushiwon/wg-skillsSkill1547d agoApache-2.0A154Claude Code, Codex
golang-proJeffallan/claude-skillsSkill13ktodayMITA95Claude Code
platform-constrained-handlerclidey/whodbSkill5.1kyesterdayApache-2.0A26Claude Code, Codex
golang-graphqlsamber/cc-skills-golangSkill4.0k22d agoMITA77Claude Code
golang-grpcsamber/cc-skills-golangSkill4.0k22d agoMITA72Claude Code
golang-swaggersamber/cc-skills-golangSkill4.0k22d agoMITA146Claude Code
printing-pressmvanhorn/cli-printing-pressSkill5.1ktodayMITA86Claude Code