/protobuf:protobuffrom protobuf
Designs Protocol Buffer schemas, configures buf toolchain, builds gRPC/Connect services, and applies protovalidate constraints. Activates on .proto, buf.yaml, buf.gen.yaml, and buf.lock files.
Ships in protobuf. 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.
.proto filesbuf.yaml or buf.gen.yamlBefore writing proto code, review existing .proto files in the project.
Match conventions for naming, field ordering, structural patterns, validation, and documentation style.
If none exists, ask the user what style should be used or an existing library to emulate.
Always run after making changes:
buf format -w && buf lint
Check for a Makefile first—many projects use make lint or make format.
Fix all errors before considering the change complete.
| Task | Reference |
|---|---|
| Field types, enums, oneofs, maps | quick_reference.md |
| Schema evolution, breaking changes | best_practices.md |
| Validation constraints | protovalidate.md |
| Complete service examples | examples.md, assets/ |
| buf CLI, buf.yaml, buf.gen.yaml | buf_toolchain.md |
| Migrating from protoc | migration.md |
| Lint errors, common issues | troubleshooting.md |
| Proto API review checklist | review_checklist.md |
Create directory structure:
proto/
├── buf.yaml
├── buf.gen.yaml
└── company/
└── domain/
└── v1/
└── service.proto
Use assets/buf.yaml as starting point
Add buf.build/bufbuild/protovalidate as a dependency in buf.yaml and run buf dep update
Use assets/buf.gen.*.yaml for code generation config
| Template | Use For |
|---|---|
buf.gen.go.yaml | Go with gRPC |
buf.gen.go-connect.yaml | Go with Connect |
buf.gen.ts.yaml | TypeScript with Connect |
buf.gen.python.yaml | Python with gRPC |
buf.gen.java.yaml | Java with gRPC |
Located in assets/proto/example/v1/:
| Template | Description |
|---|---|
book.proto | Entity message, BookRef oneof, enum |
book_service.proto | Full CRUD with batch ops, pagination, ordering |
buf format -w && buf lintreserved 4;
reserved "old_field_name";
buf breaking --against '.git#branch=main' to verifyEvery field in a production API should have appropriate validation. See protovalidate.md for the full reference.
Common constraints:
.string.uuid, .string.email, .string.uri, .string.pattern.string.min_len, .string.max_len.int32.gte, .uint32.lte.enum.defined_only, .enum.not_in = 0.repeated.min_items, .repeated.max_items(buf.validate.field).required = true(buf.validate.oneof).required = trueAfter making changes:
buf format -w (apply formatting)buf lint (check style rules)buf breaking --against '.git#branch=main' (if modifying existing schemas)assets/Makefile.example (opens in a new tab)assets/buf.gen.go-connect.yaml (opens in a new tab)assets/buf.gen.go.yaml (opens in a new tab)assets/buf.gen.java.yaml (opens in a new tab)assets/buf.gen.python.yaml (opens in a new tab)assets/buf.gen.ts.yaml (opens in a new tab)assets/buf.gen.yaml (opens in a new tab)assets/buf.lock (opens in a new tab)assets/buf.yaml (opens in a new tab)assets/proto/example/v1/book.proto (opens in a new tab)assets/proto/example/v1/book_service.proto (opens in a new tab)references/best_practices.md (opens in a new tab)references/buf_toolchain.md (opens in a new tab)references/examples.md (opens in a new tab)references/migration.md (opens in a new tab)references/protoc_toolchain.md (opens in a new tab)references/protovalidate.md (opens in a new tab)references/quick_reference.md (opens in a new tab)references/review_checklist.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bufbuild/claude-plugins --plugin protobufOther plugins' skills for the same job