skeletorflet/opencode-supreme-setup/trpc

Claude Code and agent skill by skeletorflet/opencode-supreme-setup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

tRPC — end-to-end type-safe APIs with routers, procedures, middleware, context, React Query.

Install

npx vskill@latest install skeletorflet/opencode-supreme-setup/trpc

SKILL.md

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 onError callbacks.
React Query Integration
  • Auto-generated hooks: trpc.user.useQuery(args), .useMutation(), .useUtils().invalidate().
  • SSR: trpcNext.createSSGHelpers() or trpcNext.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/standalone for Node http server.
  • AWS Lambda: @trpc/server/adapters/aws-lambda.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
48
Repository forks
2
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/skeletorflet/opencode-supreme-setup/trpc/badge)](https://verified-skill.com/skills/skeletorflet/opencode-supreme-setup/trpc)

Something wrong with this skill or its page? Tell us.