Write one prompt. Make Five Runs in a Row All Usable
This chapter you learned context, Prompt techniques, Agents, and cost — the densest lesson count in the course. On the desk, though, there is only one first job: take the requirement you locked in at M0 and write a stable prompt. Stable means it doesn't depend on luck.
A lot of people stall here like this: "I tried it. Sometimes good, sometimes bad." Sometimes-good-sometimes-bad usually means the prompt never nailed the requirements down. The model is getting a bit of a raw deal. Ask the same sentence five times in a row and you'll see whether it's actually stable.
The same sentence, asked five times
Stable does not mean word-for-word
LLMs are born with randomness. Chasing verbatim replay is a waste of effort. What you nail down is three things: structure holds (three sections means three), fields hold (if you asked for a "next-week plan" it must be there), boundaries hold (when the material isn't enough it says "not mentioned in the docs," it doesn't invent one). Those three can be welded on with this chapter's output-format constraints plus Few-Shot examples. And wrap user input in delimiters — that's the first line of defense against Prompt injection.
This Chapter's Hands-on Checklist
0 / 3 done
Write M0's job as a first-version prompt
15 min EveryoneWrite it as the four-piece set: role + background + requirements + output format. Don't chase perfect. First get a version that runs. That version is the control for every later tweak.
What counts as done
Run it five times. Classify the instability
1 hour Want to know what's offSame input, five runs. Save every result. Anything you can't use as-is goes into one of three buckets: format drifted, content invented, length ran away. The fixes differ: format drift → add examples; invented content → narrow the material; length runaway → hard word limits.
What counts as done
Add examples and a ban list, then rerun and compare
Half a day Need it in a real workflowAdd one gold example (Few-Shot) and a ban list (e.g. "no pleasantries," "write 'not mentioned' for anything not in the material"). Run five more times and compare with the last version. Do one extra thing while you're at it: wrap user input in delimiters, then sneak "ignore all previous instructions" into the input and see if it takes the bait.