·backend-trpc-openapi
</>

backend-trpc-openapi

从 tRPC 路由器生成 OpenAPI/REST 端点。当您拥有 tRPC API 但需要为第三方集成、移动应用程序或公共 API 文档公开 REST 端点时使用。提供自动 Swagger UI 和 OpenAPI 规范生成。当您需要类型安全的内部 API (tRPC) 并为外部使用者提供 REST 回退时,请选择此选项。

7安装·0热度·@petbrains

安装

$npx skills add https://github.com/petbrains/mvp-builder --skill backend-trpc-openapi

如何安装 backend-trpc-openapi

通过命令行快速安装 backend-trpc-openapi AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/petbrains/mvp-builder --skill backend-trpc-openapi
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:petbrains/mvp-builder。

SKILL.md

查看原文

Generate REST endpoints and OpenAPI documentation from your tRPC routers. Get the best of both worlds: type-safe internal API with tRPC, REST/Swagger for external consumers.

Package: trpc-to-openapi (active fork of archived trpc-openapi) Requirements: tRPC v11+, Zod

Key Benefit: Single source of truth — define once in tRPC, expose as both RPC and REST.

从 tRPC 路由器生成 OpenAPI/REST 端点。当您拥有 tRPC API 但需要为第三方集成、移动应用程序或公共 API 文档公开 REST 端点时使用。提供自动 Swagger UI 和 OpenAPI 规范生成。当您需要类型安全的内部 API (tRPC) 并为外部使用者提供 REST 回退时,请选择此选项。 来源:petbrains/mvp-builder。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/petbrains/mvp-builder --skill backend-trpc-openapi
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from petbrains/mvp-builder

快速解答

什么是 backend-trpc-openapi?

从 tRPC 路由器生成 OpenAPI/REST 端点。当您拥有 tRPC API 但需要为第三方集成、移动应用程序或公共 API 文档公开 REST 端点时使用。提供自动 Swagger UI 和 OpenAPI 规范生成。当您需要类型安全的内部 API (tRPC) 并为外部使用者提供 REST 回退时,请选择此选项。 来源:petbrains/mvp-builder。

如何安装 backend-trpc-openapi?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/petbrains/mvp-builder --skill backend-trpc-openapi 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/petbrains/mvp-builder