Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

protobuf-developer协议缓冲区开发者

Agent Skill

protobuf-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

公开资料未说明

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:protobuf-developer(协议缓冲区开发者)
来源仓库:https://github.com/imrenagi/skills
仓库路径:skills/protobuf-developer
安装命令:
npx skills add https://github.com/imrenagi/skills --skill protobuf-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/imrenagi/skills --skill protobuf-developer

简介

protobuf-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Protobuf Developer

This skill provides best practices and rules for developing Protocol Buffer schemas (proto3).

When to Apply

Reference these guidelines when:

  • Defining new gRPC services and message types.
  • Modifying existing .proto files.
  • Refactoring message structures.
  • Ensuring backwards compatibility for evolving APIs.
  • Configuring Protobuf management, linting, and code generation using Buf.

Google AIP References

The following references are based on Google API Improvement Proposals (AIPs). Use these when designing resource-oriented APIs.

Important: When implementing these patterns, you must modify the protobuf package name and resource type domains to match the current application context (e.g., use package imrenagi.com.v1; instead of package google.example.v1;).

Resource Design

ReferenceWhen to Use
AIP-121: Resource-Oriented DesignDesigning a new API or service; need to structure resources and collections consistently.
AIP-122: Resource NamesDefining the name field for resources; need the correct URI path format for identifiers.
AIP-123: Resource TypesAnnotating messages with google.api.resource; need to define resource type patterns.
AIP-124: Resource AssociationReferencing resources from other messages; using google.api.resource_reference.
AIP-126: EnumerationsDefining enum types; need _UNSPECIFIED zero-value and naming conventions.
AIP-127: HTTP/gRPC TranscodingAdding google.api.http annotations; need to map gRPC methods to REST endpoints.
AIP-128: Declarative-Friendly InterfacesBuilding APIs consumed by infrastructure-as-code tools like Terraform.
AIP-129: Server-Modified ValuesHandling fields computed or modified by the server (e.g., create_time, update_time).

Standard Methods

ReferenceWhen to Use
AIP-130: MethodsUnderstanding the general structure and naming of RPC methods.
AIP-131: Get MethodsImplementing a method to retrieve a single resource by name.
AIP-132: List MethodsImplementing a method to list resources with pagination.
AIP-133: Create MethodsImplementing a method to create a new resource.
AIP-134: Update MethodsImplementing a method to update an existing resource with field masks.
AIP-135: Delete MethodsImplementing a method to delete a resource.
AIP-136: Custom MethodsImplementing non-CRUD actions (e.g., :cancel, :move, :archive).

Field Conventions

ReferenceWhen to Use
AIP-140: Field NamesNaming fields; need snake_case conventions and standard suffixes.
AIP-141: QuantitiesDefining numeric fields for counts, sizes, or quantities.
AIP-142: Time and DurationUsing google.protobuf.Timestamp and google.protobuf.Duration.
AIP-143: Standardized CodesDefining status codes, language codes, or other standardized values.
AIP-144: Repeated FieldsUsing repeated fields for lists; understanding pluralization and ordering.
AIP-145: RangesDefining start/end or min/max field pairs for ranges.
AIP-146: Generic FieldsUsing google.protobuf.Any or google.protobuf.Struct for dynamic data.
AIP-147: Sensitive FieldsMarking fields containing PII or secrets.
AIP-148: Standard FieldsUsing common fields like name, display_name, title, description.
AIP-149: Unset Field ValuesDistinguishing between unset and default values with optional fields.
AIP-203: Field BehaviorAnnotating fields with REQUIRED, OUTPUT_ONLY, IMMUTABLE, etc.

Operations & Patterns

