When a reusable prompt produces an unhelpful answer, start by writing down the failure in concrete terms. “The summary invented a deadline” gives you something to investigate. “The model was bad” does not. Preserve the input, instruction version, and observed answer in a form you are authorized to keep, then decide which assumption needs checking.
This article is about debugging instructions. If you are reviewing a software defect, the code-review guide offers a different evidence-first template. Here, the object you are changing is the wording and context of a repeatable request.
Separate the instruction from the input
A reusable prompt usually contains several layers: the task, background context, changing input, constraints, and the requested output. Read each layer separately before editing anything.
Imagine an instruction that says “summarize the customer's requested next steps,” followed by a message containing three suggestions and one confirmed decision. If the output turns every suggestion into a commitment, the problem might be ambiguous wording about agreement. It might also be that the source itself is unclear. Those explanations call for different revisions.
Use the prompt organization guide to separate stable instructions from variable context. A request becomes easier to debug when you can tell which words belong to the method and which belong to today's material.
State the observed failure and the expected behavior
Write a short comparison before proposing a fix. Include the specific sentence or field that caused concern and the evidence that supports your expectation.
For example: “The output labels Friday as the delivery date. The input says only that Friday might work. Expected behavior: retain the uncertainty or mark the date as unconfirmed.” This statement is narrow enough to check after a revision.
Avoid turning preferences into factual defects. A longer answer might violate a requested limit, or it might simply be longer than you personally wanted. Clarify the contract first. If the prompt never defined the expected length or level of detail, record that gap instead of claiming the instruction was ignored.
Check whether the required evidence was available
Before adding stronger wording, ask whether the model received the information needed to do the job. A request to compare two policies needs both policies, or an explicit instruction about how to handle the missing one.
Look for omitted attachments, unexplained abbreviations, stale context, and references such as “use the usual format.” A person familiar with your work may understand those references. A fresh conversation may not.
Add only the missing context that matters. Pasting an entire project history can introduce contradictions and private information while leaving the essential requirement unclear. Use a compact, fictional example when that is sufficient to preserve the failure you are investigating.
Form one testable hypothesis
Choose a plausible explanation and write what you expect a revision to change. For the deadline example, the hypothesis might be: “The instruction does not distinguish proposals from confirmed commitments.”
A corresponding revision could ask the reader to preserve whether each action is proposed, agreed, or unresolved. That change targets the stated failure. Adding a new role, a scoring system, six examples, and a different output format all at once would make it difficult to tell which change mattered.
One change at a time is an editing discipline, not a promise of causal certainty. Outputs can vary, and tools may change. Keep the conclusion proportional to what you actually observed.
Compare under equivalent conditions
Keep the original input available. Run the earlier and revised instructions with equivalent context when you can do so within your existing permissions and budget. Use fresh conversations if preceding messages would influence the result.
Record the date and visible tool or model identity. Do not claim to control settings that the interface does not expose. If the task depends on retrieved information, note that the available material may differ between runs.
Inspect the answer against the expected behavior, rather than asking whether it feels more polished. In the fictional example, check whether Friday remains tentative. Also check that an explicitly confirmed date elsewhere is still preserved. A revision that labels every date uncertain creates a different failure.
Add a case that could disprove the fix
A useful check includes an ordinary case and a case where the new instruction might overreach. For a commitment summary, try a source with a clear agreement, another with a proposal, and another with no next action.
The expected behavior differs across those cases. Confirmed actions should remain confirmed. Proposals should remain proposals. Empty evidence should not generate a full action plan.
Do not call the revision reliable after one successful answer. Treat the result as an observation from the examples you checked. If the instruction matters repeatedly, preserve a small test collection and revisit it when the wording or execution conditions change.
Decide whether to revise, split, or stop
Some failures reveal that one prompt is trying to do too much. Extracting facts, deciding priorities, and drafting a customer reply may need separate review points because they involve different judgments.
Split the workflow when a person needs to verify one result before the next step can safely use it. Record what that person must check. Saving a sequence of instructions does not itself automate the sequence or verify the intermediate answers.
Sometimes the right decision is to stop using the prompt for a task whose evidence you cannot inspect. More emphatic wording cannot supply missing access or replace accountable judgment. Preserve that boundary in the instruction's purpose note so future reuse does not quietly expand its scope.
Keep the reason for the change
Finish with a short revision record. Name the observed failure, the hypothesis, the wording change, the examples checked, and the unresolved question. Keep sensitive inputs out of shared notes.
A useful entry might say: “Added an agreement-status field after a tentative date became a commitment; checked three fictional cases; broader reliability remains unmeasured.” The next person can understand the decision and test it again. That is the purpose of debugging a reusable prompt: leave a clearer working instruction and an honest account of why you changed it.
