Module 3 of 8
Prompt engineering and evaluation
Why: A prompt is code without a compiler. You would never merge a test change without running the suite, so a prompt change should not ship on “it looks better” either.
You start by taking TestPilot’s prompt apart, then build what every prompt change needs: a golden set of labelled failures, a scorecard per category and a gate in CI. With that safety net in place you tune for the mistake that costs the most (a false bug report), teach judgement and output shape with examples, and add a model as grader for the parts code cannot check.
Lessons
- Anatomy of a triage prompt (25 min) - intermediate
- A golden set of failures (30 min) - intermediate
- A scorecard per category: precision, recall and what got worse (30 min) - intermediate
- The cost of a wrong verdict (30 min) - intermediate
- Teaching by example, and when examples backfire (30 min) - intermediate
- A model as grader (30 min) - advanced
- Prompt regression in CI (25 min) - intermediate
- Quiz: prompts under pressure (20 min) - intermediate