This covers the fundamentals of integrating Clerk into Next.js App Router projects, from initial setup through route protection and accessing user data. You get patterns for middleware-based auth, server component authentication with auth() and currentUser(), and client-side hooks like useUser(). The anti-patterns are helpful, specifically calling out common mistakes like not awaiting auth() in server components or using currentUser() when you just need a userId check. It's practical if you're adding Clerk to a Next.js 14/15 project and want to avoid the typical setup mistakes. The examples are complete enough to copy and adapt without digging through docs.

skills.sh installs
767
GitHub stars
43.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill clerk-auth --agent claude-code

Installs into .claude/skills of the current project.

Files

Clerk Authentication

Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use

  • User mentions or implies: adding authentication
  • User mentions or implies: clerk auth
  • User mentions or implies: user authentication
  • User mentions or implies: sign in
  • User mentions or implies: sign up
  • User mentions or implies: user management
  • User mentions or implies: multi-tenancy
  • User mentions or implies: organizations
  • User mentions or implies: sso
  • User mentions or implies: single sign-on

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Backend & APIs
First seen
May 16, 2026

More from sickn33/antigravity-awesome-skills

All 708
1mindrally avatargo-api-developmentmindrally/skillsGo API development guidelines using the standard library (1.22+) with best practices for RESTful API design, error handling, and security750skills.sh installs
2skillcreatorai avatarbackend-developmentskillcreatorai/ai-agent-skillsbackend development749skills.sh installs
3joeseesun avatarqiaomu-markdown-proxyjoeseesun/markdown-proxymarkdown proxy732skills.sh installs
4yoanbernabeu avatarsupabase-pentestyoanbernabeu/supabase-pentest-skillsOrchestrate a complete Supabase security audit with guided step-by-step execution and ownership confirmation.725skills.sh installs
5mindrally avatarauth0-authenticationmindrally/skillsGuidelines for implementing Auth0 authentication with best practices for security, rules, actions, and SDK integration724skills.sh installs
6honra-io avatardrizzle-best-practiceshonra-io/drizzle-best-practicesdrizzle best practices710skills.sh installs