AI Regression Testing
Protects AI-generated code from regressions using sandbox-mode API testing and automated bug-check workflows.
This skill addresses the critical 'blind spot' problem where AI agents often miss their own errors during self-review by carrying the same flawed assumptions into both the coding and auditing phases. It provides structured testing patterns for API route consistency, specifically focusing on the common failure point between production and sandbox environments. By integrating automated Vitest and Next.js testing helpers into a standardized /bug-check workflow, it ensures that once a bug is fixed, it remains fixed through mechanical verification rather than relying solely on AI judgment.
Key Features
01Sandbox-mode API testing patterns without database dependencies
02Automated /bug-check workflow for mandatory test execution
03Strategies to detect sandbox and production path inconsistencies
04Specific patterns to catch 'SELECT' clause omissions and error state leakage
05Targeted testing helpers for Next.js App Router and Vitest
061 GitHub stars
Use Cases
01Preventing the re-introduction of bugs in complex multi-path logic
02Verifying API route integrity after AI-assisted modifications
03Establishing a mechanical guardrail for AI agents using Cursor or Claude Code