protobuf
Design and review Protobuf contracts: .proto schemas, Buf/codegen, evolution, Protovalidate/CEL, descriptors and runtime consumers. Use aip for Google resource API conventions.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- protobuf
- paths
- [ "**/*.proto", "**/buf.yaml", "**/buf.gen*.yaml", "**/buf.work.yaml", "**/buf.lock" ]
- description
- Design and review Protobuf contracts: .proto schemas, Buf/codegen, evolution, Protovalidate/CEL, descriptors and runtime consumers. Use aip for Google resource API conventions.
02 资源文件 7
- 参考文档references/compatibility.md5.9 KB
- 参考文档references/rpc.md3.0 KB
- 参考文档references/runtimes.md4.9 KB
- 参考文档references/schema-driven.md5.8 KB
- 参考文档references/source-review-2026-10.md18.6 KB
- 参考文档references/validation.md3.8 KB
- 参考文档references/wire-and-performance.md2.6 KB
03 SKILL.md 正文
Protobuf
Treat the schema as a contract for serialization, generated code, validation and any descriptor-driven consumers, not just a transport DTO. Apply only the layers the repository uses. Skill loading grants neither delegation nor migration permission.
Inspect the contract
- Pin the review base/head, including working changes when requested. Include deleted and renamed schemas, imports, custom options, generation config and affected output.
- Identify syntax/edition, compiler/plugins, runtime versions, Buf modules/locks, generation commands, compatibility policy, persisted messages and deployed consumers. Check binary, ProtoJSON, generated-source and behavioral compatibility separately.
- Read compatibility for schema or generation changes. Follow affected descriptors/messages through producers, adapters, storage and clients; generated code is evidence, never a hand-edit target.
- Load only relevant depth:
- Validation, requiredness or CEL changes: validation.
- TS/Python runtime or RPC consumers: runtimes.
- Reflection, custom options, forms or duplicated schema facts: schema-driven capabilities.
- APIs adopting Google resource conventions: load aip completely.
A
.protoextension alone does not make every General AIP applicable. - React Connect Query flows: load connect-query.
Verify behavior
Use repository-owned commands and the pinned toolchain. Where configured, exercise Buf format/build/lint, breaking detection against the actual review/deployed baseline, code generation and affected consumer checks. Honor module roots and existing rule categories; report weakened checks and policy gaps rather than silently changing policy.
A review stays read-only: generate into a disposable output/snapshot when necessary. Name unavailable tools, missing baselines and untested languages; passing lint or wire checks alone cannot prove semantic compatibility or runtime validation.
For a changed contract, seek a counterexample at its public seam: an old payload/new reader, new payload/old reader, unset versus explicit default, invalid request reaching the server, or an edit adapter losing information. During implementation, first make that counterexample fail a test; then fix and replay it through the real consumer.
Report two distinct results
- Defects: diff-introduced failures with an affected consumer/scenario, evidence, consequence, smallest compatible fix and verification. These affect the review verdict.
- Opportunities: optional schema-driven improvements grounded in actual duplication or an existing descriptor consumer. State the benefit, adoption cost and smallest experiment. Keep them out of inline defect comments and blocking findings. Missing Protovalidate, custom options, AIP conventions or a newer runtime is not itself a bug.
Use the parent review's findings schema; gate reviews put advisory capabilities in
simplification_opportunities, not findings or testing_gaps. Report verification
limits and rollout risks; do not invent independent review, cross-language parity or
conformance results.
04 同仓库更多 Skills
learn-taste
Turn a session's design corrections into scoped, reasoned rules for future agents. Use for /learn-taste or requests to remember design feedback, not general workflow retrospectives.
learn-taste
Turn a session's design corrections into scoped, reasoned rules for future agents. Use for /learn-taste or requests to remember design feedback, not general workflow retrospectives.
pull-requests
Use when finalizing a pull request or continuing an existing one; preserve the requested endpoint and draft state.
pull-requests
Use when finalizing a pull request or continuing an existing one; preserve the requested endpoint and draft state.
hill-climb
Optimize a defined outcome through bounded evaluation loops. Use for hill-climb requests or repeated improvement against an executable eval, benchmark, or visual comparison; not a one-pass review.
gestures
Build or fix web drag, swipe, sheet, reorder, and hold interactions: direct tracking, rubber banding, release velocity, momentum, snap points, and interruption. Not native React Native or Swift.