$npx skillfedfor your agent

Clerk Tanstack Patterns

This skill covers authentication patterns for TanStack React Start, showing how to protect routes with beforeLoad guards, implement auth in server functions, and configure Clerk middleware on Vinxi. Learn the mental model of two-layer auth flow and avoid common setup mistakes.

Clerk Tanstack Patterns demonstrates how to integrate Clerk authentication with TanStack React Start using server functions and route guards.

AI-generated summary based on this skill's SKILL.md

63 4 unlicensed, metadata onlyupdated by clerk

Decision gist · record as of 2026-07-23

Clerk Tanstack Patterns demonstrates how to integrate Clerk authentication with TanStack React Start using server functions and route guards. This skill covers authentication patterns for TanStack React Start, showing how to protect routes with beforeLoad guards, implement auth in server functions, and configure Clerk middleware on Vinxi. Learn the mental model of two-layer auth flow and avoid common setup mistakes.

manual: git clone https://github.com/clerk/skills → cp -r skills ~/.claude/skills/clerk-tanstack-patterns

Use it when

  • Clerk Tanstack Patterns emphasizes two key layers: route protection via beforeLoad guards and server-side auth validation in functions.
  • Clerk Tanstack Patterns provides code examples for integrating Clerk with TanStack React Start.
Same gist for agents: .md · .json

Install

clerk/skills/clerk-tanstack-patterns · repository language: Shell

generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to use Clerk and Tanstack together?

Clerk Tanstack Patterns teaches integration between Clerk authentication and TanStack React Start. The skill covers protecting routes using beforeLoad guards, implementing auth within server functions, and configuring Clerk middleware on Vinxi. You'll learn a two-layer auth flow mental model that separates client and server concerns, enabling secure authenticated data fetching across your application.

What are Clerk authentication patterns for Tanstack?

Clerk Tanstack Patterns emphasizes two key layers: route protection via beforeLoad guards and server-side auth validation in functions. The skill demonstrates how to configure Clerk middleware on Vinxi to intercept requests, validate tokens server-side, and prevent common setup mistakes. This architecture ensures auth checks happen at both entry points and data boundaries.

Can you show Clerk Tanstack example code?

Clerk Tanstack Patterns provides code examples for integrating Clerk with TanStack React Start. Examples cover beforeLoad route guards for client-side protection, server function implementations with auth checks, and Vinxi middleware configuration. The skill walks through real patterns rather than isolated snippets, showing how pieces fit into a complete auth flow.

What are best practices for Clerk + Tanstack patterns?

Clerk Tanstack Patterns highlights best practices including: implementing two-layer auth (route + server function), using beforeLoad guards to protect routes early, validating auth state in server functions before data access, and properly configuring Clerk middleware on Vinxi. The skill helps you avoid common setup mistakes by teaching the mental model behind secure auth architecture.

How do I set up authenticated data fetching with Clerk and Tanstack?

Clerk Tanstack Patterns covers setup by showing how to protect routes with beforeLoad guards, then validate auth in server functions where data fetching happens. Configure Clerk middleware on Vinxi to handle token validation at the infrastructure level. This layered approach ensures only authenticated users reach protected data endpoints and server functions execute with verified auth context.

What is the mental model for Clerk Tanstack auth flow?

Clerk Tanstack Patterns teaches a two-layer auth flow: the first layer uses beforeLoad guards to protect route entry, preventing unauthenticated users from accessing pages. The second layer validates auth in server functions before sensitive operations. This separation ensures client-side UX flows smoothly while server-side remains secure, with Clerk middleware on Vinxi enforcing token validity across requests.

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Learn integration patterns between Clerk auth and Tanstack Query”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Clerk React Router Patterns
by clerk · clerk/skills

Master Clerk authentication in React Router v7 and v8 apps with server-side loaders, middleware integration, and protected route patterns. This skill covers rootAuthLoader setup, getAuth usage in loaders and actions, client-side hooks, organization switching, and common SSR pitfalls specific to each React Router version.

no license declared → metadata onlyupdated Jul 2026
★ 63repo stars
Clerk Setup
by clerk · clerk/skills

Clerk Setup guides you through adding Clerk authentication to any project by detecting your framework and following official quickstart instructions. The skill supports CLI-driven provisioning for new and existing apps, automatic key generation via Keyless, or manual Dashboard configuration. It covers Next.js, React, Vue, Nuxt, Astro, React Router, TanStack Start, Express, Fastify, Expo, and other platforms.

no license declared → metadata onlyupdated Jul 2026
★ 63repo stars
bun-tanstack-start
by secondsky · secondsky/claude-skills

Bun TanStack Start enables you to build full-stack React applications using TanStack's framework paired with Bun's runtime. It provides file-based routing, server functions for backend logic, and API route handling out of the box.

MITupdated Jul 2026
★ 196repo stars
Clerk Nextjs Skills
by gocallum · gocallum/nextjs16-agent-skills

Integrate Clerk's authentication system into Next.js 16 applications via proxy.ts configuration, environment setup, and ClerkProvider integration. Protect routes, access user data in server and client components, and migrate from Next.js 15's middleware.ts pattern. Includes MCP server setup for AI agent integration.

no license declared → metadata onlyupdated Jan 2026
★ 22repo stars
Tanstack Start
by oakoss · oakoss/agent-skills

Tanstack Start combines React with TanStack Router to build full-stack applications featuring type-safe RPC server functions, server-side rendering with streaming, and middleware composition. Deploy to Cloudflare Workers, Vercel, Netlify, AWS Lambda, and other platforms with built-in support for authentication, API routes, and session management.

no license declared → metadata onlyupdated Mar 2026
★ 13repo stars
tanstack-start
by tanstack-skills · tanstack-skills/tanstack-skills

TanStack Start is a full-stack React framework built on TanStack Router, Vite, and Nitro that enables server-side rendering, streaming, and type-safe server functions for building modern applications. Deploy to any platform using Nitro presets including Vercel, Netlify, Cloudflare, AWS Lambda, and self-hosted Node.js environments.

MITupdated Jan 2026
★ 30repo stars

More skills Clerk (unlicensed) · Clerk React Patterns (unlicensed) · Clerk Validator (unlicensed) · Clerk Nuxt Patterns (unlicensed) · Tanstack Start (unlicensed) · tanstack-vue-router-skilld (MIT) · Clerk Vue Patterns (unlicensed) · Clerk Chrome Extension Patterns (unlicensed)

Tags
auth-integrationdata-fetchingquery-patternsreact-ecosystemapi-client-setup