ai-regression-testing

Automate regression testing for AI-assisted development with Vitest and NextJS.

1|Updated Jan 30, 2021
One-click install
npx skills add https://github.com/fideguch/my_dotfiles --skill ai-regression-testing-fideguch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-regression-testing
Source: https://github.com/fideguch/my_dotfiles/tree/main/claude/skills/ai-regression-testing
Command: npx skills add https://github.com/fideguch/my_dotfiles --skill ai-regression-testing-fideguch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI-assisted development suffers from blind spots when the same model writes and reviews code; regression tests help prevent reintroducing bugs.

Core Features & Use Cases

  • Sandbox-mode API testing to run DB-free experiments and validate multi-path logic without a real database.
  • Prebuilt helpers (createTestRequest, parseResponse) to craft API tests, inspect responses, and enforce contracts.
  • Structured bug-check workflow that prioritizes regression tests for fixes discovered during AI-driven code reviews.
  • Clear guidance for documenting regression patterns and guiding AI reviews to minimize repeated errors.

Quick Start

Create a regression test for the bug you found and run npm run test followed by npm run build to validate the fix.

Frequently Asked Questions about ai-regression-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do I need regression testing for AI-assisted code?

Regression testing for AI-assisted code is needed because the same AI model writing and reviewing code creates blind spots. Automated regression tests prevent reintroducing bugs by validating fixes discovered during AI-driven code reviews.

How do I create a regression test for a bug found during an AI code review?

To create a regression test, document the bug pattern and write a test using the provided helpers. Run npm run test followed by npm run build to validate the fix and ensure the AI does not repeat the error.

Do I need Vitest and NextJS to use this regression testing workflow?

Yes, you need a Node.js test environment with Vitest and a NextJS app router setup. These dependencies are required to execute the sandbox-mode API testing and validate the multi-path logic workflows.

What is the best way to document regression patterns for AI code reviews?

The best way to document regression patterns is to follow the structured bug-check workflow provided. This guides AI reviews by prioritizing regression tests for fixes, minimizing repeated errors across sandbox and production paths.