trpc
tRPC — end-to-end type-safe APIs with routers, procedures, middleware, context, React Query.
от skeletorflet★ 48 звёзд на GitHub
Установить trpc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
trpc
Routers & Procedures
t.router({ user: t.procedure.query(...) })— define API surface.- Procedures:
.query()for reads,.mutation()for writes,.subscription()for real-time events. - Input validation:
t.procedure.input(z.string()).query(...)— auto-inferred types. .output(z.object({...}))— validate and type response shape.
Middleware & Context
t.middleware(async ({ ctx, next }) => { ... return next({ ctx: enriched }) })— pipeline.- Context:
router.createContext()— per-request initialization (auth, DB, session). - Per-procedure middleware via
.use(middleware)chaining.
Error Handling
TRPCError—new TRPCError({ code: 'NOT_FOUND', message: '...' })with typed codes.- Error formatting:
router.formatError(({ shape, error }) => ...)— customize error shape. - Error filtering by code in client
onErrorcallbacks.
React Query Integration
- Auto-generated hooks:
trpc.user.useQuery(args),.useMutation(),.useUtils().invalidate(). - SSR:
trpcNext.createSSGHelpers()ortrpcNext.withTRPC()HOC for Next.js. - Server-side calls:
caller = router.createCaller(ctx)— invoke without HTTP.
Adapters
- HTTP:
@trpc/server/adapters/express,@trpc/server/adapters/next,@trpc/server/adapters/fastify. - Standalone:
@trpc/server/adapters/standalonefor Node http server. - AWS Lambda:
@trpc/server/adapters/aws-lambda.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл trpc?
tRPC — end-to-end type-safe APIs with routers, procedures, middleware, context, React Query.
Как установить скилл trpc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл trpc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…