Cheat sheet
Prompt patterns cheat sheet
Copyable prompt patterns for Claude, ChatGPT and Gemini: briefing, examples, output formats, long documents, checking the work and avoiding made-up answers.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
A reference of prompt patterns that work across Claude, ChatGPT, Gemini and other current models. Each one is a starting point: replace the parts in square brackets. For the reasoning behind them, see Prompting fundamentals.
The brief
The pattern behind most good prompts. Say who you are, what the job is, who it is for and what done looks like.
I'm [role] working on [situation].
I need [the deliverable] for [audience], who will use it to [purpose].
It must:
- [requirement]
- [requirement]
It must not:
- [boundary]
Length: [limit]. Tone: [tone].
Separate instructions from material
Wrap pasted content in tags so the model knows where it begins and ends, and refer to it by name.
<report>
[paste the document]
</report>
Using only the text inside <report>, list the three biggest risks it identifies.
Quote the sentence that supports each one.
Show the format with an example
One example of the output pins down shape and length better than any description.
Write a one-line summary for each ticket, in exactly this format:
[BUG] Checkout button unresponsive on Safari 18; affects ~5% of orders.
Vary your examples if you give more than one, or every answer will copy the same pattern.
Permission to say “I don’t know”
The most effective guard against invented answers.
If the information is not in the material provided, write "Not stated" instead of guessing.
For drafts with gaps:
Where a fact or number is missing, write [MISSING: what is needed] so I can fill it in.
Ask for quotes and sources
Makes answers checkable in seconds.
For each point, quote the exact sentence from the document that supports it,
with the section heading it appears under.
Structured output
For anything code will read. Prefer your tool’s structured-output feature with a schema; when that is not available:
Return JSON only, no prose before or after, matching this shape:
{"category": "billing" | "bug" | "other", "urgent": true | false, "summary": "<one sentence>"}
Always validate the result in code. See structured outputs.
Long documents
Put the document first and the question at the end. Ask the model to find the relevant parts before answering.
<contract>
[long text]
</contract>
First, list the clauses relevant to termination, with their numbers.
Then answer: under what conditions can we end the agreement early, and with how much notice?
Break a big job into steps
One prompt per step, each feeding the next, beats one giant request.
Step 1: "List the main arguments in this paper, one line each."
Step 2: "For argument 3 from that list, what evidence does the paper give? Quote it."
Step 3: "Draft a 200-word critique of argument 3 for a journal club."
Critique, then revise
Models are better at improving a draft against criteria than at getting everything right first time.
Here is my draft. Check it against these criteria and list every place it falls short:
1. [criterion]
2. [criterion]
Then rewrite it to fix those issues. Change nothing else.
Make the model ask first
Useful when you are not sure what you need.
I want to [goal]. Before you start, ask me up to five questions that would most
change your answer. Wait for my replies.
Get alternatives, not one answer
Give me three different approaches to [problem]. For each: one paragraph on how it works,
the main advantage, the main risk, and when you would choose it.
Steelman and red-team
Here is my plan. Argue as strongly as you can that it will fail.
Then tell me which of those objections are most likely to matter in practice.
Adjusting the output
Short follow-ups that work well:
- “Shorter. Keep only what a busy reader needs.”
- “Lead with the decision, then the reasons.”
- “Plainer language; the reader is not a specialist.”
- “Turn this into a table with columns X, Y, Z.”
- “What did you leave out?”
Patterns to avoid
- “Be accurate.” It does not change accuracy. Provide the source material and allow “not stated”.
- Stacking rules after every bad answer. Ask what information was missing instead.
- Vague quality words (“professional”, “concise”) without a length or example.
- Asking for exact counts or totals over long lists. Ask for labels or extracted numbers, and count in code or a spreadsheet.
- Trusting cited sources you have not opened. Check them.
For coding agents
[What is wrong or needed, with a file or function name.]
Constraints: [what not to change].
Done when: [test command passes / behaviour you can observe].
Plan first and wait for my approval before editing.
More in the coding agent cheat sheet.
Next steps
- Adjust them for thinking models with how to prompt reasoning models.
- Go beyond a single prompt with context engineering techniques.
- Not a developer? Start with AI at work for beginners.
- Need a ready-made prompt for an email, summary or meeting rather than a pattern? Use the prompt templates for work.
Covers
Related
- Prompting fundamentals: clear tasks, examples and formats
How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.
- AI at work: a practical start for non-developers
Pick the tasks an assistant does well, write instructions you can reuse, work with your own files and check every answer before you use it.
- Get reliable JSON from an LLM with structured outputs
Describe the output as a schema, let the provider enforce it, validate it with Pydantic AI or the AI SDK, and handle failures.
- What is context engineering?
Context engineering is deciding what a model sees at each step. Why the term replaced prompt engineering for people building agents, and what the work involves.
- Prompting reasoning models
What changes when a model thinks before it answers: write goals instead of steps, choose an effort level, use fewer examples and check the answer properly.