What problem does it solve? Testing authentication flows in Clerk-powered applications is tricky because bot detection blocks automated sign-ins and each test needs isolated session state. This Skill guides you through setting up reliable E2E auth tests without manual trial and error. ## Core Features & Use Cases - Framework Decision Tree: Routes you to official Clerk testing documentation for Playwright or Cypress based on your test framework. - Auth Session Management: Explains how to use clerkSetup(), setupClerkTestingToken(), and storageState to bypass bot detection and persist auth between tests. - Anti-Pattern Detection: Flags common mistakes like using production keys in tests or performing UI-based sign-in for every test. - Use Case: You are adding E2E tests to a Next.js app with Clerk authentication. The Skill walks you through generating development keys with clerk init, configuring the testing token, and reusing stored auth state for fast test runs. ## Quick Start Set up Playwright end-to-end tests for the Clerk authentication flows in my Next.js app.