bug-reproduction-test-generator

Generate failing FanHub tests that reproduce reported bugs.

2|9|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/MSBart2/CopilotTraining --skill bug-reproduction-test-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bug-reproduction-test-generator
Source: https://github.com/MSBart2/CopilotTraining/tree/main/workshop/examples/completed-config/skills/bug-reproduction-test-generator
Command: npx skills add https://github.com/MSBart2/CopilotTraining --skill bug-reproduction-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you write failing tests that reproduce reported bugs in the FanHub application. Following test-driven debugging principles, creating a failing test first ensures the bug is properly understood.

Core Features & Use Cases

  • Test Structure: All FanHub tests follow the pattern described in bug reproduction examples, using describe/it blocks, setup, and assertion scaffolding to capture bugs.
  • Common Bug Categories: Data Integrity Issues, Null Reference Errors, Incorrect Query Results, and Business Logic Errors guide test design and coverage.
  • FanHub Schema Constraints: Align tests with schema rules for Characters, Episodes, and Quotes to ensure realistic failing scenarios.
  • Guided Reproduction Tips: Document expected vs. actual behavior, reference issue numbers, and ensure the test fails initially to verify the bug.

Quick Start

Use the bug report to guide the generator and produce an initial failing test scaffold.

Frequently Asked Questions about bug-reproduction-test-generator

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

FAQPage Schema
How do I write a failing test to reproduce a bug in JavaScript?

To write a failing test that reproduces a bug, you start with a structured describe/it pattern, set up realistic seed data, and add an issue-number annotation to validate the reported behavior before implementing any fix.

What is test-driven debugging and when do I need a failing test?

Test-driven debugging is the practice of creating a failing test first to ensure the bug is properly understood. You need this process when a bug report exists and you require a demonstrable test to validate the issue before fixing it.

How do I generate bug reproduction tests for FanHub data integrity errors?

You generate bug reproduction tests for FanHub data integrity errors by aligning test scenarios with schema constraints for Characters, Episodes, and Quotes, ensuring the scaffolding captures realistic failing conditions.

Does this bug reproduction test generator work with existing JavaScript test patterns?

Yes, the bug reproduction test generator works with existing JavaScript test patterns by applying the describe/it block structure, setup procedures, and assertion scaffolding required to anchor FanHub debugging efforts.

What's the best way to structure a test scaffold for null reference errors?

The best way to structure a test scaffold for null reference errors is to document expected versus actual behavior, reference the issue number, and ensure the test fails initially to verify the bug within the describe/it pattern.

Why does my generated bug reproduction test pass before the code is fixed?

If your generated bug reproduction test passes before the fix, the test may not accurately target the incorrect query results or business logic errors; the generator provides guidance to ensure produced tests fail initially to verify the bug.