What problem does it solve? Testing authentication flows in Clerk-powered apps 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 flaky failures. ## Core Features & Use Cases - Framework Decision Tree: Directs you to the official Clerk testing documentation for Playwright or Cypress based on your stack. - 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. The Skill walks you through fetching the right docs, configuring a testing token, and reusing auth state so your test suite runs fast and passes consistently. ## Quick Start Set up Playwright E2E tests for my Clerk app's sign-in flow using a testing token and saved auth state.