Practical and rigorous at the same time. I went straight from reading a capsule to shipping it at work.

Prompt Engineering
The craft of talking to language models.
A hands-on beginner's guide to writing prompts that make large language models do exactly what you mean. Moves from the anatomy of a prompt and core best practices to text-to-text techniques and advanced reasoning strategies like chain of thought, the interview pattern, and tree of thought.
Read on your Kindle or e-reader
Download the EPUB and read offline — perfect for the train. Works on Kindle, Kobo, Apple Books & more.
00Foundations5 capsules
Foundations — 5 chapters.
01What Is Prompt Engineering?conceptfree10 min02How an LLM Reads Your Promptintuitionfree11 min03Why the Same Model Gives Different Answersconcept🔒10 min04The Anatomy of a Promptconcept🔒10 min05Zero-Shot, One-Shot, and Few-Shot Promptingconcept🔒10 min01Best Practices for Prompt Creation6 capsules
Best Practices for Prompt Creation — 6 chapters.
06Be Specific: Kill Ambiguityconcept🔒10 min07Give Context and Assign a Roleconcept🔒11 min08Specify the Output Formatconcept🔒11 min09Use Delimiters and Structurecode🔒10 min10Iterate: Prompting Is a Loopintuition🔒9 min11Common Mistakes and How to Fix Themdeep-dive🔒12 min02The Prompting Toolbox4 capsules
The Prompting Toolbox — 4 chapters.
12The Major LLM Tools: ChatGPT, Claude, Geminiconcept🔒10 min13Chat, Playground, and APIcode🔒11 min14Temperature and the Decoding Controlsmath🔒11 min15System, User, and Assistant Messagescode🔒10 min03Text-to-Text Techniques6 capsules
Text-to-Text Techniques — 6 chapters.
16The Technique Landscapeconcept🔒11 min17Summarization and Compressioncode🔒12 min18Extraction and Classificationcode🔒12 min19Transformation, Translation, and Rewritingcode🔒10 min20Few-Shot Examples in Depthdeep-dive🔒10 min21Role and Persona Promptingintuition🔒11 min04Reasoning Approaches6 capsules
Reasoning Approaches — 6 chapters.
22Why Reasoning Prompts Workintuition🔒10 min23The Chain-of-Thought Approachconcept🔒11 min24Chain of Thought in Practicecode🔒11 min25The Interview Patternconcept🔒10 min26The Tree-of-Thought Approachconcept🔒11 min27Choosing a Reasoning Strategydeep-dive🔒10 min05Putting It Together4 capsules
Putting It Together — 4 chapters.
28Designing a Prompt from Scratchproject🔒12 min29Debugging a Bad Promptproject🔒11 min30Hallucinations, Safety, and Limitsdeep-dive🔒11 min31Capstone: Build Your Own Prompt Libraryproject🔒10 minRatings & reviews
1,160 readersThis is the resource I wish I had when I started. Clear mental models, zero fluff.
Beautifully produced and genuinely deep. The reader experience makes it easy to keep going for hours.
Rare mix of depth and readability. The worked examples are the clearest I have seen on this subject.
I read the free preview on a whim and ended up finishing the whole thing in two sittings. Superb pacing.