Agent skill · Audited from source
Clerk Migration Deep Dive
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Migrate from other authentication providers to Clerk.
Cite
Cite this page
ModelsAtlas. “Clerk Migration Deep Dive (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/clerk-migration-deep-dive
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/clerk-pack/skills/clerk-migration-deep-diveThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Migrate from other authentication providers to Clerk.
--- name: clerk-migration-deep-dive description: 'Migrate from other authentication providers to Clerk. Use when migrating from Auth0, Firebase, Supabase Auth, NextAuth, or custom authentication solutions. Trigger with phrases like "migrate to clerk", "clerk migration", "switch to clerk", "auth0 to clerk", "firebase auth to clerk". ' allowed-tools: Read, Write, Edit, Bash(npm:*), Grep version: 1.15.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - clerk - migration - authentication compatibility: Designed for Claude Code --- # Clerk Migration Deep Dive ## Current State !`npm list @auth0/nextjs-auth0 next-auth @supabase/auth-helpers-nextjs firebase 2>/dev/null | grep -E "auth0|next-auth|supabase|firebase" || echo 'No auth providers detected'` ## Overview Comprehensive guide to migrating from Auth0, Firebase Auth, Supabase Auth, or NextAuth to Clerk. Covers user data export, bulk import, parallel running, and phased migration. ## Prerequisites - Current auth provider access with admin/export permissions - Clerk account with API keys - Git repository with clean working state - Migration timeline planned (recommend 2-4 weeks) ## Instructions ### Step 1: Export Users from Current Provider **Auth0 Export:** ```bash # Export users via Auth0 Management API curl -s -H "Authorization: Bearer $AUTH0_TOKEN" \ "https://$AUTH0_DOMAIN/api/v2/users?per_page=100&page=0" \ | jq '[.[] | {email: .email, name: .name, picture: .picture, created_at: .created_at}]' \ > auth0-users.json ``` **NextAuth (Prisma) Export:** ```typescript // scripts/export-nextauth-users.ts const users = await prisma.user.findMany({ include: { accounts: true }, }) const exported = users.map((u) => ({ email: u.email, name: u.name, image: u.image, provider: u.accounts[0]?.provider, createdAt: u.createdAt, })) await fs.writeFile('nextauth-users.json', JSON.stringify(exported, null, 2)) ``` ### Step 2: Import Users to Clerk ```typescript // scripts/import-to-clerk.ts import { createClerkClient } from '@clerk/backend' import users from './auth0-users.json' const clerk = createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY! }) interface MigrationResult { email: string status: 'created' | 'exists' | 'error' clerkId?: string error?: string } async function importUsers(): Promise<MigrationResult[]> { const results: MigrationResult[] = [] for (const user of users) { try { const created = await clerk.users.createUser({ emailAddress: [user.email], firstName: user.name?.split(' ')[0], lastName: user.name?.split(' ').slice(1).join(' '), skipPasswordRequirement: true, // User will set password on first sign-in }) results.push({ email: user.email, status: 'created', clerkId: created.id }) console.log(`Created: ${user.email} -> ${created.id}`) } catch (err: any) { if (err.status === 422) { results.push({ email: user.email, status: 'exists' }) } else { results.push({ email: user.email, status: 'error', error: err.message }) } } // Respect rate limits await new Promise((resolve) => setTimeout(resolve, 100)) } return results } importUsers().then((results) => { const summary = { total: results.length, created: results.filter((r) => r.status === 'created').length, exists: results.filter((r) => r.status === 'exists').length, errors: results.filter((r) => r.status === 'error').length, } console.log('Migration summary:', summary) fs.writeFileSync('migration-results.json', JSON.stringify(results, null, 2)) }) ``` ### Step 3: Update Database References ```typescript // scripts/update-db-references.ts import { createClerkClient } from '@clerk/backend' const clerk = createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY! }) async function updateDatabaseReferences() { // Get all users from your database const dbUsers = await db.user.findMany() for (const dbUser of dbUsers) { // Find corresponding Clerk user by email const clerkUsers = await clerk.users.getUserList({ emailAddress: [dbUser.email], }) if (clerkUsers.totalCount > 0) { const clerkUser = clerkUsers.data[0] await db.user.update({ where: { id: dbUser.id }, data: { clerkId: clerkUser.id, // Keep old auth ID for rollback legacyAuthId: dbUser.authProviderId, }, }) console.log(`Mapped: ${dbUser.email} -> ${clerkUser.id}`) } } } ``` ### Step 4: Replace Auth Code (NextAuth to Clerk Example) ```typescript // BEFORE: NextAuth // import { getServerSession } from 'next-auth' // import { authOptions } from '@/lib/auth' // const session = await getServerSession(authOptions) // const userId = session?.user?.id // AFTER: Clerk import { auth } from '@clerk/nextjs/server' const { userId } = await auth() ``` ```typescript // BEFORE: NextAuth client hook // import { useSession } from 'next-auth/react' // const { data: session } = useSession() // AFTER: Clerk client hook import { useUser } from '@clerk/nextjs' const { user, isLoaded } = useUser() ``` ```typescript // BEFORE: NextAuth middleware // export { default } from 'next-auth/middleware' // export const config = { matcher: ['/dashboard(.*)'] } // AFTER: Clerk middleware import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server' const isProtected = createRouteMatcher(['/dashboard(.*)']) export default clerkMiddleware(async (auth, req) => { if (isProtected(req)) await auth.protect() }) ``` ### Step 5: Parallel Running (Optional Safety Net) ```typescript // lib/auth-bridge.ts — run both auth systems during transition import { auth as clerkAuth } from '@clerk/nextjs/server' export async function getAuthUser() { // Try Clerk first (new system) const { userId: clerkUserId } = await clerkAuth() if (clerkUserId) { return { provider: 'clerk', userId: clerkUserId } } // Fall
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/clerk-migration-deep-dive/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/clerk-migration-deep-dive/)
<a href="https://modelsatlas.com/skills/jeremylongshore/clerk-migration-deep-dive/"><img src="https://modelsatlas.com/skills/jeremylongshore/clerk-migration-deep-dive/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Clerk Migration Deep Dive
What does the Clerk Migration Deep Dive skill do?
Is Clerk Migration Deep Dive safe to install?
What can Clerk Migration Deep Dive access on my machine?
Which assistants does Clerk Migration Deep Dive work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Clerk Migration Deep Dive skill do?
- Is Clerk Migration Deep Dive safe to install?
- What can Clerk Migration Deep Dive access on my machine?