跳到主要内容

Lang Protobuf

Lint and generate Protobuf and gRPC contracts.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-protobuf
Version1.0.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Protobuf / gRPC Language Pack Skill

Drive Protobuf / gRPC work with the project index and standard CLI recipes. LSP hint: none (toolchain CLI) (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык описания структур данных и RPC-контрактов. Один .proto → код на Go/TS/Java/… для клиентов и серверов.

Лучше всего для:

  • микросервисные контракты
  • gRPC API
  • codegen клиентов на многих языках
  • версионируемые схемы

When to Use​

Выбирай этот pack, если:

  • есть *.proto / buf.yaml
  • сервисы общаются по gRPC
  • нужен стабильный контракт между командами

Manifests (автодетект репозитория): buf.yaml, buf.gen.yaml, buf.work.yaml, *.proto

Обычно рядом: Go/Java/TypeScript сервисы; часто рядом с Docker/K8s.

См. также skill choose-language-pack и vibeos language recommend "…".

When NOT to use​

  • публичный HTTP JSON API для браузера → REST/GraphQL
  • простой монолит → язык приложения без IDL
  • только БД-схема → sql / prisma

Prerequisites​

vibeos pack apply lang-protobuf --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
buf lint
buf generate || true

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-protobuf --apply
Doctorvibeos language doctor protobuf
Primary testbuf lint
Choose guideskill choose-language-pack
Recommendvibeos language recommend "…"

Procedure​

  1. Для нового продукта сначала choose-language-pack / vibeos language recommend.
  2. Work from the project root that matches pack manifests.
  3. Prefer project-local toolchain and committed config (sqlfluff/buf/elm.json).
  4. Explain destructive DB or breaking contract changes; wait for explicit ask.
  5. Do not invent core tools; stay on terminal + read_file + index CLI.

Pitfalls​

  • Prefer buf over ad-hoc protoc flags when buf.yaml exists.
  • Breaking changes need explicit review (buf breaking).

Verification​

vibeos language doctor protobuf
vibeos project index status