Toolverse
All skills

clerk-performance-tuning

by jeremylongshore

Optimize Clerk authentication performance.\nUse when improving auth response times, reducing latency,\nor optimizing Clerk SDK usage.\nTrigger with phrases like \

Installation

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

Installation

Quick info

Category
Security
Views
4

About this skill

Optimize Clerk authentication performance.\nUse when improving auth response times, reducing latency,\nor optimizing Clerk SDK usage.\nTrigger with phrases like \

How to use

  1. Upewnij się, że masz zainstalowaną integrację Clerk i narzędzia do monitorowania wydajności (Lighthouse, Web Vitals). Skill działa najlepiej w projektach Next.js.

  2. Zoptymalizuj middleware, aby pominąć statyczne zasoby. Skonfiguruj matcher w pliku middleware.ts tak, aby autentykacja nie uruchamiała się na plikach statycznych (_next, obrazy, favicon). Zdefiniuj publiczne trasy (logowanie, rejestracja, webhooki) i uruchamiaj ochronę tylko dla tras wymagających autentykacji.

  3. Wdrożyć cachowanie danych użytkownika za pomocą React cache. Utwórz funkcję getAuthUser, która deduplikuje zapytania do Clerk API w ramach jednego żądania. To zapobiega wielokrotnym wywołaniom API dla tego samego użytkownika w różnych komponentach serwera.

  4. Przeanalizuj wyniki monitorowania wydajności. Sprawdź, czy czasy odpowiedzi autentykacji spadły i czy Web Vitals się poprawiły. Skill wspiera optymalizację tokenów, lazy loading komponentów i konfigurację edge runtime — dostosuj kolejne kroki na podstawie wąskich gardeł w Twoim projekcie.

  5. Wyzwól skill frazami takimi jak "clerk performance", "clerk optimization", "clerk slow" lub "optimize clerk", aby uzyskać konkretne rekomendacje dla Twojego kodu.

Related skills

reviewing-code

by CaptainCrouton89

Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.

Security
1493

brand-voice

by anthropics

Apply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, adapting tone for different audiences, or checking terminology and style guide compliance.

Security
48158

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

accessibility-compliance

by wshobson

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

Security
2173

reverse-engineering-tools

by gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

Security
3168

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100