Skip to content
affaan-m avatar

Ai Regression Testing

Regression testing patterns that catch AI blind spots, using sandbox-mode API tests without database dependencies.

CCM score
79 of 100
skills.sh installs
12.1K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Vitest setup for Next.js App Router, test request helpers, regression tests, and sandbox/production parity checks
  • Includes a /bug-check command workflow that runs npm run test and npm run build before any AI code review
  • Enforces mechanical test and build gates first, so type errors and regressions surface without relying on AI judgment
  • Designed for teams using AI coding agents such as Claude Code, Cursor, or Codex on Next.js projects with a sandbox mode

Install

$ npx -y skills add affaan-m/ecc --skill ai-regression-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

AI Regression Testing

Testing patterns specifically designed for AI-assisted development, where the same model writes code and reviews it — creating systematic blind spots that only automated tests can catch.

When to Activate

  • AI agent (Claude Code, Cursor, Codex) has modified API routes or backend logic
  • A bug was found and fixed — need to prevent re-introduction
  • Project has a sandbox/mock mode that can be leveraged for DB-free testing
  • Running /bug-check or similar review commands after code changes
  • Multiple code paths exist (sandbox vs production, feature flags, etc.)

The Core Problem

When an AI writes code and then reviews its own work, it carries the same assumptions into both steps. This creates a predictable failure pattern:

AI writes fix → AI reviews fix → AI says "looks correct" → Bug still exists

Real-world example (observed in production):

Fix 1: Added notification_settings to API response
  → Forgot to add it to the SELECT query
  → AI reviewed and missed it (same blind spot)

Fix 2: Added it to SELECT query
  → TypeScript build error (column not in generated types)
  → AI reviewed Fix 1 but didn't catch the SELECT issue

Details

Repository
github.com/affaan-m/ecc
Categories
Testing & QA, Frontend & UI Code
First seen
Jul 14, 2026

Questions

Does the ai-regression-testing skill help with AI-written code that keeps reintroducing the same bugs?

Yes, the ai-regression-testing skill targets regressions introduced when an AI writes code and then reviews its own work. It covers sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns for catching AI blind spots.

How do I install the ai-regression-testing skill?

Run npx -y skills add affaan-m/ecc --skill ai-regression-testing -y in your project. The skill then lets the agent write regression tests for API routes and check sandbox and production code paths for consistency.

Where does ai-regression-testing rank in the Testing & QA category?

The skill sits in the Testing & QA category and ranks in the top 50 on that category page. It sets itself apart by focusing on regression coverage for code an AI agent both wrote and reviewed, using a project's sandbox mode for fast database-free tests.

Which tools or setup does ai-regression-testing need?

The skill's examples use Vitest and Next.js App Router, with a sandbox or mock mode the project can switch on. Tests run through npm run test and npm run build as part of a bug-check workflow.

More from affaan-m/ecc

All 257

Similar to Ai Regression Testing

More Testing & QA