Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

trpc-fullstack

Skill by sickn33

Teaches an AI assistant to build end-to-end type-safe APIs with tRPC, covering routers, procedures, middleware, and Next.js and React integration. It is aimed at TypeScript developers whose client and server share one codebase.

  • Score 88
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install trpc-fullstack

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/trpc-fullstack ~/.claude/skills/trpc-fullstack

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install trpc-fullstack in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The trpc-fullstack skill guides an AI assistant through building type-safe APIs with tRPC. It covers routers, query and mutation procedures, Zod input validation, context factories, and auth middleware. It also shows how to mount the handler in a Next.js App Router route and set up a React Query client.

The skill is written for TypeScript projects where the client and server share one repository, such as Next.js apps or Express with React. It includes examples for fetching data, invalidating the cache after mutations, and calling procedures from Server Components. The source notes that type safety is not authorization, so ownership checks and scoped queries are still needed.

Written from the project's SKILL.md and checked against it.

What it can do

  • Routers and proceduresGroups query and mutation procedures into typed routers.
  • Zod input validationValidates procedure inputs with Zod schemas, typed in the handler.
  • Context factoriesBuilds separate context for Next.js App Router and direct server callers.
  • Auth middlewareProvides a protected procedure that rejects requests without a session user.
  • Cursor paginationShows a post list query that takes a limit and cursor.
  • Next.js route handlerMounts tRPC with fetchRequestHandler in an App Router route.
  • React Query clientSets up createTRPCReact with httpBatchLink and a provider.
  • Cache invalidationInvalidates a list query after a mutation succeeds.
  • Server-side callerCalls procedures from Server Components using createCallerFactory.

What you need

  • npm packages: @trpc/server, @trpc/client, @trpc/react-query, @tanstack/react-query, zod
  • A Next.js or other TypeScript project
  • An auth helper and database client of your own

Try asking

  • Set up a tRPC router with a list query and a protected create mutation
  • Add a tRPC context factory for Next.js App Router route handlers
  • Show me how to invalidate a tRPC list query after a mutation succeeds

Good to know

  • Examples need tRPC and TanStack Query versions that match each other
  • The subscription example uses a process-local emitter that does not work across replicas
  • HTTP GET and POST handlers alone do not provide WebSockets
  • Cron jobs cannot assume an auth() session exists and need an explicitly authorized context

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/trpc-fullstack/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md17 KB

Alternatives to trpc-fullstack

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

trpc-fullstack: common questions

Does tRPC need a schema or code generation step?

The source says tRPC lets you build type-safe APIs without writing a schema or a code-generation step. Types flow from the server router to the client.

Why does the skill use two context factories?

Next.js App Router handlers receive a fetch Request, not a Node.js NextApiRequest, so the context must be built differently for each call site.

Does type safety protect my API from unauthorized access?

No. The source states that type safety is not authorization, so queries and output fields must be scoped to permitted records and ownership enforced with writes.

How do I install trpc-fullstack?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is trpc-fullstack free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is trpc-fullstack safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to trpc-fullstack?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

trpc-fullstack Install

Add to stack

Loading.