trpc
БесплатноБез исполняемых скриптовНе проверенCorrects the wrong defaults a model has for tRPC v11 (verified against 11.18.0). Use when code imports initTRPC, createTRPCContext, createTRPCOptionsProxy…
от pproenca★ 231 звезда на GitHubОб этом скилле
tRPC v11
The decisions tRPC forces and how to settle them, written so an agent applies them while writing or reviewing code. Every rule names the wrong default it corrects; there is no rule for what the model already gets right.
Pinned to tRPC v11, verified against 11.18.0 (2026-06-17). There is no v12 — but several APIs here carry @deprecated … will be removed in v12 and still ship today. Peers: typescript >=5.7.2, @tanstack/react-query ^5.80.3, react >=18.2.0.
When to Apply
Use this skill when:
- Code imports
initTRPC,createTRPCContext,createTRPCOptionsProxy,createTRPCReact,createTRPCClient,httpBatchLink,httpSubscriptionLink,splitLink,fetchRequestHandler,createCallerFactory, orTRPCError— or defines procedures with.input()/.output()/.use()/.query()/.mutation()/.subscription() - The user says "everything types as
any", "invalidation isn't working", "contextMap[utilName] is not a function", "the transformer property moved", "414 / 413 on the dashboard", "subscriptions won't connect", "the prefetch isn't hydrating", or "it 404s every procedure" - Migrating a codebase from tRPC v10, or reviewing tRPC code written against v10-era examples — the highest-yield moment, because the recommended React client changed and stale code often still compiles
- Adding the first subscription, the first file upload, or the first RSC prefetch to an existing router — each crosses into a surface where v11 replaced the v10 approach outright
- Reviewing a batched client as the app grows, where the uncapped defaults turn into intermittent production failures
This skill is NOT for:
- General TanStack Query semantics — cache lifetimes, retry,
useMutationergonomics (→tanstack-query) - Authoring or migrating the Zod schemas used as validators (→
zod) - Next.js App Router routing, streaming, or caching beyond the tRPC handler (→
nextjs) - General TypeScript narrowing and generics (→
typescript)
Rule Categories
| # | Category | Prefix | Covers |
|---|---|---|---|
| 1 | React Client Surface | client- |
Which integration, options factories, query keys, invalidation, subscribing |
| 2 | v10 → v11 Drift | mig- |
Renamed, removed, and lazily-materialized APIs; peer-version floors |
| 3 | Router & Procedure Construction | proc- |
Instance identity, builder order, context narrowing, input merging |
| 4 | Error & Validation Semantics | err- |
What surfaces, what leaks, which error class |
| 5 | Links, Transport & Serialization | link- |
Link chain, batching limits, transformers, adapters, caching |
| 6 | SSR, RSC & Server-Side Calls | rsc- |
Prefetch and hydration, QueryClient lifetime, caller misuse |
| 7 | Subscriptions & Streaming | sub- |
Async generators over SSE, auth, keepalive, backlog races |
Quick Reference
1. React Client Surface
client-tanstack-integration— Build React data fetching on@trpc/tanstack-react-query;createTRPCReactis now the classic pathclient-invalidate-with-query-filters—useUtils()does not exist on the new proxy; invalidate viaqueryClient+pathFilter()/queryFilter()client-derive-query-keys—getQueryKey()is not on the new proxy; keys come off it asqueryKey()/pathKey()/infiniteQueryKey()client-subscription-options—.useSubscription()is not on the new proxy; feedsubscriptionOptions()touseSubscriptionfrom@trpc/tanstack-react-query
2. v10 → v11 Drift
mig-formdata-is-native— All sixexperimental_*upload APIs were removed; FormData is a native input behind asplitLinkmig-renamed-type-exports—AnyRouter→AnyTRPCRouterand friends;inferRouterInputs/Outputsdid not changemig-await-get-raw-input—rawInputisundefined; inputs are lazy, soawait getRawInput()mig-typescript-version-floor— TS>=5.7.2, and an editor on a different TS silently types everything asany
3. Router & Procedure Construction
proc-narrow-ctx-in-middleware— Barenext()leavesctx.usernullable, so the guard gets cast away with!proc-input-before-use—.use()before.input()runs middleware against unvalidated inputproc-single-trpc-instance— OneinitTRPC.create()per app; mismatched instances makemergeRoutersthrow at runtimeproc-merge-only-object-inputs— Only object schemas merge; anything else silently replaces the earlier parser
Установить trpc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл trpc?
Corrects the wrong defaults a model has for tRPC v11 (verified against 11.18.0). Use when code imports initTRPC, createTRPCContext, createTRPCOptionsProxy, createTRPCReact, httpBatchLink, httpSubscriptionLink, fetchRequestHandler, or TRPCError, or when building routers, procedures, middleware, links, or RSC prefetching. Covers the v10 to v11 drift that makes stale code fail — the React client that flipped to @trpc/tanstack-react-query, transformers moving into links, renamed type exports, observable subscriptions replaced by async generators over SSE — plus the defaults that are unsafe rather than merely stale — uncapped batching, CDN cache headers that serve one user's data to another, stack traces shipped from edge runtimes, and middleware that runs before input validation. NOT for TanStack Query semantics generally (use tanstack-query), Zod schema authoring (use zod), or Next.js App Router routing (use nextjs).
Как установить скилл trpc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл trpc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic