Prompt engineering flashcards
Ask AI models clearly and get reliable results.
What is engineering, in one plain sentence?
The skill of asking an AI chat assistant clearly, so it gives you a useful answer the first time and every time.
Tap to turn over. Swipe right if you know it, left to see it again.
What you will learn
Start from zero
- What prompting is4 cards
- The key words5 cards
- Getting ready3 cards
Core basics
- Clear instructions6 cards
- Context and planning5 cards
- Zero-shot and few-shot examples2 cards
- Output format2 cards
- Limits and safe use3 cards
Next steps
- System prompts and templates3 cards
- Reasoning3 cards
- Structured and controlled output4 cards
- Long documents, images and grounding3 cards
- Chaining and cost2 cards
- Evaluating prompts3 cards
Go deeper
- Prompt injection and safety3 cards
- Context engineering5 cards
- Agents and tools2 cards
- Testing and running in production4 cards
- Advanced techniques and failure modes3 cards
Final test and certificate
10 questions drawn fresh from the whole topic, about 15 minutes. Sign in, score 80% or more and get a free certificate with your name and a public check link anyone can open, such as an employer or a teacher. Not signed in? Try a practice test from the cards.
Take the final testAbout these cards
- Reviewed 26 October 2026
- CoversCurrent chat and reasoning models from major providers, October 2026Provider structured output (JSON schema) featuresOWASP Top 10 for LLM Applications, current edition
Checked against
Prompt engineering at a glance
Prompt engineering is the skill of asking an AI assistant clearly so it gives useful answers every time.
Like giving clear directions to a smart new delivery driver who has never been to your street.
Words you will meet
- Model
- The AI program that writes the replies
- Prompt
- Everything you send the model: request, rules and pasted text
- Context
- The background facts the model needs to answer well
- Output
- The reply the model gives back
- Format
- The shape you want back, like bullet points or a table
- Example
- A sample answer you show so the model copies the pattern
- Token
- A small piece of text that models count for length and cost
The steps
- 1. Start from zero (12 cards): What prompting is, the key words in plain English, and your first better ask.
- 2. Core basics (18 cards): Clear asks, context, examples, format and testing on real inputs.
- 3. Next steps (18 cards): System prompts, reasoning, JSON, chaining, grounding and comparing versions.
- 4. Go deeper (17 cards): Injection, context engineering, caching, agents, judges and prompt ops.
All 12 cards in Start from zero
- What is prompt engineering, in one plain sentence?
- The skill of asking an AI chat assistant clearly, so it gives you a useful answer the first time and every time.
- What goes wrong without it?
- You type a vague request, get a vague or wrong answer, and spend ten tries fixing it. The AI is not lazy; it simply had to guess what you meant.
- Where do you already meet AI assistants?
- Chat assistants on your phone or computer, writing help inside email and documents, the help chat on shopping sites and voice assistants that answer questions.
- What is an everyday picture for prompting?
- Giving directions to a new delivery driver who has never been to your area. 'Near the temple' fails; 'second lane after the temple, blue gate, house 14' works.
- What do model and prompt mean?
- A model is the AI program that writes the replies; it learned from huge amounts of text. A prompt is everything you send it: your request, rules and pasted text.
- What are context and output?
- Context is the background the model needs, like who the reader is or the document itself. Output is the reply the model gives back.
- What do format and example mean in a prompt?
- Format is the shape you want back, like 3 bullet points or a table. An example is a sample answer you show, so the model copies its style and pattern.
- What is a token?
- A small piece of text, often part of a word, that models count. Long prompts and long replies use more tokens, which costs more time and money in apps.
- What is a role or persona?
- A line like 'You are a friendly travel guide' that sets the voice and style of the reply. It changes how the model sounds, not what it knows.
- What do you need before starting?
- Any AI chat assistant in a web browser and a few real tasks of your own. Nothing to install and no coding needed for the first levels.
- What is a first tiny win?
- Compare two asks. The second names the task, the reader and the format, so the reply fits on the first try.
- What will you be able to do after this topic?
- Write prompts that work on the first try, get answers in the exact format you need, test a prompt on many inputs and build reliable prompts for apps.
Prompt engineering cheatsheet
Prompt skeleton
RoleWho the model is and who it servesTaskOne clear verb: classify, extract, draft, reviewContext<docs>,<ticket>, facts the model cannot knowRulesLimits with reasons, in priority orderExamples2 to 5 varied input and output pairsFormatExact schema, length, languageFallbackWhat to say when it cannot answer
Techniques by problem
Wrong formatStructured output, schema, one exampleInconsistent labelsFew-shot with borderline casesMade-up factsAnswer only from<docs>, quote firstShallow long outputChain: outline, sections, reviewLogic errorsReasoning model, or<thinking>then<answer>Misused toolsRewrite tool descriptions, when not to use
Phrases that work
Reply exactly: Not in the documents.Fixed fallback you can detect in codeBefore you start, ask me up to 3 questions.Fill missing details firstUse the language of the user's message.Multilingual repliesNo text before or after the JSON.Clean machine outputIf unsure, choose the label other.Honest uncertaintyList what you assumed.Surfaces hidden guesses
Settings
temperature 0 to 0.3Extraction, classification, codetemperature 0.7 to 1.0Ideas and creative draftsreasoning effortlow, medium or high on reasoning modelsmax output tokensCost cap, not a length instructionJSON Schema, strictGuaranteed parseable outputPinned snapshotNo silent behaviour changes
Safety checklist
Delimit untrusted text<email>,<page>,<tool_result>Least-privilege toolsRead-only unless writing is neededHuman approvalBefore send, pay, delete, publishNo secrets in contextKeys and tokens stay in codeValidate outputsSchema, allow-lists, URL filtersLog prompt versionsTrace every answer to its prompt