Clerk Astro Patterns
Skill VerifiedAstro 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.
This skill demonstrates how to configure Clerk's authentication middleware and hooks within an Astro project. It provides detailed code examples for securing SSR pages and API routes, utilizing client-side authentication in React islands, and handling different rendering modes. The extension also clarifies crucial setup steps for Astro configuration and environment variables.
Installation
First, add the marketplace
/plugin marketplace add clerk/skills/plugin install frameworks@clerk-skillsSimilar Extensions
Clerk Setup
97Add Clerk authentication to any project by following the official quickstart guides.
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.
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.
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 Expo Patterns
98Expo / React Native patterns with Clerk — SecureStore token cache, OAuth deep linking, useAuth in native, Expo Router protected routes, push notifications with user context. Triggers on: expo clerk, clerk react native, SecureStore token cache, expo router auth, OAuth deep link clerk, mobile auth clerk.
Clerk Nuxt Patterns
98Nuxt 3 auth patterns with @clerk/nuxt - middleware, composables, server API routes, SSR. Triggers on: Nuxt auth, useAuth composable, clerkMiddleware Nuxt, server API Clerk, Nuxt route protection.