
Description
clerk-react-patterns is an agent skill from Clerk's skills collection, listed on skills.sh. It guides an AI agent in adding authentication to a React single-page app built with Vite or Create React App, using the @clerk/react package. The skill covers the ClerkProvider setup, the useAuth, useUser and useClerk hooks, protected routes with React Router, and custom sign-in and sign-up forms. Each topic has its own reference file, so the agent can load only the part of the guide that matches the task. Routing with React Router v6 and v7 is covered in a separate router integration reference. The skill points to other pattern skills for Next.js and TanStack Start, so it is meant only for client-side React apps built with Vite or CRA. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh, and its security audits show Pass for Gen Agent Trust Hub, Socket and Snyk. The skill is intended for developers adding sign-in to a React front end.…
Highlights
- ClerkProvider setup for Vite and CRA apps
- useAuth, useUser and useClerk hook guidance
- Protected routes with React Router
- Custom sign-in and sign-up forms
Ratings & Reviews
No ratings yet
Be the first to rate clerk-react-patterns.
People also visit
clerk-react-patterns FAQ
What does the clerk-react-patterns skill do?
It helps an AI agent add Clerk authentication to a React single-page app built with Vite or Create React App.
How do I install it?
Run: npx skills add https://github.com/clerk/skills --skill clerk-react-patterns
Is it free?
Yes. The skill is listed as free on skills.sh.
Does it work with Next.js?
No. The skill says Next.js has its own Clerk skill, clerk-nextjs-patterns, and TanStack Start has clerk-tanstack-patterns.
Which router versions does it cover?
The skill includes a router integration reference for React Router v6 and v7.
Which security audits does it pass?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best clerk-react-patterns alternatives?
Popular alternatives to clerk-react-patterns include clerk-tanstack-patterns, clerk-react-router-patterns and auth0-react. See all clerk-react-patterns alternatives







