Token导航 LogoToken导航

Agent Skill · 前端设计

proto-api-generator(proto API 生成器)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

proto-api-generator 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,319。

总安装 524周安装 21GitHub Stars 公开资料未说明下载 170核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:proto-api-generator(proto API 生成器)
来源仓库:https://github.com/go-sphere/skills
仓库路径:skills/proto-api-generator
安装命令:
npx skills add https://github.com/go-sphere/skills --skill proto-api-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/go-sphere/skills --skill proto-api-generator

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助 API 设计、接口文档和错误码整理,帮助 Agent 生成 OpenAPI 草稿。适合梳理 endpoint、检查字段命名和鉴权方式,支持前后端联调。通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。

涉及生成接口文档时应避免凭空补字段,最好从现有代码或 schema 中提取事实。proto-api-generator 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/proto-api-generator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/go-sphere/skills --skill proto-api-generator;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

proto-api-generator 怎么安装?

在终端执行 npx skills add https://github.com/go-sphere/skills --skill proto-api-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

proto-api-generator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

proto-api-generator 需要什么权限?

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

proto-api-generator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

proto-api-generator 用的人多吗?

公开数据是累计安装 524 次,近一周安装 21 次,下载 170 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

proto-api-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
proto-api-generator

proto API 生成器 · 本页

524—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Proto API Generator

Design implementation-ready proto3 + HTTP contracts for go-sphere scaffold projects.

If any of these are missing, ask one question at a time before proceeding. When a design decision has multiple reasonable options (message type, route strategy, pagination shape), present 2-3 options with your recommendation — do not choose unilaterally.

Operating Model

  1. Follow go-sphere scaffold conventions unless the user explicitly requests deviation.
  2. Treat local references as the working source of truth for scaffold rules, runtime behavior, and output shape.
  3. Keep outputs protocol-first; do not rely on lint plugins, scripts, or manual edits to generated files as substitutes for reasoning checks.

Checklist (track with TodoWrite)

At task start, call TodoWrite to create a task for each numbered item below. Mark each complete before moving to the next.

  1. Confirm module name, file mode (new / add to existing), and message strategy — through dialogue with the user, not by inferring from context
  2. Ask clarifying questions one at a time for any ambiguous scope or behavior
  3. For non-obvious decisions, propose 2-3 options with recommendation
  4. Present service overview (service name, RPC list) — get approval
  5. Present message designs section by section — get approval for each
  6. Run Final Gate checklist (references/go-sphere-api-definitions-checklist.md)
  7. Write the API design doc to disk (prd/API.md or design/<feature>/api.md)
  8. Ask if the user wants to proceed to proto file generation

Output path rule: Use design/<feature>/api.md if the user names a specific feature or change-id; default to prd/API.md otherwise.

Task Intake

Supported task inputs:

  1. Prompt-only: infer entities and use cases, then state assumptions explicitly.
  2. Folder input: inspect only the provided folders; prefer scaffold-standard structure (proto/, internal/, api/) when present.
  3. Requirement + mock demo: treat requirement docs as business truth, mock payloads as response-shape truth, and Ent schema as implementation reference rather than contract mirror.

Progressive Reference Loading

Do not load every reference by default. Load the smallest set that can support the current decision.

Start Here

  1. references/repo-proto-conventions-reference.md Use for package style, route namespace strategy, pagination defaults, reuse policy, naming compatibility, and topology rules.

Load Only When Needed

  1. Final output shape selection or final formatting: references/proto-output-template.md Then load exactly one template:

- references/proto-output-condensed-template.md - references/proto-output-full-template.md

  1. Service routes, path templates, or backend portability: references/router-conflict-reference.md
  2. HTTP method, binding, body, or response shaping: references/go-sphere-api-definitions-reference.md
  3. Error enums, sphere.errors, or runtime error behavior: references/go-sphere-error-handling-reference.md
  4. Package layout, codegen pipeline, or runtime assumptions: references/protocol-and-codegen-reference.md references/proto-packages-and-runtime-reference.md

Final Gate

  1. references/go-sphere-api-definitions-checklist.md

If any required check fails, stop and output Validation Notes -> Blocking Issues with corrected proposals. Do not replace local references with external links in final outputs.

