clerk-setup

Add Clerk authentication to web apps and APIs by framework.

Updated Jun 20, 2026
One-click install
npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-setup-sudarshan-krishnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-setup
Source: https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026/tree/main/app/.agents/skills/clerk-setup
Command: npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-setup-sudarshan-krishnan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork from adding Clerk authentication by guiding you through the right setup path for your framework, existing auth system, and deployment environment.

Core Features & Use Cases

  • Framework-aware setup: Handles Next.js, React SPA, Express, Astro, Nuxt, and other supported app types with the correct Clerk package and integration pattern.
  • Migration support: Helps teams move from NextAuth, Auth0, Supabase Auth, Firebase Auth, or custom sessions without losing users or breaking sign-in flows.
  • Practical implementation: Covers provider placement, middleware or route protection, environment variables, and optional shadcn styling so auth works cleanly in real projects.

Quick Start

Ask the AI to inspect your app, identify the framework, install the correct Clerk integration, wire up authentication, and configure the required environment variables and route protection.

Frequently Asked Questions about clerk-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Clerk authentication to a Next.js app?

Adding Clerk authentication to a Next.js app requires installing the correct Clerk integration package, wiring up the provider, applying route protection middleware, and configuring publishable and secret key environment variables.

Can I migrate users from NextAuth or Firebase Auth to Clerk?

Yes, you can migrate users from NextAuth, Firebase Auth, Auth0, Supabase Auth, or custom sessions to Clerk. The process guides you through transitioning existing auth systems without losing users or breaking active sign-in flows.

Does Clerk authentication work with Express APIs and Astro sites?

Yes, Clerk authentication works with Express APIs and Astro sites. The setup selects the correct framework-aware integration path, applying the necessary packages, provider wiring, and route guards for your specific environment.

What environment variables do I need to configure for Clerk setup?

Configuring Clerk setup requires environment variables including your publishable key and secret key. These keys connect your application to Clerk's authentication backend and must be properly set before route protection and provider wiring will function.

How do I protect routes when setting up Clerk authentication?

Protecting routes during Clerk authentication setup involves applying middleware or route guards specific to your framework. The integration configures these protections alongside the provider wiring to secure application endpoints properly.