affaan-m avatar

Ai Regression Testing

When Claude writes code and then reviews its own work, it carries the same blind spots into both steps. This catches that. The pattern here is sandbox versus production path mismatches, where an AI adds a field to one code path and forgets the other, then reviews it and misses the gap again. The approach is contract testing with Vitest against sandbox mode so you don't need database setup, plus a bug check workflow that runs tests before AI review instead of after. The real insight is treating tests as regression prevention, not coverage. Write tests for bugs that were found, not code that already works.

skills.sh installs
4.8K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill ai-regression-testing --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Categories
Testing & QA, AI & Agent Building
First seen
Apr 16, 2026

More from affaan-m/everything-claude-code

All 256
1affaan-m avatarkotlin-testingaffaan-m/everything-claude-codekotlin testing4.8Kskills.sh installs
2affaan-m avatarperl-testingaffaan-m/everything-claude-codeperl testing4.5Kskills.sh installs
3affaan-m avatarbrowser-qaaffaan-m/everything-claude-codebrowser qa4.3Kskills.sh installs
4affaan-m avatarcsharp-testingaffaan-m/everything-claude-codecsharp testing3.6Kskills.sh installs
5sickn33 avatarplaywright-skillsickn33/antigravity-awesome-skillsplaywright skill3.5Kskills.sh installs
6everyinc avatarce-test-xcodeeveryinc/compound-engineering-pluginBuild and test iOS apps on simulator with XcodeBuildMCP.3Kskills.sh installs