regression-test-generator

Generates targeted regression tests for verified bug fixes using project conventions.

5|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/dtsong/my-claude-setup --skill regression-test-generator-dtsong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: regression-test-generator
Source: https://github.com/dtsong/my-claude-setup/tree/main/skills/frontend-qa/regression-test-generator
Command: npx skills add https://github.com/dtsong/my-claude-setup --skill regression-test-generator-dtsong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that verified bug fixes are protected against future regressions by automatically generating targeted test cases.

Core Features & Use Cases

  • Automated Test Generation: Creates regression tests based on the specifics of a bug fix.
  • Convention Detection: Automatically identifies and adheres to project-specific testing conventions (e.g., Vitest, Playwright, RTL).
  • Use Case: After a developer fixes a bug, they can use this Skill to generate a new test that specifically verifies the fix, preventing the same bug from reappearing later.

Quick Start

Use the regression-test-generator skill to write a test for the fix described in the attached FixResult artifact.

Frequently Asked Questions about regression-test-generator

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

FAQPage Schema
How do I generate regression tests for a bug fix?

Yes, this regression test generator automatically detects project conventions and routes test creation to the appropriate framework, choosing Vitest with React Testing Library for components or Playwright for browser-based testing flows.

Does this regression test generator work with Vitest and Playwright?

Yes, this regression test generator automatically detects project conventions and routes test creation to the appropriate framework, choosing Vitest with React Testing Library for components or Playwright for browser-based testing flows.

What inputs are needed to create targeted regression tests?

Yes, generated regression tests adhere to anti-brittleness constraints. By analyzing fix artifacts and project test patterns, the generator ensures the new test cases remain stable and specifically verify the fix without introducing flaky behavior.

Are the generated regression tests resistant to flakiness?

Yes, generated regression tests adhere to anti-brittleness constraints. By analyzing fix artifacts and project test patterns, the generator ensures the new test cases remain stable and specifically verify the fix without introducing flaky behavior.

When should I automate regression testing after a bug fix?

Automate regression testing immediately after a developer verifies a bug fix. Generating targeted test cases at this stage specifically validates the fix and prevents the exact same bug from reappearing in future development cycles.