clerk-local-dev-loop
Skill by jeremylongshore
Sets up a local development workflow for Clerk authentication in a Next.js project. It covers a Clerk development instance, seeded test users, an HTTPS dev server, and mock auth for unit tests. Written for developers who have already installed the Clerk SDK.
Install clerk-local-dev-loop
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-local-dev-loop ~/.claude/skills/clerk-local-dev-loopRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
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-local-dev-loop ~/.gemini/antigravity-cli/skills/clerk-local-dev-loopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clerk-local-dev-loop in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Clerk Local Dev Loop is a skill that configures a local development workflow for Clerk authentication. It walks through creating a separate Clerk development instance with test keys, seeding test users with a script, and running the Next.js dev server with HTTPS. It also adds dev scripts to package.json and Vitest mock helpers for auth in unit tests.
The skill includes a Playwright fixture that signs in a test user before end-to-end tests. It lists common errors, such as a dev and prod key mismatch, missing HTTPS, cookies not set, and sessions not persisting, with fixes for each. The skill is written for Claude Code. It is intended for developers who have already installed the Clerk SDK and want to test auth locally. The next step it names is clerk-sdk-patterns.
Written from the project's SKILL.md and checked against it.
What it can do
- Development instance setupConfigures a separate Clerk development instance with test keys for local work.
- Test user seedingProvides a script that creates test users and skips ones that already exist.
- HTTPS dev serverRuns the Next.js dev server with experimental HTTPS for Clerk compatibility.
- Development scriptsAdds dev, HTTPS, seed, and ngrok tunnel scripts to package.json.
- Vitest auth mocksProvides a helper that mocks Clerk auth functions in unit tests.
- Playwright auth fixtureProvides an E2E fixture that signs in a test user before each test.
What you need
- Clerk SDK installed
- Clerk development instance created in the Clerk Dashboard
- Node.js
- npm or pnpm
Try asking
- Set up a Clerk development instance and test keys for my local app
- Write a script that seeds admin and member test users in Clerk
- Mock Clerk auth in my Vitest tests for a protected API route
Good to know
- Assumes a Next.js project; the config and mocks target Next.js and @clerk/nextjs.
- Clerk must be installed first, as the skill lists it as a prerequisite.
- Test users use fixed sample emails and passwords shown in the examples.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/clerk-local-dev-loop/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.md3 KB
Alternatives to clerk-local-dev-loop
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-local-dev-loop: common questions
Why use a separate Clerk development instance locally?
The skill says a separate development instance isolates test data from production. It also notes that development instances skip email verification and have relaxed rate limits.
Does Clerk need HTTPS on localhost?
The skill says some Clerk features need HTTPS locally. It suggests running the Next.js dev server with the experimental HTTPS flag.
How does the skill test protected routes without real sign-ins?
It provides a Vitest helper, mockClerkAuth, that mocks Clerk server functions such as auth and currentUser with a test user ID.
How do I install clerk-local-dev-loop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clerk-local-dev-loop free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clerk-local-dev-loop safe to use?
It scores 80 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-local-dev-loop?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
