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.
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-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clerk-upgrade-migration in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clerk-upgrade-migration ~/.gemini/antigravity-cli/skills/clerk-upgrade-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clerk-upgrade-migration in Antigravity CLI
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 →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.
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.
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.
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.
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.
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.
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.
