regression-test-generator

Generate Arrange-Act-Assert regression tests for Jest, Vitest, pytest, or Playwright.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/DYAI2025/MOD_shark-engine --skill regression-test-generator-dyai2025
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: regression-test-generator
Source: https://github.com/DYAI2025/MOD_shark-engine/tree/main/sharkengine/.claude/skills/regression-test-generator
Command: npx skills add https://github.com/DYAI2025/MOD_shark-engine --skill regression-test-generator-dyai2025

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate regression tests automatically when bugs are discovered in /debug or during continuous checks. Auto-detects test frameworks, creates Arrange-Act-Assert tests, and links to error-log.md entries for traceability.

Core Features & Use Cases

  • Auto-detects the active test framework (Jest, Vitest, pytest, Playwright) and generates framework-aligned regression tests.
  • Produces Arrange-Act-Assert style test files that reproduce bugs and verify fixes.
  • Links tests to error-log.md entries to ensure traceability across bugs and documentation.

Quick Start

Provide bug details and run the generator to produce a regression test.

Frequently Asked Questions about regression-test-generator

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

FAQPage Schema
How do I auto-generate regression tests to prevent bug recurrence?▼

To auto-generate regression tests, provide bug details to the generator. It produces Arrange-Act-Assert style tests that reproduce bugs, verify fixes, and save the regression file in the project's tests/regression directory.

Does this regression test generator work with Jest and Playwright?▼

Yes, the regression test generator works with Jest, Vitest, pytest, and Playwright. It auto-detects the active project test framework and generates framework-aligned tests to ensure compatibility.

What is the Arrange-Act-Assert structure for regression testing?▼

The Arrange-Act-Assert structure is a testing pattern where you set up conditions, execute the behavior, and verify outcomes. The generator produces regression tests using this structure to reproduce bugs and verify fixes.

How do I link regression tests to error logs for traceability?▼

To link regression tests to error logs, the generator updates error-log.md entries automatically. Generated tests reference these logs to document the bug rationale and ensure traceability across documentation.

Where are generated regression test files saved in my project?▼

Generated regression test files are saved in the project's tests/regression directory. The generator creates the file in this specific location to maintain a consistent structure for regression testing artifacts.