用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/G1Joshi/Agent-Skills --skill grpc命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | grpc |
| description | gRPC high-performance RPC framework with protobuf. Use for service communication. |
gRPC is a modern open-source high-performance Remote Procedure Call (RPC) framework that can run in any environment. It uses Protocol Buffers (Protobuf) as its Interface Definition Language (IDL).
// service.proto
syntax = "proto3";
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
}
// Server (Go)
func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {
return &pb.HelloReply{Message: "Hello " + in.GetName()}, nil
}
Binary serialization format. Smaller and faster than JSON.
gRPC runs on HTTP/2 by default, enabling Multiplexing (multiple requests over one connection) and Server Push.
You don't write client libraries manually. You generate them from the .proto file for any language (Go, Python, Java, Node, C#).
Allows browser clients to talk to gRPC services via a proxy (Envoy).
Middleware for gRPC. Used for Logging, Auth, and Tracing.
Do:
.proto files.Don't:
Oneof feature for union types.| Error | Cause | Solution |
|---|---|---|
Unavailable (14) | Server down or network issue. | Implement Exponential Backoff Retry. |
Unimplemented (12) | Service method not found. | Re-generate code and check .proto sync. |
Message too large | Payload exceeds limit (4MB default). | Increase limit or use Streaming. |