clerk-setup

Detect JavaScript frameworks and configure Clerk authentication with SDKs and environment variables.

1|Updated Jun 13, 2017
One-click install
npx skills add https://github.com/RoyMcCrain/dotsfile --skill clerk-setup-roymccrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-setup
Source: https://github.com/RoyMcCrain/dotsfile/tree/main/claude/skills/clerk-setup
Command: npx skills add https://github.com/RoyMcCrain/dotsfile --skill clerk-setup-roymccrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a clear, reproducible way to add Clerk authentication to web and backend projects, removing uncertainty about which packages, middleware, and configuration are required.

Core Features & Use Cases

  • Framework detection: Reads package.json to determine the framework and select the correct Clerk quickstart for Next.js, Remix, Astro, Nuxt, React SPA, Express, Expo, and similar environments.
  • Official quickstart retrieval: Fetches the framework-specific quickstart from Clerk documentation and extracts installation steps, file paths, and code snippets.
  • Scaffold and configure: Installs the appropriate Clerk SDK, creates provider or middleware files, updates environment variables with publishable and secret keys, and provides migration guidance from existing auth systems.
  • Use Case: Add authentication to a Next.js app with the app router, create middleware/proxy and a root provider placement inside the body, and configure .env variables for development and production.

Quick Start

Ask the skill to detect the project's framework, fetch Clerk's official quickstart, install the correct Clerk packages, scaffold provider or middleware files, and configure the required environment variables for your project.

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 project?

Adding Clerk authentication to a Next.js project involves detecting the framework, installing the Clerk SDK, scaffolding middleware and root providers, and updating environment variables with your API keys.

Does Clerk authentication work with Remix, Astro, and Express?

Clerk authentication works with Remix, Astro, Nuxt, React SPA, Express, and Expo. The Skill reads package.json to identify the framework and applies the corresponding official quickstart steps to configure auth.

What is the process for scaffolding Clerk middleware and providers?

Scaffolding Clerk middleware and providers involves fetching framework-specific documentation, creating the necessary middleware or proxy files, placing root providers inside the body, and configuring environment variables for development and production.

Can I migrate from an existing auth system to Clerk?

You can migrate from an existing auth system to Clerk. The Skill installs the appropriate Clerk packages, scaffolds the required configuration files, and provides migration guidance to transition your authentication setup smoothly.

How to configure Clerk environment variables for publishable and secret keys?

Configuring Clerk environment variables requires updating your .env file with both publishable and secret keys. The Skill automates this configuration step for development and production environments after installing the SDK.

Why does my Clerk setup need framework detection from package.json?

Clerk setup needs framework detection from package.json to determine the correct SDK and quickstart steps for your specific environment. This ensures the appropriate packages are installed and the right middleware or provider files are scaffolded.