Toolverse
All skills

clerk-auth

by davila7

Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authentication, sign in, sign up.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Security

About this skill

Expert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authentication, sign in, sign up.

How to use

  1. Zainstaluj pakiet Clerk w swoim projekcie Next.js 14 lub 15 i skonfiguruj zmienne środowiskowe wymagane do połączenia z Clerk API.

  2. Opatrz całą aplikację komponentem ClerkProvider na poziomie root layout, aby zapewnić kontekst autentykacji dla wszystkich podkomponentów.

  3. Utwórz plik middleware.ts w głównym katalogu projektu, używając clerkMiddleware i createRouteMatcher do ochrony wybranych tras — określ, które ścieżki wymagają autentykacji, a które są publiczne.

  4. Dodaj wbudowane komponenty Clerk — SignIn i SignUp — na dedykowanych stronach logowania i rejestracji, lub umieść UserButton w nagłówku do zarządzania sesją użytkownika.

  5. W Server Components uzyskaj dostęp do danych autentykacji za pomocą funkcji auth() (zwraca userId, sessionId, orgId) lub currentUser() (zwraca pełny obiekt użytkownika) — oba wymagają skonfigurowanego clerkMiddleware.

  6. Przejrzyj sekcję Sharp Edges w dokumentacji, aby uniknąć znanych problemów i zastosować rekomendowane rozwiązania dla przypadków krytycznych i wysokiego priorytetu.

Related skills

google-analytics

by davila7

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

Security
1260

solidity-security

by wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

Security
10105

content-creator

by alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content

Security
25124

skill-writer

by pytorch

Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.

Security
15116

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

python-expert

by Shubhamsaboo

Senior Python developer expertise for writing clean, efficient, and well-documented code.\nUse when: writing Python code, optimizing Python scripts, reviewing Python code for best practices,\ndebugging Python issues, implementing type hints, or when user mentions Python, PEP 8,

Security
2777