
Description
clerk-astro-patterns is an agent skill from the clerk/skills collection, listed on skills.sh. It gives an AI agent patterns for using Clerk authentication in Astro apps, for the @clerk/astro SDK at version 4 or later with Astro 5 or later. The skill is organized by task. It covers configuring middleware with a bare clerkMiddleware call that checks each page, protecting server-rendered pages, using Clerk in island components, adding auth to API routes, and using Clerk with React inside Astro. It explains a mental model that matters for auth: Astro renders each page either on the server or as a static prerender, and Clerk behaves differently in each mode. A quick table maps each task to the matching reference note, so the agent reads only what it needs. The skill is a SKILL.md file of instructions that an agent loads only when a task calls for it.…
Highlights
- Clerk middleware for Astro
- Protected server-rendered pages
- Auth in island components and API routes
- Notes on SSR versus static rendering
Ratings & Reviews
No ratings yet
Be the first to rate clerk-astro-patterns.
People also visit
clerk-astro-patterns FAQ
What does the clerk-astro-patterns skill do?
It helps an AI agent add Clerk authentication to an Astro app using the patterns the skill lists.
How do I install it?
Run: npx skills add https://github.com/clerk/skills --skill clerk-astro-patterns
Which versions does it need?
The @clerk/astro SDK version 4 or later, with Astro 5 or later, according to the skill.
Why does rendering mode matter?
The skill says Astro renders pages either on the server or as static prerenders, and Clerk works differently in each.
What are the best clerk-astro-patterns alternatives?
Popular alternatives to clerk-astro-patterns include clerk-nextjs-patterns, clerk-nuxt-patterns and clerk-tanstack-patterns. See all clerk-astro-patterns alternatives





