What problem does it solve? When the same AI model writes code and then reviews it, it carries identical assumptions into both steps, creating systematic blind spots where bugs survive review. This Skill provides testing patterns that catch these recurring AI regressions with automated tests instead of trusting self-review. ## Core Features & Use Cases - Sandbox-Mode API Testing: Set up Vitest with Next.js App Router to test API routes without a database by forcing sandbox mode. - Regression Pattern Catalog: Covers common AI regression patterns including sandbox/production path mismatch, SELECT clause omission, error state leakage, and missing optimistic-update rollback. - Bug-Driven Test Strategy: Write tests only where bugs were found, naming tests after the defect they prevent (e.g., "BUG-R1 regression") rather than chasing coverage percentages. - Use Case: After an AI assistant fixes a missing notification_settings field in a profile API, write a contract test asserting all required fields exist in both sandbox and production response paths so the same omission cannot recur. ## Quick Start Ask the AI to write a regression test for the bug just fixed in your API route, asserting the response contains all required fields in both sandbox and production paths.