Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clerk-migration-deep-dive

Skill by jeremylongshore

Guides an AI assistant through migrating user accounts from Auth0, Firebase Auth, Supabase Auth, NextAuth, or custom auth to Clerk. Covers user export, bulk import, database ID mapping, and code replacement.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clerk-migration-deep-dive

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clerk-migration-deep-dive ~/.claude/skills/clerk-migration-deep-dive

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clerk-migration-deep-dive in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The Clerk Migration Deep Dive skill walks through moving users from Auth0, Firebase Auth, Supabase Auth, NextAuth, or custom authentication to Clerk. It covers exporting users from the current provider, bulk importing them into Clerk with a delay between requests and error handling, and mapping old auth IDs to Clerk IDs in the database. It also includes examples for replacing NextAuth server, client, and middleware code with Clerk equivalents.

The skill adds a parallel-running bridge that tries Clerk first and can fall back to the legacy system during a migration window. It includes a script to find unmapped users and a cleanup checklist for removing old auth packages and columns. The source recommends a migration timeline of 2 to 4 weeks. It is aimed at developers planning to move an existing app to Clerk.

Written from the project's SKILL.md and checked against it.

What it can do

  • User exportExports users from Auth0 via the Management API or from NextAuth users in Prisma.
  • Bulk importCreates Clerk users from exported data with rate limiting and error handling.
  • Database mappingStores Clerk IDs next to legacy auth IDs so the old IDs stay available for rollback.
  • NextAuth code replacementShows how to swap NextAuth session, hook, and middleware code for Clerk.
  • Parallel running bridgeChecks Clerk first and falls back to the legacy session during the transition.
  • Migration verificationCounts mapped and unmapped users and lists the unmapped emails.
  • Cleanup checklistLists packages, files, and database columns to remove after migration is verified.

What you need

  • Clerk account with API keys
  • Admin or export access to the current auth provider
  • Git repository with a clean working state
  • Node.js and npm for the scripts

Try asking

  • Help me export users from Auth0 for a migration to Clerk.
  • Write a Clerk bulk import script that maps old auth IDs to Clerk IDs.
  • Replace my NextAuth getServerSession calls with Clerk auth().

Good to know

  • Passwords cannot be migrated, so users must set a new password on first sign-in.
  • OAuth accounts must be re-linked by users on their first Clerk sign-in.
  • The source includes export code for Auth0 and NextAuth only, not Firebase.
  • Cleanup should wait until the migration is verified, which the source says is 2+ weeks in production.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/clerk-migration-deep-dive/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(npm:*)Grep

Alternatives to clerk-migration-deep-dive

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

clerk-migration-deep-dive: common questions

Can user passwords be moved from Auth0 or NextAuth to Clerk?

The source says passwords are hashed and cannot be migrated. The import sets skipPasswordRequirement, and users set a new password on first sign-in.

What happens to social login accounts during the migration?

The source says social login tokens are non-transferable. Users re-link their OAuth accounts on the first Clerk sign-in.

How does the skill support rollback?

The database update keeps the old auth provider ID in a legacyAuthId field, so the previous ID is still available if needed.

How do I install clerk-migration-deep-dive?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clerk-migration-deep-dive free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clerk-migration-deep-dive safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clerk-migration-deep-dive?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

clerk-migration-deep-dive Install

Add to stack

Loading.