
AI regression testing
Adds regression tests and a test-first bug-check workflow for AI-written code
AI regression testing is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 73
- Last commit
- License
- MIT
- Listing updated
Similar skills
About AI regression testing
This skill is a set of testing patterns for codebases where an AI agent both writes changes and reviews them. It argues that the same model tends to repeat the same blind spots during self-review, so it pushes regression coverage into automated tests instead of relying on review alone. The guidance centers on writing tests for bugs that were actually found, naming each test after the bug it guards against, and keeping the suite fast.
The main technique is DB-free API testing through a project's sandbox or mock mode. The skill shows a Vitest setup for a Next.js App Router project, a request helper for calling route handlers directly, and example tests that assert required response fields and that sandbox responses match the production shape. It also covers common recurring regressions such as sandbox and production path mismatches, incomplete SELECT clauses, stale state after errors, and optimistic updates without rollback.
It also describes a bug-check command that runs the test suite and type-check build before any AI code review, so mechanical failures are reported first. The examples assume a Next.js and TypeScript stack with Supabase-style queries and a sandbox flag, so the patterns need adapting for other stacks.
When your agent uses it
Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (12 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/ai-regression-testing:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-regression-testing &&
cp -R "$tmp/.agents/skills/ai-regression-testing" ~/.claude/skills/ai-regression-testing &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/ai-regression-testing inside it instead.
Copy the skill folder to ~/.agents/skills/ai-regression-testing to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-regression-testing &&
cp -R "$tmp/.agents/skills/ai-regression-testing" ~/.agents/skills/ai-regression-testing &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/ai-regression-testing inside it instead.
Copy the skill folder to ~/.cursor/skills/ai-regression-testing to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-regression-testing &&
cp -R "$tmp/.agents/skills/ai-regression-testing" ~/.cursor/skills/ai-regression-testing &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/ai-regression-testing inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/ai-regression-testingOr copy the folder to ~/.gemini/skills/ai-regression-testing yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ai-regression-testing:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-regression-testing &&
cp -R "$tmp/.agents/skills/ai-regression-testing" ~/.copilot/skills/ai-regression-testing &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/ai-regression-testing inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/ai-regression-testing into your agent's skills folder as ai-regression-testing. Agents that support SKILL.md read one folder per skill.
What it does
- Sandbox-mode API testing
- Runs route handler tests against a mock mode so no database is needed.
- Vitest and Next.js setup
- Provides example config, setup file and request helpers for App Router routes.
- Regression test patterns
- Covers recurring AI mistakes such as path mismatch, missing SELECT fields and rollback gaps.
- Bug-check workflow
- Defines a review command that runs tests and build before AI code review.
- Test-where-bugs-are strategy
- Guides adding tests only to areas that have produced bugs, not full coverage.
Good for
- Add regression tests for an API route after a bug fix
- Check that sandbox and production responses return the same fields
- Run a bug-check pass on recent AI-generated changes
- Set up Vitest with a DB-free sandbox mode in a Next.js project
- Add rollback handling tests for optimistic UI updates
AI regression testing FAQ
What does the skill need to be useful?
It assumes a project with a sandbox or mock mode and a test runner such as Vitest. The examples use Next.js App Router and TypeScript.
When does AI regression testing activate?
When an AI agent has changed API routes or backend logic, after a bug is fixed, when running a bug-check or review command, or when the same model wrote and reviewed a change.
Does AI regression testing run any scripts?
No scripts are included. It provides markdown guidance with code examples for tests and a bug-check command.
How do I install AI regression testing in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/ai-regression-testing to use it in all your projects, or to .claude/skills/ai-regression-testing in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does AI regression testing run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use AI regression testing?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to AI regression testing?
The closest alternatives to AI regression testing are Vitest skill, Jest skill, Unit test vue pinia, Testcafe skill and Scoutqa test.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 73 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 73 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 73 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 73 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 73 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 73 GitHub stars
- Finance and payments



