Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 68
  • 526 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-auth

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clerk-auth in Claude Code

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

A

No 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 →

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.

clerk-auth Install

Add to stack

Loading.