How to Test a Prompt
Why test a prompt?
A prompt that works once may not work twice. It may have worked because your first input was easy, or because the topic suited the model, or by luck. Testing a prompt means running it on several different inputs and checking whether the output is consistently good — not just good once. This guide shows you a simple way to test any prompt in about fifteen minutes: try it on three different inputs, judge each result against a short checklist, and fix the prompt based on what you find.
Step 1: Pick three different inputs
Choose three inputs that are genuinely different from each other, not three versions of the same thing. If you are testing a blog-post prompt, pick three topics that differ in difficulty: one easy topic you know well, one topic you know little about, and one topic that is awkward or narrow. If you are testing a customer-reply prompt, pick three messages: a simple question, an unhappy customer, and a confusing message that is hard to answer. The point of three different inputs is to find where the prompt breaks.
Step 2: Run the prompt three times
Run the prompt once per input, in a fresh conversation each time, so the earlier runs do not influence the later ones. Use the same prompt wording for all three runs — if you change the prompt between runs, you are no longer testing the same prompt. Save each result with its input, so you can compare them side by side.
Step 3: Judge each result against a checklist
Read each result and ask the same five questions:
- Did it do the job? Does the output answer the task you set, or does it drift into something else? 2. Did it follow the format? Are the headings, the length, and the structure the ones you asked for? 3. Are the facts right? Did it use only the facts you gave it, or did it invent numbers, names, or claims? Check this against your input, not against your memory. 4. Is it usable as it stands? Could you use the result with light editing, or would you need to rewrite it? 5.
Step 4: Fix the prompt based on what you found
Fix one problem at a time, starting with the most common failure. If all three results invented facts, add a stronger rule: “Use only the facts I gave you. If a fact is missing, write [ADD DETAIL] instead of guessing.” If the format drifted, make the structure shorter and more explicit — a numbered list of sections is easier to follow than a paragraph describing the structure. If the results were too generic, add a request for a concrete example, or give the model one real example of your own to include.
Step 5: Decide when the prompt is good enough
A prompt does not need to be perfect. It needs to be good enough that its output is useful with light editing, on all three of your test inputs. If two of the three results are good and the third is weak, ask whether the weak input is a fair test — an impossible input will fail any prompt — or whether the prompt genuinely needs work. If the prompt works on three different inputs, it will probably work on a fourth.
A short example
Imagine you are testing a product-description prompt. Your three inputs are a tote bag, a candle, and a piece of software. You run the prompt three times and find that all three descriptions are good, but the software description invents a feature you never mentioned. The fix is one sentence: “Use only the features I listed. Do not add features.” You run the three inputs again, and this time the software description sticks to your list.