Prompt Engineering in Practice
Move from one-off prompts to reusable prompt assets with variables, examples, tests and a review process.
6 modules · 240 estimated minutes · Final project included
Why prompts deserve engineering
A prompt is a specification. If the specification is ambiguous, the output will be inconsistent even with a strong model. Prompt engineering is the discipline of making the task, context and success criteria explicit.
The core loop
- Write the smallest prompt that could work.
- Run it on five to ten realistic inputs.
- Record failures in categories, not just "bad output".
- Change one thing at a time.
- Keep the version that improves the common cases without breaking the edge cases.
What this path will not do
It will not give you a magic prompt that works for every model. Model behaviour changes between versions, and a prompt tuned on one provider may underperform on another. Treat every published prompt as a starting point that needs testing on your own inputs.
What you will achieve
- Design prompts with explicit input and output contracts
- Use few-shot examples without overfitting to one case
- Build a small evaluation set and compare prompt versions
- Document prompts so colleagues can reuse them safely
Prerequisites
- Comfort using a chat assistant daily
- Basic familiarity with spreadsheets for test tracking
Modules
Work through them in order. Each module links to the supporting tutorial where one exists.
- 1
The anatomy of a reliable prompt
Role, task, context, constraints, examples and output format.
What Is Prompt Engineering? - 2
Variables and templates
Separate the reusable instruction from the case-specific input.
What Is Prompt Engineering? - 3
Few-shot examples that generalise
Choose diverse examples and avoid leaking the expected answer.
How to Evaluate AI Output - 4
A lightweight evaluation harness
Score outputs against explicit criteria instead of vibes.
How to Evaluate AI Output - 5
Iterating without regressions
Version prompts and keep a changelog of what changed and why.
- 6
Publishing a prompt others can trust
Write usage notes, limitations and examples.
What Is Prompt Engineering?
Final project
Prove it with a small, real deliverable
Build a three-variable prompt for a real task, test it on ten inputs, and write a short evaluation note describing where it fails.
Prefer to browse individual lessons?
All tutorials →