Topic 2 of 5 · 4 min read
Changing one thing at a time
Goal: Make one targeted change to a prompt, re-run it more than once, and tell a real improvement from run-to-run variation.
Change one part of the prompt per attempt, then run it more than once before you decide it worked. If you change four things and the answer improves, you do not know which change helped.
Check yourself · 1 of 3
Your prompt gives answers that are too long and too formal. What is the best way to test a fix?
Why it matters
You want to learn what works, so you can do it again next time. Changing everything at once hides the cause. It also hides the harm: one edit may help while another hurts, and the two cancel out.
There is a second problem. The same prompt does not always give the same answer. Assistants such as ChatGPT, Claude and Gemini pick words with some randomness, so two runs of one prompt can differ in length, order and wording. One good answer after an edit may be luck.
How to do it
- Pick the failure you diagnosed, such as "too long".
- Pick one part to change: the task, the context, one constraint, the format, or one example. Leave the rest word for word.
- Make the edit small and specific. Add "Maximum 80 words", not a new paragraph of style advice.
- Run it three times, in new chats if you can, so earlier replies do not influence the result. Compare the three answers to the old ones.
- Keep the change if most runs improve. If the results are mixed, the edit may not matter, or your prompt may be too loose.
- Repeat with the next biggest failure.
Keep a note of each version and what changed. A short list is enough: "v2: added 80-word limit. 3 of 3 runs shorter."
Before and after
Before: I rewrote the whole prompt, added a persona, changed the format and cut the context. The answer is better. Not sure why.
After: I only added "Maximum 80 words". I ran it 3 times. All 3 were under 90 words. The length limit works.
The second version gives you a rule you can reuse.
What goes wrong
- People judge a change by one run. Variation alone can make a single answer look better or worse.
- People change two things "because they are related". If you must change a pair, treat the pair as one change and say so in your notes.
- People forget to keep the old version. Without it, you cannot go back when a change makes things worse.
Examples
One edit, three runs
Problem: summaries come back with 6 paragraphs. Edit: add "Use exactly 3 bullet points." Run 3 times. If all 3 give 3 bullets, keep it. If one gives 5, tighten the wording and run again.
A change log
v1: base prompt, 2 of 3 runs too long. v2: added 80-word limit, 3 of 3 fine, but tone cold. v3: v2 plus "warm, plain tone", 3 of 3 fine. One change per line makes the story easy to read later.
Key points
- Change one part per attempt so you know which change caused the result.
- The same prompt can give different answers, so one run proves little.
- Run each version about three times before you decide.
- Keep a short note of each version and what you changed.
- Keep an edit only when most runs improve, and drop it if results are mixed.
Common mistakes
- Changing several parts at once and crediting the wrong one.
- Trusting a single good run.
- Not saving the earlier version, so you cannot go back.
- Editing a part that was not the cause of the failure.
Check yourself · 2 of 3
Why should you run an edited prompt more than once?
Check yourself · 3 of 3
You changed the format and the tone, and the answer improved. What should you do next?
Practice items, not counted towards your mastery.
Start here
- Prompting best practices (Claude docs) (opens in a new tab)DocsFree
Anthropic's own guide to being clear and specific, and to adjusting a prompt when output misses the mark.
- Prompt engineering best practices for ChatGPT (opens in a new tab)ArticleFree
OpenAI's short help-centre page on being specific, giving context and refining a prompt step by step.
- Develop test cases (Claude docs) (opens in a new tab)DocsFree
Shows how to build test inputs and success criteria so you compare prompts on evidence.