ReferenceWhen to Use
AIP-151: Long-Running OperationsOperations taking > 2 seconds; using google.longrunning.Operation.
AIP-152: JobsModeling user-managed background tasks or recurring operations.
AIP-153: Import/ExportImplementing bulk data import or export operations.
AIP-154: ETagsAdding optimistic concurrency control with ETags.
AIP-155: Request IDsSupporting client-provided request IDs for idempotency.
AIP-156: Singleton ResourcesModeling resources with only one instance (e.g., settings, config).
AIP-157: Partial ResponsesAllowing clients to request specific fields with read masks.
AIP-158: PaginationImplementing page_size and page_token for list methods.
AIP-159: Reading Across CollectionsListing resources across multiple parents (using - wildcard).
AIP-160: FilteringAdding filter expressions to list methods.
AIP-161: Field MasksUsing google.protobuf.FieldMask for partial updates.
AIP-162: Resource RevisionsTracking historical versions or revisions of resources.
AIP-163: Change ValidationValidating changes before applying (dry-run mode).
AIP-164: Soft DeleteImplementing soft-delete with Undelete and retention periods.
AIP-165: PurgeImplementing bulk deletion of soft-deleted resources.

Batch Operations

ReferenceWhen to Use
AIP-231: Batch GetRetrieving multiple resources by name in a single request.
AIP-233: Batch CreateCreating multiple resources in a single request.
AIP-234: Batch UpdateUpdating multiple resources in a single request.
AIP-235: Batch DeleteDeleting multiple resources in a single request.
AIP-236: Policy PreviewPreviewing the effect of policy changes before applying them.

Compatibility & Versioning

ReferenceWhen to Use
AIP-180: Backwards CompatibilityUnderstanding what constitutes a breaking change; evolving APIs safely.
AIP-181: Stability LevelsMarking APIs as alpha, beta, or stable.
AIP-182: External DependenciesManaging dependencies on external proto definitions.
AIP-185: VersioningStructuring package names with version suffixes (v1, v2).

Style & Documentation

ReferenceWhen to Use
AIP-190: Naming ConventionsNaming messages, enums, fields, and services consistently.
AIP-191: File StructureOrganizing proto files within a package.
AIP-192: DocumentationWriting comments and documentation in proto files.
AIP-193: ErrorsReturning structured errors with google.rpc.Status.
AIP-194: RetryDocumenting retry behavior and idempotency.
AIP-200: PrecedentUnderstanding when to follow existing patterns vs. innovation.
AIP-202: Field FormatsUsing format annotations for UUIDs, emails, URIs, etc.
AIP-205: Beta Blocking ChangesManaging breaking changes in beta APIs.
AIP-210: UnicodeHandling Unicode strings and normalization.
AIP-211: AuthorizationDocumenting authorization requirements.
AIP-213: Common ComponentsUsing shared proto definitions across services.
AIP-214: ExpirationModeling time-to-live or expiration for resources.
AIP-215: IsolationDesigning multi-tenant or isolated resource APIs.
AIP-216: StatesModeling resource lifecycle states.
AIP-217: Unreachable ResourcesHandling references to resources that may not exist.

Buf References

Use these references when configuring Buf for linting, breaking change detection, and code generation.

ReferenceWhen to Use
Protobuf Management with BufSetting up Buf for a new project; understanding buf.yaml and core commands.
LintingConfiguring lint rules; resolving conflicts between Buf linter and AIP standards.
Breaking Change DetectionRunning buf breaking to prevent backwards-incompatible changes.
Directory StructureOrganizing proto files and packages for Buf modules.
Code GenerationConfiguring buf.gen.yaml for Go, gRPC-Gateway, and OpenAPI code generation.

How to Use

  1. Read the Rules: Before starting a new feature or refactor, browse the relevant rule files.
  2. Follow the Examples: Use the provided "Correct" code patterns as templates.
  3. Ensure Consistency: Apply the same patterns across all proto files.

Each rule file contains:

  • Brief explanation of the rule
  • "Incorrect" examples (Bad patterns)
  • "Correct" examples (Recommended patterns)
  • Additional context and references

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.18%
按下载量换算32

windsurf

25.21%
按下载量换算30

OpenCode

16.76%
按下载量换算20

Codex

14.07%
按下载量换算17

Antigravity

7.41%
按下载量换算9

Gemini CLI

3.85%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills