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-upgrade-migration

Skill by jeremylongshore

Guides upgrades of Clerk SDK packages and handles breaking changes. It covers version checks, v5 to v6 migration steps, and rollback planning. It is for developers maintaining Clerk authentication in their projects.

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

Install clerk-upgrade-migration

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-upgrade-migration ~/.claude/skills/clerk-upgrade-migration

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

Step-by-step: install clerk-upgrade-migration in Claude Code

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

About

This skill walks an AI assistant through upgrading Clerk SDK packages such as @clerk/nextjs. It starts by checking the installed and latest versions, then reviews the Clerk changelog and GitHub releases for breaking changes. The main documented changes are the move to an async auth() call, the rename of authMiddleware to clerkMiddleware, and the new @clerk/nextjs/server import path.

The skill sets out an upgrade branch workflow, code search commands to find affected files, and a build and test checklist covering sign-in, protected routes, API routes, webhooks and sign-out. It also includes a rollback plan using git and npm. A sample bash script automates some of the v5 to v6 edits. The skill is aimed at developers who already have a working Clerk integration in a git repository.

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

What it can do

  • Check versionsCompares the installed Clerk packages with the latest available versions using npm.
  • Review breaking changesPoints to the Clerk changelog and GitHub releases for migration notes.
  • Upgrade Clerk packagesInstalls Clerk packages together so their versions match.
  • Migrate auth() callsAdds await to synchronous auth() calls required by v6.
  • Migrate middlewareShows how to replace authMiddleware with clerkMiddleware and route protection.
  • Fix import pathsFinds imports from @clerk/nextjs that should use @clerk/nextjs/server.
  • Update type definitionsShows how to update custom AuthObject type extensions.
  • Plan rollbackDescribes restoring the previous package version through git and npm.

What you need

  • Node.js and npm
  • An existing working Clerk integration
  • A git repository with a clean working state
  • A test environment for validation

Try asking

  • Upgrade my Clerk packages to the latest version and list the breaking changes.
  • Find every auth() call in my project that is missing await.
  • Help me move my authMiddleware setup to clerkMiddleware.

Good to know

  • Migration patterns cover the v5 to v6 changes only.
  • Examples target @clerk/nextjs; other Clerk packages appear only as commented install lines.
  • The automated migration script rewrites files in place using sed.

Security check

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

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

Inside the skill

Allowed tools: ReadWriteEditBash(npm:*)Bash(pnpm:*)Grep

  • SKILL.md6 KB
  • references/implementation-guide.md4 KB

Alternatives to clerk-upgrade-migration

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-upgrade-migration: common questions

What Clerk version changes does this skill cover?

The source lists v5 to v6 changes: async auth(), the authMiddleware to clerkMiddleware rename, and the import path change to @clerk/nextjs/server.

Does it upgrade Clerk automatically?

It provides commands and steps for the upgrade, including npm install of @clerk/nextjs and @clerk/themes. The user runs these steps and reviews the changes.

How do I undo a failed upgrade?

The skill includes a rollback plan that stashes changes, reinstalls a previous @clerk/nextjs version, or restores package files from git.

How do I install clerk-upgrade-migration?

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

Is clerk-upgrade-migration free?

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

Is clerk-upgrade-migration 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-upgrade-migration?

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

clerk-upgrade-migration Install

Add to stack

Loading.