lang-protobuf
Skill5 starsChanged 47 days agoMITView on GitHub
use this when writing or reviewing *.proto files or generated stubs you are allowed to edit. generated code is usually not hand-edited. load with the host language when you also change application code.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- maintainers/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- buying-researcherSkill
- cursor-cloud-agents-whenSkill
- debug-anthropicSkill
- debug-pocockSkill
- debugSkill
- discover-the-ideaSkill
- docs-google-styleSkill
- golang-safetySkill
- golang-securitySkill
- golang-testingSkill
- grok-acpSkill
- host-config-pyinfraSkill
- lang-cppSkill
- lang-csharpSkill
- lang-cSkill
- lang-dartSkill
- lang-dockerSkill
- lang-goSkill
- lang-javaSkill
- lang-js-tsSkill
- lang-kotlinSkill
- lang-luaSkill
- lang-makefileSkill
- lang-phpSkill
- lang-powershellSkill
- lang-pythonSkill
- lang-rubySkill
- lang-rustSkill
- lang-shellSkill
- lang-sqlSkill
- lang-swiftSkill
- lang-terraformSkill
- language-routerSkill
- lang-web-markupSkill
- modern-pythonSkill
- pr-reviewSkill
- sdlc-artifactsSkill
- sdlc-onboardingSkill
- security-hardeningSkill
- shell-safetySkill
- tddSkill
- tracker-sdlcSkill
- ui-craftSkill
- ux-designSkill
- verify-before-doneSkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 23
Add fields. Do not reuse field numbers.
- Very specific: line 25
Use optional / presence as the proto edition in the repo already does.
- Distinctive: line 27
Keep packages stable. Compatibility is the API.
- Distinctive: line 43
No type change of a shipped field.
- Distinctive: line 48
Treat decoded protobuf as untrusted input in the host language (size limits, required-meaning fields validated after parse).
- Distinctive: line 50
Do not embed secrets in proto comments committed to git.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Protocol Buffers
No scripts/. Proto-led change with hand-edited host code: see Algorithm.
Process skills that may load with this one: language-router Load-with list.
Iron law
Fields are forever. Reserve deleted numbers. Do not hand-edit generated stubs.
Tooling / verify
Regenerate with the project's command (buf generate, protoc, etc.).
Diff only the intended schema change plus the expected generated files.
Idioms a linter misses
- Add fields. Do not reuse field numbers.
reservednumbers and names when removing.- Use
optional/ presence as the proto edition in the repo already does. - Keep packages stable. Compatibility is the API.
- Comments say why a field exists, not what the type is.
Errors
- Unknown fields must survive a round-trip on old clients. Do not strip them in app code.
Testing
- Old client + new field must parse.
- Golden encoded bytes for wire format if the repo has them.
PR review
- No reused numbers.
- No type change of a shipped field.
- Generated files only from codegen.
Security
- Treat decoded protobuf as untrusted input in the host language (size limits, required-meaning fields validated after parse).
- Do not embed secrets in proto comments committed to git.
Always
- Additive changes.
reservedon delete. Codegen, not hand edits.
Ask first
- Renaming a shipped field.
- Changing a field type.
- Breaking package rename.
Never
- Reusing a field number.
- Editing generated
*.pb.go/*_pb2.py/*.pb.tsby hand.
Red flags
- "I'll reuse field 3, nothing uses it"
- "I'll just tweak the generated stub"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

