clerk/skills · Official

clerk-nextjs-patterns

All-time #578 Trending #578 Hot #6488 First seen Jan 30, 2026
8-week activity · all time api

Installation

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

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 SAFE

Analyzed May 9, 2026

This skill provides secure coding patterns and best practices for integrating Clerk authentication into Next.js. It includes critical guidance on avoiding data leaks in shared caches and correctly verifying tokens. A potential surface for indirect prompt injection is identified in the server action templates, where external form data is processed.

snyk LOW

Analyzed May 9, 2026

No issues detected.

socket Score 0.9000 · 0 alerts

Analyzed May 9, 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