In the pack: ChatGPT, Claude & Gemini Prompts for Coding and Developers
Build a Minimal Reproduction Case
Prompt
Language / framework and versions: {{LANGUAGE}} / {{FRAMEWORK}}
The code where it happens (as much as needed): {{CODE}}
How I trigger it now: {{CURRENT_STEPS}}
Expected vs actual: {{EXPECTED_VS_ACTUAL}}
Do this:
1. Identify what is probably essential to the bug and what is probably incidental (database, network, framework setup, unrelated fields).
2. Propose a reduction plan: the order in which to remove pieces, and after each removal check that the bug still happens. If it stops, the last piece removed matters.
3. Write a first-draft minimal reproduction: a single file using only the standard library plus the one library involved, with hard-coded inputs, under about 40 lines, that prints or asserts the wrong result.
4. List the exact versions I should record and the command to capture them.
5. Draft the issue text: title, environment, steps, expected, actual, and the reproduction.
Mark anything in your draft reproduction that you couldn't confirm from my code with a comment like `# ASSUMPTION:`. I'll run it and tell you whether it reproduces.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Build a Minimal Reproduction Case” is a free prompt for ChatGPT in the Coding & Software category, 199 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 5 placeholders to fill in first:
{{LANGUAGE}}, {{FRAMEWORK}}, {{CODE}}, {{CURRENT_STEPS}}, {{EXPECTED_VS_ACTUAL}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 26 times.
Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.