一键导入
trpc
End-to-end typesafe APIs with tRPC
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
End-to-end typesafe APIs with tRPC
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Eamon Hyland's opinionated tooling and conventions for TypeScript projects. Use when setting up new projects, configuring a linter, monorepos, library publishing, or when the user mentions Eamon's preferences.
A fully featured React components library
Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
| name | trpc |
| description | End-to-end typesafe APIs with tRPC |
| metadata | {"author":"Eamon Hyland","version":"2026.2.3","source":"Generated from https://trpc.io/docs, scripts located at https://github.com/ehyland/skills"} |
The skill is based on tRPC v11.9.0, generated at 2026-02-03.
tRPC allows you to build & consume fully typesafe APIs without schemas or code generation. It uses TypeScript to share types between your server and client.
| Topic | Description | Reference |
|---|---|---|
| Routers | Initializing tRPC and defining routers | core-router |
| Procedures | Defining queries, mutations, and subscriptions | core-procedure |
| Validators | Input and output validation using Zod/Standard Schema | core-validator |
| Context | Defining and creating context (inner/outer) | core-context |
| Middlewares | Procedure middlewares and context extension | core-middleware |
| Vanilla Client | Setting up and using the vanilla tRPC client | core-client-vanilla |
| Topic | Description | Reference |
|---|---|---|
| Error Handling | Throwing and handling TRPCError | features-error-handling |
| Links | Understanding and using tRPC links | features-links |
| TanStack Query | Integration with TanStack React Query | features-tanstack-react-query |
| Topic | Description | Reference |
|---|---|---|
| Base Procedures | Creating and using reusable base procedures | best-practices-base-procedures |