AI Regression Testing

0•

Prevents recurring AI code bugs with sandbox-mode API testing patterns and automated bug-check workflows.

The AI Regression Testing skill addresses systematic blind spots where LLMs review and approve their own erroneous code changes. It provides practical patterns for database-free, fast API regression testing using sandbox and mock modes, Next.js test helpers, and Vitest configurations. By enforcing a test-first bug verification workflow, this skill catches common AI failure modes such as sandbox/production path discrepancies, omitted database SELECT clauses, error state leakage, and missing optimistic update rollbacks before they reach production.

Key Features

01Patterns to detect and prevent sandbox vs. production code path divergence
02Targeted regression test templates mapped to documented AI-generated bugs
03Automated bug-check workflow enforcing test and build verification before AI code review
040 GitHub stars
05Database-free sandbox API testing setups using Vitest and Next.js
06Best practices for validating API contracts, SELECT clauses, and optimistic UI rollbacks

Use Cases

01Implementing fast, sub-second API regression test suites without running local databases
02Preventing fixed bugs from reappearing when LLMs perform subsequent code refactoring
03Catching API contract breaks after Claude Code or Cursor modifies backend route handlers