Minimal bug reproduction
Output environment, steps, expected/actual and missing information; do not guess the root cause.
Prompt effect has not been tested.
A prompt is a re-runnable template, not a promise of results. Changing the model, version or input can change the outcome. Use the checkpoints on this page to verify it yourself, and treat the official sources as evidence of mechanism rather than a guarantee of effect.
Task and inputs
Output environment, steps, expected/actual and missing information; do not guess the root cause. Inputs: Bug description, log excerpts, and environment information.
The prompt
Turn the bug into a minimal reproduction. Output environment, steps[], expected, actual and missing[]. steps must be executable and come from the description; put unprovided versions/config into missing, do not fill defaults. Do not give a root-cause conclusion.
Replace {field} placeholders with the current inputs before running.
Expected output shape
environment, steps[], expected, actual, and missing[].
Checkpoints
- Each step is supported by the description.
- Missing items are explicit.
- No root-cause assertion.
Failure branches
- Steps not executable: fill missing items and rerun.
- Insufficient logs: keep only checkable excerpts.
Sources and limits
This site has not tested the effect of this prompt. See the sources for the mechanism; changing model, version or input can change the result.
Sources
| Source | URL |
|---|---|
| OpenAI Cookbook: GPT-4.1 Prompting Guide (official repository raw, fetched 200 on 2026-11-07) | https://raw.githubusercontent.com/openai/openai-cookbook/main/examples/gpt4-1_prompting_guide.ipynb |
Source snapshot: 2026-11-07; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.