Core Decisions

File Mode

Classify each target proto file as one of:

  1. service proto: contains a service definition.
  2. message-only proto: contains messages or enums only.

Mode handling:

  1. service proto must satisfy service-only topology, route, and error-placement rules.
  2. message-only proto is allowed and must record service-only exemptions explicitly.
  3. Both modes must still satisfy naming, import, runtime, and codegen compatibility checks.

Reuse Order

Default reuse priority:

  1. Reuse entpb when it already satisfies external contract needs.
  2. Reuse or extract shared.v1 messages for cross-service usage.
  3. Create custom DTO or VO only when contract shaping requires it.

Use custom DTO or VO only when at least one condition is true:

  1. Sensitive or internal fields must be hidden.
  2. Cross-aggregate composition is required.
  3. External contract stability must be isolated from storage model changes.

Error Placement Default

  1. Keep service-specific business errors in the same proto file as the owning service.
  2. Reuse or create shared errors only for cross-service semantics.
  3. For message-only proto, skip service-local error placement rules but still validate runtime and import compatibility.

Workflow

  1. Classify each target file by mode.
  2. Read scaffold conventions first and choose package style, service prefix, and compatibility constraints before drafting.
  3. Decide reuse (entpb, shared.v1, custom DTO or VO`) before finalizing message shapes.
  4. For service proto, define business use cases, HTTP bindings, route-safe paths, and error enums.
  5. For message-only proto, draft messages and enums only, then record service-only exemptions in validation notes.
  6. Load detailed HTTP, error, router, or runtime references only when the draft actually depends on them.
  7. Choose the deliverable shape late:

- use the condensed template for straightforward CRUD with clear reuse and routing; - use the full template for custom business logic, multiple services, complex routing, or heavy validation notes.

  1. Run the final checklist before delivery.

Non-Negotiables

Keep these principles in mind throughout the task. Detailed rule text lives in the references and checklist.

  1. Design business capability first; avoid table-mirror public contracts.
  2. List APIs require pagination; batch APIs are preferred over repeated single reads.
  3. Avoid oneof in HTTP-exposed request or response messages.
  4. Keep error contracts machine-readable and stable.
  5. Do not leak sensitive or storage-only fields into external contracts.
  6. Keep routes conflict-safe; when backend is unknown, design for the Gin-safe subset first.
  7. Add concise // business comments for exposed service/rpc, core messages, and key enum values.

Mandatory Pre-Output Checklist

BEFORE writing the final proto file, you MUST verify all of the following:

Package Naming Check

  • Package name follows scaffold convention: dash.v1 for generic, or {module}.v1 for domain-specific (e.g., user.v1, order.v1, article.v1)
  • Package declaration is in the format package {name}.v1;

HTTP Binding Check

  • Every RPC method has option (google.api.http) annotation
  • HTTP method (get/post/put/delete) matches the operation semantics
  • Route path follows REST conventions with proper path parameters

Error Handling Check

  • Service proto files MUST include a service-local error enum (e.g., ArticleError, OrderError, AuthError)
  • Error enum uses (sphere.errors.options) annotation with proper status codes
  • At minimum, include NOT_FOUND and INVALID_PARAMETER error codes

Field Type Check

  • ID fields use int64 (not string)
  • Timestamps use google.protobuf.Timestamp
  • Pagination uses page/page_size with total_size/total_page in response

Validation Check

  • Required fields have (buf.validate.field) constraints
  • String fields have min_len or min_bytes where appropriate
  • Numeric fields have gte/lte bounds where appropriate

Reuse Check

  • Consider using entpb messages when they match contract needs
  • Consider using shared.v1 for cross-service messages

If ANY check fails, fix the proto file before delivering. Do not output proto files that fail these checks.

Output

Use references/proto-output-template.md only as the template selector. Before final formatting, load exactly one of:

  1. references/proto-output-condensed-template.md
  2. references/proto-output-full-template.md

平台分布

Codex

35.26%
按下载量换算60

Claude

33.15%
按下载量换算56

Cursor

18.7%
按下载量换算32

Gemini CLI

9.78%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills