·trpc

適用於 TypeScript 的 tRPC v11 端對端類型安全性 API。涵蓋路由器和流程定義、使用 Zod 進行輸入驗證、中間件和上下文、訂閱、使用 TRPCError 進行錯誤處理、透過 @trpc/react-query 進行 React 用戶端掛鉤、使用 createCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、HonoateCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、Hono)以及測試模式。 在建立 tRPC 路由器、定義過程、設定中間件、設定適配器、將 tRPC 與 React 整合、處理錯誤、實現訂閱或測試 tRPC 過程時使用。

19安裝·3熱度·@oakoss

安裝

$npx skills add https://github.com/oakoss/agent-skills --skill trpc

如何安裝 trpc

透過命令列快速安裝 trpc AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/oakoss/agent-skills --skill trpc
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:oakoss/agent-skills。

SKILL.md

查看原文

tRPC enables end-to-end type-safe APIs by sharing TypeScript types between server and client without code generation or schemas. The server defines procedures (queries, mutations, subscriptions) in a router, and the client infers all types from the exported AppRouter type.

When to use: TypeScript full-stack apps needing type-safe API layers, monorepos sharing types, real-time subscriptions, rapid API iteration without OpenAPI/GraphQL overhead.

When NOT to use: Public APIs consumed by non-TypeScript clients (use REST/GraphQL), polyglot backends, projects requiring OpenAPI spec generation as primary output.

適用於 TypeScript 的 tRPC v11 端對端類型安全性 API。涵蓋路由器和流程定義、使用 Zod 進行輸入驗證、中間件和上下文、訂閱、使用 TRPCError 進行錯誤處理、透過 @trpc/react-query 進行 React 用戶端掛鉤、使用 createCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、HonoateCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、Hono)以及測試模式。 在建立 tRPC 路由器、定義過程、設定中間件、設定適配器、將 tRPC 與 React 整合、處理錯誤、實現訂閱或測試 tRPC 過程時使用。 來源:oakoss/agent-skills。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/oakoss/agent-skills --skill trpc
分類
</>開發工具
認證
收錄時間
2026-02-25
更新時間
2026-03-11

Browse more skills from oakoss/agent-skills

快速解答

什麼是 trpc?

適用於 TypeScript 的 tRPC v11 端對端類型安全性 API。涵蓋路由器和流程定義、使用 Zod 進行輸入驗證、中間件和上下文、訂閱、使用 TRPCError 進行錯誤處理、透過 @trpc/react-query 進行 React 用戶端掛鉤、使用 createCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、HonoateCallerFactory 進行伺服器端呼叫、適配器設定(獨立、Express、Fastify、Hono)以及測試模式。 在建立 tRPC 路由器、定義過程、設定中間件、設定適配器、將 tRPC 與 React 整合、處理錯誤、實現訂閱或測試 tRPC 過程時使用。 來源:oakoss/agent-skills。

如何安裝 trpc?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/oakoss/agent-skills --skill trpc 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/oakoss/agent-skills

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-25