Bug 复现步骤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
把 bug 描述整理成最小复现步骤。 输入:bug 描述、日志片段、环境信息。
Output environment, steps, expected/actual and missing information; do not guess the root cause. Inputs: Bug description, log excerpts, and environment information.
提示词本体The prompt
把 bug 整理成最小复现。输出 environment、steps[]、expected、actual、missing[]。steps 必须可执行且来自描述;描述未给的版本/配置列入 missing,不得补默认值。不要给根因结论。
占位符用 {字段} 标注,运行前替换为本次输入。
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、missing[]。
environment, steps[], expected, actual, and missing[].
检查点Checkpoints
- 每步能由描述支持。
- missing 项明确。
- 无根因断言。
- Each step is supported by the description.
- Missing items are explicit.
- No root-cause assertion.
失败分支Failure branches
- 步骤不可执行:补 missing 后重跑。
- 日志不足:只保留可核对片段。
- 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(官方仓库 raw,2026-11-07 直抓 200)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.ipynbhttps://raw.githubusercontent.com/openai/openai-cookbook/main/examples/gpt4-1_prompting_guide.ipynb |
资料快照日期:2026-11-07;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。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.