AgentSkillsCN

clerk

Clerk 认证路由器。当用户询问如何添加认证、如何搭建 Clerk、如何自定义登录流程、如何运用 Next.js 模式、如何管理组织、如何同步用户,或如何进行测试时,可使用此路由器。它会根据用户的任务,自动将请求路由至相应的技能。

SKILL.md
--- frontmatter
name: clerk
description: Clerk authentication router. Use when user asks about adding authentication, setting up Clerk, custom sign-in flows, Next.js patterns, organizations, syncing users, or testing. Automatically routes to the specific skill based on their task.

Clerk Skills Router

Based on what you're trying to do, here's the right skill to use:

By Task

Adding Clerk to your project → Use clerk-setup

  • Framework detection and quickstart
  • Environment setup, API keys, Keyless flow
  • Migration from other auth providers

Custom sign-in/sign-up UI → Use clerk-custom-ui

  • Custom authentication flows
  • Appearance and styling
  • OAuth, magic links, passkeys, MFA

Advanced Next.js patterns → Use clerk-nextjs-patterns

  • Server vs Client auth APIs
  • Middleware strategies
  • Server Actions, caching
  • API route protection

B2B / Organizations → Use clerk-orgs

  • Multi-tenant apps
  • Organization slugs in URLs
  • Roles, permissions, RBAC
  • Member management

Webhooks → Use clerk-webhooks

  • Real-time events
  • Data syncing
  • Notifications & integrations

E2E Testing → Use clerk-testing

  • Playwright/Cypress setup
  • Auth flow testing
  • Test utilities

Quick Navigation

If you know your task, you can directly access:

  • /clerk-setup - Framework setup
  • /clerk-custom-ui - Custom flows
  • /clerk-nextjs-patterns - Next.js patterns
  • /clerk-orgs - Organizations
  • /clerk-webhooks - Webhooks
  • /clerk-testing - Testing

Or describe what you need and I'll recommend the right one.