Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

clerk-setup

БесплатноБез исполняемых скриптовНе проверен

Set up Clerk authentication in any project with the Clerk plugin, the Clerk CLI, and official framework quickstarts. Use when adding Clerk, initializing…

clerkот clerk★ 95 звёзд на GitHub

Об этом скилле

Set up Clerk

Check for the Clerk plugin first. It bundles skills and the Clerk MCP server for account work.

The MCP server can't write files in this project and never returns secret keys, so the Clerk CLI still sets up the project. On supported frameworks, npx -y clerk@latest init needs no Clerk account: it provisions a claimable application and writes temporary development keys.

The commands below use npx -y clerk@latest. In a project that uses pnpm, Bun, or Yarn 2+, run them with pnpm dlx clerk@latest, bunx clerk@latest, or yarn dlx clerk@latest instead. Do not install the CLI globally.

Before you start

Show the user this checklist and wait for a yes:

Here's what I'll do to get you set up with Clerk.

1. Add Clerk's agent skills and MCP server for the coding agents on this machine, through the Clerk plugin where possible, if they aren't installed yet.
2. Set up Clerk in this project, or scaffold a new app if this directory is empty.
3. Start your app with Clerk installed.

Shall I proceed?

Install the Clerk plugin

Check this agent's installed plugins, or ask the user to check. Loading this skill from the plugin proves installation; a URL or generated copy does not. MCP tools are not proof: a separate server may provide them, and sign-out can hide plugin tools. If the Clerk plugin is installed in this agent, skip installation. If the MCP server needs sign-in, guide authentication in the agent's MCP settings (Claude Code: /mcp → Authenticate) and continue with the CLI.

Only if the plugin is absent and the user agreed to install it, show Clerk's native plugin or connector card when this agent has a suggestion tool. Pass Clerk's ID directly; a name search can miss it:

  • ChatGPT and Codex: plugin_asdk_app_6ae4e34683b08191933207035aa0d3ac
  • Claude: connector 48a3eb31-a881-4d52-b179-1af31624356a (MCP server only; no plugin or skills)

Wait for the user to finish the card and verify what it installed. The Claude connector adds only the MCP server, so do not treat it as a full plugin; let npx -y clerk@latest init install skills. If you have no card tool, or it rejects the ID, run the fallback after the user agrees to the checklist:

npx -y plugins add clerk/skills --yes

The command installs the Clerk plugin, with its skills and the Clerk MCP server, into every detected coding agent. The agent may need a reload or restart to load the MCP server. Sign-in may follow in a browser or the agent's MCP settings. Continue with the CLI until the MCP tools are available.

For an agent the command doesn't support, the user can add the Clerk MCP server as a remote MCP server.

Existing authentication

Before init, inspect auth dependencies, routes, middleware, sessions, and user records — never environment files. If a different auth provider exists, stop and get approval for a migration plan covering:

  • Backend API user import, stable external IDs, compatible password hashes, and OAuth continuity.
  • Protected routes, tokens, session cutover, and rollout strategy.

Do not modify or remove existing auth without approval.

See the migration guide. If Clerk's skills are available to you, move the users themselves with the clerk-migrate skill instead of hand-rolling a Backend API import script.

Existing Clerk projects

For a native iOS or macOS app, follow the iOS setup prompt instead. It reuses the linked application and keeps existing configuration.

For a native Android app, follow the Android setup prompt instead. It reuses the linked application and keeps existing configuration.

If the project already uses Clerk, skip init in Steps 1a and 1b: a signed-out agent run could create another application and replace the project's Clerk keys. If Clerk already works and the user asked for setup, report that no setup is needed. If the user reports missing keys, restore them through the existing-application branch below. If inspection finds missing provider, middleware, or auth routes, add only those pieces from the matching quickstart in Step 2. Never create a replacement application.

Inspect its Clerk package versions before changing anything and use the version table in the clerk skill to identify its SDK generation. Preserve that generation unless the user asks to upgrade it, and apply these differences in every step below for Core 2 projects:

  • React and Expo use @clerk/clerk-react and @clerk/clerk-expo instead of @clerk/react and @clerk/expo.
  • Control components are <SignedIn> and <SignedOut> instead of <Show>.
  • Next.js ClerkProvider can wrap `<html
Полный SKILL.md на GitHub

Установить clerk-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

WebFetch

Вложенные файлы

evals/evals.jsonreferences/production-deploy.md

FAQ

Что делает скилл clerk-setup?

Set up Clerk authentication in any project with the Clerk plugin, the Clerk CLI, and official framework quickstarts. Use when adding Clerk, initializing Clerk, scaffolding a new app with Clerk, or migrating an existing authentication system to Clerk.

Как установить скилл clerk-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл clerk-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить clerk-setup с