
clerk-tanstack-patterns
TanStack React Start auth patterns with @clerk/tanstack-react-start
by clerkFree
Description
clerk-tanstack-patterns is an agent skill from the clerk/skills collection, listed on skills.sh. It gives an AI agent authentication patterns for TanStack React Start, using the @clerk/tanstack-react-start package. Its topics include createServerFn, beforeLoad guards, loaders, the Vite plugin and server middleware. The skill's quick guide maps common tasks to reference notes: protecting routes with a beforeLoad auth redirect, calling auth() inside createServerFn server functions, passing auth state to loaders, and configuring Vite with Clerk middleware. Each reference note covers its task in more depth, including the auth context available in loaders and the Vite and request middleware setup. The skill is meant to be loaded when an agent works on authentication in a TanStack React Start project. The listing shows it as free, and its audits all show Pass results. The skill is published in the clerk/skills repository on GitHub, which holds other Clerk skills too.…
Highlights
- beforeLoad route guards and auth redirects
- Auth inside createServerFn server functions
- Auth context for loaders
- Vite and server middleware setup
Ratings & Reviews
No ratings yet
Be the first to rate clerk-tanstack-patterns.
People also visit
clerk-tanstack-patterns FAQ
What does the clerk-tanstack-patterns skill do?
It helps an AI agent add Clerk authentication to a TanStack React Start project.
How do I install it?
Run: npx skills add https://github.com/clerk/skills --skill clerk-tanstack-patterns
How are routes protected?
The skill covers protecting routes with a beforeLoad guard that redirects unauthenticated users.
Can I check auth in server functions?
Yes. The skill covers calling auth() inside createServerFn.
What setup does it cover?
Configuring Vite with Clerk middleware and server middleware.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best clerk-tanstack-patterns alternatives?
Popular alternatives to clerk-tanstack-patterns include clerk-react-patterns, clerk-react-router-patterns and tanstack-start-best-practices. See all clerk-tanstack-patterns alternatives







