clerk-production
БесплатноБез исполняемых скриптовНе проверенSetting up or changing Clerk sign-in, organizations, roles or billing on Next.js, or sign-in that does nothing or lands wrong: Clerk in production.
от sickn33★ 50 670 звёзд на GitHubОб этом скилле
Clerk in production: the choices its own skills cannot make
Operational boundaries
Keep the scope, sandbox, credentials and approval settings supplied by the user or host. Obtain authorization before delegating, exposing project files to another provider, enabling connectors or hooks, using paid services or deploying. Use synthetic or redacted inputs for examples. Keep security reviews static and defensive, with findings and fixes grounded in source inspection.
When to Use
Setting up or changing Clerk sign-in, organizations, roles or billing on Next.js, or sign-in that does nothing or lands wrong: Clerk in production.
This skill covers Clerk from the first setup on its development instance through production.
Decide the product's access model before following Clerk's API guidance. Clerk's own agent skills know the API. They cannot decide:
- where a session is verified, and what may read it;
- what a workspace is;
- where billing ends and authorization begins;
- which dashboard settings silently change what your code is allowed to do.
Those decisions are here.
Where Clerk's defaults or quickstarts contradict this skill, this skill wins. These mechanics use Next.js App Router, Next 16 (proxy.ts middleware), Clerk Core 3 (@clerk/nextjs v7), Supabase and Netlify. Apply saas-authorization for the access model, which carries to any identity provider.
Use the product's integration notes, permission module and member home. Integration notes hold dated provider configuration: instances, settings, slugs and read-backs. The permission module maps roles to permission strings. The member home is the sign-in destination, /dashboard unless the product names another.
Clerk's own skills: get them, prefer them for the API
- Use Clerk's own skills for its API. The set comes from the GitHub repository
clerk/skills:clerk(a router);clerk-setup,clerk-nextjs-patterns,clerk-custom-ui,clerk-orgs,clerk-billing,clerk-webhooks,clerk-testing;clerk-backend-api(browse and call the Backend API);clerk-cli.
- Install and vendor the skills instead of relying on API memory. Run
npx skills add clerk/skillswith the openskillsCLI. Vendor them into the product's skills folder so they load whenever Clerk is touched, and prefer them over training-era memory of the API. - Pin the skills and update them deliberately. A
skills-lock.jsonrecords each skill's source, its path and a content hash.npx skills updaterefreshes them on purpose. - Refuse vendor suggestions that contradict this skill. These include:
createRouteMatcherpath lists;<SignedIn>and<SignedOut>, which Core 3 deleted;<ClerkProvider dynamic>;- rebuilt sign-in screens;
clerk.signIn()in the browser suite;- Clerk permissions with features attached;
- a hand-written CSP.
The choices
- Verify, never decode, always behind one session seam. Use
SessionVerifier. Tests substitute a mock verifier whenCLERK_SECRET_KEYis absent; keyless mode is for development only. →references/sessions-and-front-door.md § Sessions - Store Clerk ids only. Read names and emails from Clerk at render time. Only the
workspacestable holds a Clerk org or user id, and, where the product records authorship, one member table beside it holds the user id too (saas-authorization). - Authorization lives with the data, not in a path list. Clerk v7 deprecates
createRouteMatcher, andproxy.tsonly attaches the session. Every protected page and every action checks for itself; a check in a layout alone is not a check. - Clerk's own components are the sign-in surface. Use
<SignIn />,<SignUp />,<UserButton />. They are dressed throughappearance, never rebuilt. - Sign-in lands on the member home, never on
/.signInFallbackRedirectUrlandsignUpFallbackRedirectUrlname the member home, andafterSignOutUrlis/.- The member home sends a signed-out visitor to
/sign-inwith aredirect_urlback to itself. - The root
<ClerkProvider>takesnonce, neverdynamic: the root layout reads it from the request'scontent-security-policyheader, the'nonce-…'inscript-src(references/sessions-and-front-door.md).
- The front door reads no session.
/and every public page never callauth(), the seam or<Show>, and a signed-in visitor is never redirected away. The header's one button is labelled from the__client_uatcookie. →references/sessions-and-front-door.md § The front door and the member home - In the organization shape, Membership required goes on at setup, before the first migration. The authenticated harness then creates each test account's organization. In the individual shape, organizations stay off. →
references/organizations-and-billing.md § Organizations - Organization management is Clerk's own modal. Never build a separate page. What it lacks goes in as a
Установить clerk-production в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл clerk-production?
Setting up or changing Clerk sign-in, organizations, roles or billing on Next.js, or sign-in that does nothing or lands wrong: Clerk in production.
Как установить скилл clerk-production?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clerk-production запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic