clerk-auth
Skill by benjaminasterA
Provides Clerk authentication patterns for Next.js 14 and 15 App Router projects, covering setup, middleware route protection, and server-side auth state. Aimed at developers adding sign in, sign up or user authentication to a Next.js app.
Install clerk-auth
Built from the published package, never by AI.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-awesome-skills/skills/clerk-auth ~/.claude/skills/clerk-authRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/benjaminasterA/antigravity-awesome-skills /tmp/antigravity-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-awesome-skills/skills/clerk-auth ~/.gemini/antigravity-cli/skills/clerk-authAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
clerk-auth is an agent skill that gives patterns for implementing Clerk authentication in Next.js 14 and 15 App Router projects. It covers the ClerkProvider setup, environment variables, and basic sign-in and sign-up components such as SignIn, SignUp and UserButton. It also describes protecting routes with clerkMiddleware and createRouteMatcher, and reading auth state in Server Components with auth() and currentUser().
The description also mentions organizations, webhooks and user sync, but the patterns in the file do not cover them. The sharp edges table lists issues where the solution is only "See docs", so it gives no concrete guidance. The source is credited to vibeship-spawner-skills under Apache 2.0 and is listed with an unknown risk level. It is meant for developers adding authentication, sign in or sign up to a Next.js app.
Written from the project's SKILL.md and checked against it.
What it can do
- Next.js App Router setupSets up ClerkProvider, environment variables, and basic sign-in and sign-up components.
- Pre-built auth componentsUses SignIn, SignUp and UserButton for sign-in forms and user menus with session management.
- Route protectionProtects routes with clerkMiddleware, createRouteMatcher and auth.protect() in a single middleware.ts file.
- Server Component authenticationReads auth state in Server Components using auth() and currentUser().
What you need
- Next.js 14 or 15 with the App Router
- Clerk configured with clerkMiddleware for server-side auth functions
Try asking
- Set up Clerk with ClerkProvider and sign-in pages in my Next.js app
- Protect my /dashboard routes with clerkMiddleware and createRouteMatcher
- Get the current user and orgId in a Server Component using Clerk
Good to know
- Risk level is listed as unknown.
- The sharp edges table has no real content, only "See docs" entries.
- Organizations, webhooks and user sync appear only in the description, not in the patterns.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/clerk-auth/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to clerk-auth
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
clerk-auth: common questions
Which frameworks does the clerk-auth skill support?
The source describes patterns for Next.js 14 and 15 using the App Router. It does not mention other frameworks.
Does clerk-auth cover organizations and webhooks?
The description mentions organizations, webhooks and user sync, but the included patterns only cover setup, middleware and server component authentication.
Where does clerk-auth come from?
The source is credited to vibeship-spawner-skills and released under the Apache 2.0 license.
How do I install clerk-auth?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clerk-auth free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clerk-auth safe to use?
It scores 68 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 clerk-auth?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
