AgentSkillsCN

olore-trpc-latest

本地 tRPC 文档参考(最新版)。tRPC 文档。适用于端到端的类型安全 API、React Query 集成、Next.js 适配器、订阅功能,以及 TypeScript RPC 远程过程调用。

SKILL.md
--- frontmatter
name: olore-trpc-latest
description: Local tRPC documentation reference (latest). tRPC documentation. Use for end-to-end typesafe APIs, React Query integration, Next.js adapters, subscriptions, and TypeScript RPC.

tRPC Documentation

tRPC documentation. Use for end-to-end typesafe APIs, React Query integration, Next.js adapters, subscriptions, and TypeScript RPC.

Documentation Structure

code
contents/
├── main/               # Getting started and core concepts (6 files)
├── server/             # Server-side API and configuration (23 files)
│   └── adapters/       # Server adapters for different platforms (6 files)
├── client/             # Client libraries and integrations (43 files)
│   ├── links/          # Link configuration (12 files)
│   ├── nextjs/         # Next.js integration (7 files)
│   ├── react/          # React hooks integration (15 files)
│   ├── tanstack-react-query/  # TanStack React Query integration (4 files)
│   └── vanilla/        # Vanilla TypeScript client (4 files)
├── migration/          # Migration guides (1 file)
├── further/            # FAQ and additional resources (3 files)
└── community/          # Community resources (1 file)

Topic Guide

TopicKey Files
Getting Startedcontents/main/quickstart.mdx, contents/main/getting-started.mdx, contents/main/concepts.mdx
Server Setupcontents/server/routers.md, contents/server/procedures.md, contents/server/context.md
Server Middleware & Authcontents/server/middlewares.md, contents/server/authorization.md
Error Handlingcontents/server/error-handling.md, contents/server/error-formatting.md
Input Validationcontents/server/validators.md
Server Adapterscontents/server/adapters-intro.md, contents/server/adapters/nextjs.md, contents/server/adapters/express.md
Real-time / Subscriptionscontents/server/subscriptions.md, contents/server/websockets.md
Next.js Integrationcontents/client/nextjs/setup.mdx, contents/client/nextjs/ssr.md, contents/client/nextjs/ssg.md
React Hookscontents/client/react/setup.mdx, contents/client/react/useQuery.md, contents/client/react/useMutation.md
React Query Integrationcontents/client/tanstack-react-query/setup.mdx, contents/client/tanstack-react-query/usage.mdx
Vanilla TypeScript Clientcontents/client/vanilla/setup.mdx, contents/client/vanilla/introduction.md
Client Linkscontents/client/links/overview.md, contents/client/links/httpBatchLink.md
Type Inferencecontents/client/react/infer-types.md, contents/client/vanilla/infer-types.md
Migrationcontents/migration/migrate-from-v10-to-v11.mdx
FAQ & Troubleshootingcontents/further/faq.mdx

When to use

Use this skill when the user asks about:

  • Setting up tRPC server or client
  • Creating type-safe APIs with TypeScript
  • Integrating tRPC with Next.js or React
  • Using React hooks (useQuery, useMutation, etc.)
  • Server adapters (Express, Fastify, AWS Lambda, etc.)
  • Middleware and authorization patterns
  • Input validation with Zod
  • Error handling and formatting
  • Real-time subscriptions and WebSockets
  • SSR/SSG with Next.js
  • Client configuration and links
  • Type inference and TypeScript usage
  • Migrating between tRPC versions

How to find information

  1. Use Topic Guide above to identify relevant files
  2. Read TOC.md for complete file listing by directory
  3. Read specific files from contents/{path}