Community程式設計與開發github.com

bobmatnyc/trpc-type-safety

tRPC 端到端型別安全 API,適用於 TypeScript,整合 React Query,實現全端型別安全

trpc-type-safety 是什麼?

此技能專注於 tRPC(TypeScript Remote Procedure Call)的端到端型別安全 API 實作,特別整合 React Query 以提升資料擷取和狀態管理效率。對於使用 TypeScript 的全端開發者而言,tRPC 允許在客戶端和伺服器之間共享型別定義,從而消除 API 端點與前端資料消費間的型別不一致問題。此技能支援包括 Next.js、Express 等在內的熱門框架,透過自動產生型別安全鉤子(hooks)來簡化 API 呼叫流程。它可以幫助團隊減少除錯時間、改善開發體驗,並確保在程式碼編譯階段即捕獲型別錯誤,最終提升應用程式的穩定性與可維護性。

相容平台~Claude Code~Codex CLI~Cursor
Part ofReact
npx skills add https://github.com/bobmatnyc/claude-mpm-skills/tree/main/skills/trpc-type-safety

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

trpc-type-safety 是做什麼的?

tRPC 端到端型別安全 API,適用於 TypeScript,整合 React Query,實現全端型別安全

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

相關技能