clerk/skills · Official

clerk-nextjs-patterns

Advanced Next.js patterns - middleware, Server Actions, caching with Clerk.

All-time #645 Trending #1225 First seen Jan 30, 2026
8-week activity · all time api

Installation

$ npx skills add https://github.com/clerk/skills
Feature your product here Skill page unit · reach builders installing agent skills View pricing →

Summary

  • Advanced Next.js patterns for authentication, middleware, Server Actions, and user-scoped caching with Clerk.
  • 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

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Security audits

Partner security reviews for this skill.

agent-trust-hub Reviewed

Analyzed Oct 7, 2026

snyk Reviewed

Analyzed Oct 7, 2026

socket Score 0.9000 · 0 alerts

Analyzed Oct 7, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from clerk/skills · top by installs.

npx skills add https://github.com/clerk/skills

Browse all from clerk/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 71
License MIT
Default branch main
Open issues 2
Status Active

History

  1. First seen on skills.sh
  2. First recorded snapshot · 41,700 installs