ai-regression-testing
Regression testing strategies for AI-assisted development.
Skill by nguyentrunghieutcu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nguyentrunghieutcu-ai-regression-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ai-regression-testing
What's inside
- Skill name
ai-regression-testing- Description
- 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.
- License
- MIT
- Metadata
- origin: ECC
- Instructions
- 381 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- LICENSE.ecc
- SKILL.md
SKILL.md (first lines)
# 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
Fix 3: Changed to SELECT *
→ Fixed production path, forgot sandbox path
→ AI reviewed and missed it AGAIN (4th occurrence)
Fix 4: Test caught it instantly on first run PASS:
```
The pattern: **sandbox/production path inconsistency** is the #1 AI-introduced regression.
## Sandbox-Mode API Testing
Most projects with AI-friendly architecture have a sandbox/mock mode. This is the key to fast, DB-free API testing.
### Setup (Vitest + Next.js App Router)
```typescript
// vitest.config.ts
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "node",
globals: true,
include: ["__tests__/**/*.test.ts"],
setupFiles: ["__tests__/setup.ts"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
},
},
});
```
```typescript
// __tests__/setup.ts
// Force sandbox mode — no database needed
process.env.SANDBOX_MODE = "true";
process.env.NEXT_PUBLIC_SUPABASE_URL = "";
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY = "";
```
### Test Helper for Next.js API Routes
```typescript
// __tests__/helpers.ts
import { NextRequest } from "next/server";
export function createTestRequest(
url: string,
options?: {
method?: string;
body?: Record<string, unknown>;
headers?: Record<string, string>;
sandboxUserId?: string;
},
): NextRequest {
const { method = "GET", body, headers = {}, sandboxUserId } = options || {};
const fullUrl = url.startsWith("http") ? url : `http://localhost:3000${url}`;
const reqHeaders: Record<string, string> = { ...headers };
if (sandboxUserId) {
reqHeaders["x-sandbox-user-id"] = sandboxUserId;
}
const init: { method: string; headers: Record<string, string>; body?: string } = {
method,
headers: reqHeaders,
};
if (body) {
init.body = JSON.stringify(body);
reqHeaders["content-type"] = "application/json";
}
return new NextRequest(fullUrl, init);
}
export async function parseResponse(response: Response) {
const json = await response.json();
return { status: response.status, json };
}
```
### Writing Regression Tests
The key principle: **write tests for bugs that were found, not for code that works**.From nguyentrunghieutcu/ctxora-engine, MIT.
More from nguyentrunghieutcu/ctxora-engine
- 0.605score
agent-self-evaluation
nguyentrunghieutcu
Use after completing any non-trivial task.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-repository-context
nguyentrunghieutcu
Build and retrieve grounded repository context with CTXORA Engine.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-eval
nguyentrunghieutcu
Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
android-clean-architecture
nguyentrunghieutcu
Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
accessibility
nguyentrunghieutcu
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-architecture-audit
nguyentrunghieutcu
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-setup
nguyentrunghieutcu
Install and configure CTXORA Engine for a repository and connect it to Codex, Claude Code, Cursor, or a generic MCP client.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-payment-x402
nguyentrunghieutcu
Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
cisco-ios-patterns
nguyentrunghieutcu
Cisco IOS and IOS-XE review patterns for show commands, config hierarchy, wildcard masks, ACL placement, interface hygiene, and safe change-window verification.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-context-health
nguyentrunghieutcu
Diagnose and repair CTXORA local context health and run repository-safe CI checks.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agentic-os
nguyentrunghieutcu
Build persistent multi-agent operating systems on Claude Code.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ck
nguyentrunghieutcu
Persistent per-project memory for Claude Code.
SkillBFreshness: B★ 19Claude Code +9
Signals
- Stars
- 19
- Forks
- 3
- Open issues
- 1
- Last commit (this folder)
- Sep 8, 2026 (1 month ago)
- Last release
- Sep 22, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- ctxora-landing.vercel.app/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.356score
ai-regression-testing
unrealandychan
Regression testing strategies for AI-assisted development.
SkillBFreshness: B★ 12Claude Code +9 - 0.352score
ai-regression-testing
wasdqwerty81972
Regression testing strategies for AI-assisted development.
SkillAFreshness: A★ 1Claude Code +9 - 0.349score
ai-regression-testing
VismayHS
Regression testing strategies for AI-assisted development.
SkillAFreshness: A★ 1Claude Code +9 - 0.336score
ai-regression-testing
albertstarfield
Regression testing strategies for AI-assisted development.
SkillAFreshness: AClaude Code +9 - 0.336score
ai-regression-testing
devadathdev
Regression testing strategies for AI-assisted development.
SkillAFreshness: AClaude Code +9
More from nguyentrunghieutcu
- 0.605score
agent-self-evaluation
nguyentrunghieutcu
Use after completing any non-trivial task.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-repository-context
nguyentrunghieutcu
Build and retrieve grounded repository context with CTXORA Engine.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-setup
nguyentrunghieutcu
Install and configure CTXORA Engine for a repository and connect it to Codex, Claude Code, Cursor, or a generic MCP client.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
ctxora-context-health
nguyentrunghieutcu
Diagnose and repair CTXORA local context health and run repository-safe CI checks.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
accessibility
nguyentrunghieutcu
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA.
SkillBFreshness: B★ 19Claude Code +9 - 0.603score
agent-architecture-audit
nguyentrunghieutcu
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 19Claude Code +9
Cite this page
ai-regression-testing skill. Agent Mart. https://agentmart.dev/skills/nguyentrunghieutcu-ai-regression-testing (last updated 2026-10-24)