Prompt engineering guide
Learn to write the prompt yourself.
Prompt engineering is telling a model what you want, checking what comes back and improving the instructions. 11 short chapters with pictures, templates and exercises, for any AI.

1
Your page is its briefing
What you leave out about your task, the model guesses, often towards the ordinary.
2
Describe the result
Say who it is for and what a good answer does, not only the topic.
3
Test, then change
Run it, look at what came back and change one thing at a time.
Table of contents
Read it front to back, or jump straight to the part you need.
Foundations
- 01How a model reads your promptAbout your task, a model knows what you give it. How it fills gaps, why it takes you literally and why capitals can backfire.
- 02Anatomy of a promptThe parts of a prompt that carry the weight: task, context, limits, output format and a short role, put together step by step.
Techniques
- 03Teaching with examplesShow instead of describing: when examples help, how to build a set that doesn't mislead, and when to try without.
- 04Letting the model thinkWhen step-by-step reasoning helps, why newer models need less of it and how to make a model check its own work.
- 05Breaking a task into stepsOne prompt, one job: how to split big tasks, chain the results, let a model revise its own draft and combine parts.
- 06Long inputs and structureHeadings and tags that keep a long prompt readable, where to put long documents and how to ask for the shape you want back.
- 07Meta-promptingAsk a model to write, critique or repair a prompt, without handing over your judgement: the pyramid, two templates and a check.
Practice
- 08Common mistakesVague goals, missing context, instructions that fight each other and other habits that quietly ruin a prompt, each with a fix.
- 09Testing and improvingDecide what good means, keep a few test cases, change one thing at a time and keep the versions that win.
- 10Prompting exercisesSix short exercises, from making a request specific to repairing a prompt that fails, each with what to look for.
- 11Prompt templates and checklistA general skeleton, templates for writing, analysis, code review, learning and images, and a checklist to run before you send.
Where this comes from
Each technique rests on the official prompting guides from Anthropic, OpenAI and Google, linked in the chapters. Where they disagree, the guide says so. Models change quickly, so test what you read on the model you use.
Rather not write it yourself today? Finn asks about the gaps in one message and writes the prompt for you: start a chat.