clerk-performance-tuning

Installation
SKILL.md

Clerk Performance Tuning

Overview

Optimize Clerk authentication for best performance. Covers middleware optimization, user data caching, token handling, lazy loading, and edge runtime configuration.

Prerequisites

  • Clerk integration working
  • Performance monitoring in place (Lighthouse, Web Vitals)
  • Understanding of Next.js rendering strategies

Instructions

Step 1: Optimize Middleware (Skip Static Assets)

// middleware.ts — avoid running auth on static files
import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'
Installs
26
GitHub Stars
2.7K
First Seen
Feb 18, 2026
clerk-performance-tuning — jeremylongshore/tons-of-skills-marketplace