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-multi-env-setup

Skill by jeremylongshore

clerk-multi-env-setup configures Clerk across development, staging, and production with separate instances and environment-aware settings. It is for developers setting up Clerk authentication in multiple environments and promoting changes between them.

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

Install clerk-multi-env-setup

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-multi-env-setup ~/.claude/skills/clerk-multi-env-setup

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

Step-by-step: install clerk-multi-env-setup in Claude Code

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

About

This skill explains how to configure Clerk for development, staging, and production. It covers creating a separate Clerk instance per environment, with matching key prefixes (pk_test_, sk_test_, pk_live_, sk_live_) and domains. It also provides per-environment .env files and a config helper that detects the environment from the publishable key or Vercel's preview setting.

The skill adds a startup check that throws an error when publishable and secret keys come from different environments, and warns when live keys run in development. It shows a Clerk webhook route that uses a separate webhook secret per environment, and a GitHub Actions workflow that picks environment-specific keys based on the branch. It is intended for developers who use Clerk and want safe environment promotion. The examples assume a Next.js app with Vercel deployments.

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

What it can do

  • Environment-aware configurationDetects the current environment from the Clerk publishable key or Vercel preview setting.
  • Key mismatch checkStops startup when publishable and secret keys come from different environments.
  • Live key warningWarns when production Clerk keys are used in development mode.
  • Per-environment webhooksVerifies Clerk webhooks with a webhook secret specific to each environment.
  • Branch-based CI/CD keysSelects production or staging Clerk keys in a GitHub Actions deploy workflow.
  • Environment file setupShows separate .env files for development, staging, and production.

What you need

  • Clerk account
  • One Clerk instance per environment
  • CI/CD pipeline such as GitHub Actions or Vercel
  • Environment variable management

Try asking

  • Set up separate Clerk instances for dev, staging and production in my app
  • Add a startup check that catches mismatched Clerk keys
  • Write a Clerk webhook handler that uses a per-environment secret

Good to know

  • Examples assume a Next.js app with the App Router and Vercel deployments.
  • Environment instances must be created by hand in the Clerk Dashboard.

Security check

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

Checked automatically: skills/.curated/clerk-multi-env-setup/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

  • SKILL.md7 KB
  • references/implementation-guide.md5 KB

Alternatives to clerk-multi-env-setup

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-multi-env-setup: common questions

What does clerk-multi-env-setup do?

It gives step-by-step guidance and code for running Clerk with separate dev, staging, and production instances. It also covers key validation, webhook secrets, and CI/CD promotion.

Which Clerk key prefixes does it use for each environment?

The source uses pk_test_ and sk_test_ keys for development and staging, and pk_live_ and sk_live_ keys for production.

Does it need a specific deployment platform?

The examples use Vercel for environment variables and deployment. The source also mentions GitHub Actions for the CI/CD workflow.

How do I install clerk-multi-env-setup?

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

Is clerk-multi-env-setup free?

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

Is clerk-multi-env-setup safe to use?

It scores 79 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-multi-env-setup?

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

clerk-multi-env-setup Install

Add to stack

Loading.