bug-reproduction

Enforce a failing test before fixing reported bugs in CI pipelines.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/imankha/video-editor --skill bug-reproduction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bug-reproduction
Source: https://github.com/imankha/video-editor/tree/main/src/backend/.claude/skills/bug-reproduction
Command: npx skills add https://github.com/imankha/video-editor --skill bug-reproduction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines and enforces a test-first bug reproduction workflow so that every bug is accompanied by a failing test before the fix.

Core Features & Use Cases

  • Test-first workflow: Ensure a failing test is written before any fix.
  • Reproducible bugs: Provide clear steps to reproduce and verify failures.
  • Quality assurance: Prevent regressions by documenting the reproduction and verification process.

Quick Start

Run the bug-reproduction workflow to write a failing test that reproduces a reported bug, then implement the fix and run all tests to verify.

Frequently Asked Questions about bug-reproduction

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

FAQPage Schema
How do I write a failing unit test to reproduce a reported bug?

Using a test-first bug reproduction workflow ensures a failing test is written before any fix. This approach automates bug discovery, generates test stubs, documents reproduction steps, and validates the fix against the failing test to prevent future regressions.

Can I use bug reproduction workflows to prevent regression testing failures in CI pipelines?

Yes, bug reproduction prevents regression testing failures by enforcing a failing test before fixes in CI pipelines. This documents the verification process and ensures every resolved bug is accompanied by a test that catches future regressions.

What is the best way to document steps to reproduce flaky tests?

The best way to document flaky test reproduction is to use a test-first workflow that generates test stubs and records the exact steps to reproduce and verify failures. This ensures the reproduction process is documented so fixes can be validated against the failing tests.

Does this test-first bug reproduction workflow work with pytest?

Yes, this test-first bug reproduction workflow applies to software projects using pytest and unit tests. It integrates into existing CI pipelines to automate the discovery of bugs and enforce the creation of failing tests before any fixes are implemented.

Why should I write a failing test before fixing a bug?

You should write a failing test before fixing a bug to ensure reproducibility and enable quality assurance. This test-first approach validates the fix against the failing test, documents the reproduction steps, and prevents the same defect from causing future regressions.

What are the limitations of using a test-first workflow for bug reproduction?

A limitation of test-first bug reproduction is that it requires a software project with existing unit tests and CI pipelines. It is only effective when the workflow can generate test stubs and document steps, making it unsuitable for environments lacking automated test infrastructure.