clerk-nextjs-patterns
Best practices and implementation patterns for Clerk authentication in Next.js applications.
Install
npx skills add https://github.com/clerk/skills --skill clerk-nextjs-patternsStats
| Total installs | 5,682 |
| Weekly installs | 5.7K |
| GitHub stars | 30 |
| First seen | Jan 30, 2026 |
| Source | @clerk/skills |
Summary
- Distinguishes server-side await auth() from client-side useAuth() hook; mixing them is a common breaking mistake
- Covers middleware strategies (public-first vs protected-first), API route protection, and proper HTTP status codes (401 vs 403)
- Includes user-scoped caching patterns with unstable_cache and protecting Server Actions from unauthorized mutations
- Provides Core 2 compatibility notes throughout; check package.json for SDK version and follow version-specific guidance on isAuthenticated, sessionStatus, and component APIs
Tags
Related skills
| Skill | Installs | vs clerk-nextjs-patterns |
|---|---|---|
| create-web-form | 6,977 | +1,295 |
| github-actions-templates | 6,013 | +331 |
| organization-best-practices | 6,282 | +600 |
| auth-implementation-patterns | 4,538 | -1,144 |
| email-and-password-best-practices | 6,768 | +1,086 |
FAQ
- How many installs does clerk-nextjs-patterns have?
- clerk-nextjs-patterns has 5,682 total installs and 5.7K installs this week.
- Where is clerk-nextjs-patterns hosted?
- clerk-nextjs-patterns is published by @clerk/skills at https://github.com/clerk/skills.
- How many GitHub stars does clerk-nextjs-patterns have?
- clerk-nextjs-patterns has 30 GitHub stars.
- When was clerk-nextjs-patterns first indexed?
- OrangeBot.AI first indexed clerk-nextjs-patterns on Jan 30, 2026.
- How do I install clerk-nextjs-patterns?
- Run: npx skills add https://github.com/clerk/skills --skill clerk-nextjs-patterns