regression-test-generator

Generate regression tests with Arrange-Act-Assert structure for software bugs.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill regression-test-generator-marcus-mok-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: regression-test-generator
Source: https://github.com/Marcus-Mok-GH/Claude-code-conductor/tree/main/.claude/skills/regression-test-generator
Command: npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill regression-test-generator-marcus-mok-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of regression tests for bug fixes, ensuring code stability and preventing future regressions.

Core Features & Use Cases

  • Automated Test Generation: Automatically generates regression tests for bugs discovered during debugging or continuous checks.
  • Framework Detection: Auto-detects the test framework used in the project.
  • Test Creation: Creates complete, framework-appropriate tests with Arrange-Act-Assert structure.
  • Link to Error Log: Links generated tests back to the error-log.md for traceability.
  • Use Case: When a bug is fixed, this Skill can be used to generate a regression test that ensures the bug does not reoccur.

Quick Start

Generate a regression test for a bug by providing the bug details and running the skill.

Frequently Asked Questions about regression-test-generator

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

FAQPage Schema
How do I automatically generate regression tests for bug fixes?

To generate regression tests for bug fixes, provide the bug details, root cause, and affected components. The tool then creates complete tests with an Arrange-Act-Assert structure and links them to your error logs for traceability.

Can regression test generation auto-detect my project's test framework?

Yes, regression test generation can auto-detect the test framework used in your project. It analyzes your codebase to create framework-appropriate tests, ensuring the generated regression tests match your existing test automation setup.

What information do I need to provide to create regression tests for a bug?

Creating regression tests for a bug requires knowledge of the bug details, root cause, and affected components. Supplying this information allows the generator to accurately produce tests that prevent the specific bug from reoccurring.

What is the best way to link regression tests to error logs for traceability?

The best way to link regression tests to error logs is by using a generator that automatically connects the generated test cases back to your error-log.md. This ensures full traceability between the bug fix and its corresponding test.

Does generated regression test code follow the Arrange-Act-Assert pattern?

Yes, generated regression test code follows the Arrange-Act-Assert pattern. This structure is automatically applied to the created tests, ensuring clear separation of setup, execution, and verification for effective test automation and bug fixing.

When do I need to generate regression tests during the debugging process?

You need to generate regression tests during debugging when a bug is fixed, preventing future regressions. Creating these tests immediately after a fix ensures code stability by verifying the bug does not reoccur in subsequent changes.