Clerk Next.js Patterns
Skill VerificatoAdvanced Next.js patterns - middleware, Server Actions, caching with Clerk.
This skill provides detailed guidance and code examples for implementing advanced authentication patterns in Next.js applications using Clerk. It covers key areas such as server components, middleware strategies, server actions, API route protection, and user-scoped caching, with a focus on secure and efficient implementation.
Documentation
- info:Configuration & parameter referenceWhile the documentation covers various patterns and provides code examples, it does not explicitly list default values for all parameters or detail the precedence order of configuration files beyond mentioning environment variables.
Code Execution
- info:ValidationThe skill provides code examples that demonstrate good practices for handling inputs (like form data and route parameters) within Next.js and Clerk, but does not explicitly reference a schema validation library for all parameters.
Installazione
Aggiungi prima il marketplace
/plugin marketplace add clerk/skills/plugin install frameworks@clerk-skillsEstensioni simili
Clerk Organizations
98Clerk Organizations for B2B SaaS - create multi-tenant apps with org switching, role-based access, verified domains, and enterprise SSO. Use for team workspaces, RBAC, org-based routing, member management.
TanStack React Start Patterns
98TanStack React Start auth patterns with @clerk/tanstack-react-start - createServerFn, beforeLoad guards, loaders, Vinxi server. Triggers on: TanStack auth, createServerFn clerk, beforeLoad protection, TanStack Start middleware.
Clerk React Router Patterns
98React Router v7 patterns with Clerk — rootAuthLoader, getAuth in loaders, clerkMiddleware, protected routes, SSR user data, org switching. Triggers on: react-router auth, rootAuthLoader, getAuth loader, react-router protected route, loader authentication, SSR auth react-router.
Clerk Custom UI
96Custom authentication flows and component appearance - hooks (useSignIn, useSignUp), themes, colors, fonts, CSS. Use for custom sign-in/sign-up flows, appearance styling, visual customization, branding.
Vue Patterns
98Vue 3 patterns with Clerk — composables (useAuth, useUser, useClerk, useOrganization), Vue Router guards, Pinia auth store integration. Triggers on: vue clerk, useAuth vue, clerk composables, vue router clerk guard, pinia auth clerk. For Nuxt, use clerk-nuxt-patterns instead.
Clerk Astro Patterns
98Astro patterns with Clerk — middleware, SSR pages, island components, API routes, static vs SSR rendering. Triggers on: astro clerk, clerk astro middleware, astro protected page, clerk island component, astro API route auth, clerk astro SSR.