
Description
clerk-react-router-patterns is an agent skill from the clerk/skills collection, listed on skills.sh. It gives an AI agent patterns for using Clerk authentication in React Router applications, for React Router v7.9 and later and v8, with the @clerk/react-router SDK at version 3.5 or later. The listed topics include rootAuthLoader, getAuth in loaders, clerkMiddleware, protected routes, server-rendered user data and sessions, and organization switching. A quick table maps tasks to reference notes covering auth in loaders and actions, protected routes and redirects, and SSR user data and sessions. The skill tells the agent to check the installed react-router major version before scaffolding a project, because the configuration differs between v7 and v8. The skill is a SKILL.md file of instructions that an agent loads only when a task calls for it. The listing shows the skill as free, and its audits all show Pass results.…
Highlights
- Auth in loaders, actions and protected routes
- rootAuthLoader and clerkMiddleware patterns
- Server-rendered user data and sessions
- Supports React Router v7.9+ and v8
Ratings & Reviews
No ratings yet
Be the first to rate clerk-react-router-patterns.
People also visit

clerk-tanstack-patterns
TanStack React Start auth patterns with @clerk/tanstack-react-start

clerk-nextjs-patterns
Advanced Next.js patterns for authentication, middleware, Server Actions

auth0-react
Adding Auth0 login, logout, protected routes, or user sessions to a React SPA
clerk-react-router-patterns FAQ
What does the clerk-react-router-patterns skill do?
It helps an AI agent add Clerk authentication to a React Router app, following the patterns the skill lists.
How do I install it?
Run: npx skills add https://github.com/clerk/skills --skill clerk-react-router-patterns
Which versions does it support?
React Router v7.9 and later, and v8, with @clerk/react-router version 3.5 or later.
Does v7 differ from v8?
Yes. The skill says the configuration differs, so check the installed react-router major version before scaffolding.
What can it help with?
Auth in loaders and actions, protected routes and redirects, SSR user data and sessions, and organization switching.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best clerk-react-router-patterns alternatives?
Popular alternatives to clerk-react-router-patterns include clerk-react-patterns, clerk-tanstack-patterns and clerk-nextjs-patterns. See all clerk-react-router-patterns alternatives






