clerk-auth – skill Khác cho agent AI
Mẫu chuyên sâu để triển khai xác thực Clerk, middleware, tổ chức, webhook và đồng bộ người dùng
Cài skill clerk-auth bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /clerk-auth – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $clerk-auth – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /clerk-auth – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/clerk-auth-bf16a.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /clerk-auth – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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/).
Skill liên quan
- clients-accounts – Sổ đăng ký khách hàng và tài khoản: liên hệ, địa chỉ thanh toán, mã số thuế và cơ sở…
- cloudflare-r2 – Quản lý bucket Cloudflare R2, lifecycle và signed URL. Dùng cho lưu trữ đối tượng chi…
- intl-expansion – Chiến lược mở rộng thị trường quốc tế: chọn thị trường, hình thức thâm nhập, bản địa…
- cloudflare-workers-expert – Chuyên gia về Cloudflare Workers và hệ sinh thái Edge Computing. Bao gồm Wrangler, KV…
- pixel-art – Pixel art với bảng màu theo thế hệ máy (NES, Game Boy, PICO-8).
- pokemon-player – Chơi Pokemon qua trình giả lập không giao diện và đọc RAM.
- polymarket – Truy vấn Polymarket: thị trường, giá, sổ lệnh (orderbook), lịch sử.
- knowledge-ops – Dùng khi Head of Ops, Knowledge Manager hoặc TPM-Internal cần viết, kiểm tra hoặc dọn…