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.
npx skills add jiushiwon/wg-skills --skill go-grpc-init-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/go-grpc-init-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- README.md 2.9 KB
- references/error-codes.md 5.3 KB
- references/grpc-web.md 3.2 KB
- references/interceptor.md 8.2 KB
- references/proto-style.md 5.0 KB
- templates/client/main.go 2.6 KB
- templates/go.mod 133 B
- templates/proto/auth.proto 1.4 KB
- templates/proto/hello.proto 1.2 KB
- templates/proto/streaming.proto 2.3 KB
- templates/scripts/proto-gen.sh 355 B runs code
- templates/server/greeter.go 1.8 KB
- templates/server/main.go 1.1 KB
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.
- 19d ago Changed · -621 lines a8846e1eb8f3
- 1mo ago First seen · 758 lines · 154 tokens per session scan A af2bb08ea88c
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.
go-grpc-init-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-grpc-init-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 154 | Claude Code, Codex |
| golang-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 95 | Claude Code |
| platform-constrained-handlerclidey/whodb | Skill | 5.1k | yesterday | Apache-2.0 | A | 26 | Claude Code, Codex |
| golang-graphqlsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 77 | Claude Code |
| golang-grpcsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 72 | Claude Code |
| golang-swaggersamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 146 | Claude Code |
| printing-pressmvanhorn/cli-printing-press | Skill | 5.1k | today | MIT | A | 86 | Claude Code |