clerk-auth – Other skill for AI agents
Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync
Install the clerk-auth skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /clerk-auth – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $clerk-auth – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /clerk-auth – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /clerk-auth – then describe the task you want done.
SKILL.md content
Clerk Authentication
Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
- User mentions or implies: adding authentication
- User mentions or implies: clerk auth
- User mentions or implies: user authentication
- User mentions or implies: sign in
- User mentions or implies: sign up
- User mentions or implies: user management
- User mentions or implies: multi-tenancy
- User mentions or implies: organizations
- User mentions or implies: sso
- User mentions or implies: single sign-on
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Guide snippets are independent alternatives/files, not one deployable module; duplicate default exports and omitted Prisma models/imports must be resolved in the actual project. Pin compatible Next.js/Clerk versions and check current middleware/proxy filenames. Authenticate each server route/action, validate inputs and authorize organization permissions/individual resources; client UI and org:admin do not grant global-user access. Verify webhook raw bytes first, then use a durable transactional event inbox keyed by Svix ID plus a domain ordering/tombstone policy; upsert alone does not prevent stale events resurrecting deleted users or overwriting newer state. Hard deletion must follow the application’s retention/foreign-key policy. Choose actual primary email rather than array order and allow phone-only identities. Use synthetic test instances and never log signing secrets/raw private payloads. See [Clerk sync guidance](https://clerk.com/docs/guides/development/webhooks/syncing) and [Svix raw payload verification](https://www.svix.com/guides/receiving/receive-webhooks-with-svix-cli/).
Related skills
- clients-accounts – Client and account register: contacts, billing address, tax ID and basis, payment terms…
- cloudflare-r2 – Manage Cloudflare R2 buckets, lifecycle, and signed URLs. Use for low-egress object…
- intl-expansion – International market expansion strategy. Market selection, entry modes, localization…
- cloudflare-workers-expert – Expert in Cloudflare Workers and the Edge Computing ecosystem. Covers Wrangler, KV, D1…
- pixel-art – Pixel art w/ era palettes (NES, Game Boy, PICO-8).
- pokemon-player – Play Pokemon via headless emulator + RAM reads.
- polymarket – Query Polymarket: markets, prices, orderbooks, history.
- knowledge-ops – Use when a Head of Ops, Knowledge Manager, or TPM-Internal needs to author, validate, or…