Prompt engineering is the practice of writing and revising the instructions you give an AI model until it produces what you need. OpenAI defines it in one line as “the process of writing effective instructions for a model”. The skill is close to briefing an editor or a freelancer: say who the reader is, what the piece is for and what form it should take, show an example, and revise the brief when the draft misses.
This page sets out what Anthropic's, OpenAI's and Google's own prompting guides recommend, shows one prompt before and after, and says where prompting stops helping. The guides were read on November 18, 2026. Ready-made prompts are in ChatGPT prompts for writing and Claude prompts for writing, and tools that write a prompt for you are compared in AI prompt generators.
What the vendor guides recommend
Anthropic's, OpenAI's and Google's guides are written for developers, but the advice carries over to anyone asking a model for a draft or an edit. Each row below is backed by at least two of the three vendors.
| Technique | What the guides say | In a writing request |
|---|---|---|
| TechniqueBe clear and specific | What the guides sayAnthropic's test: show the prompt to a colleague who has little context. If they would be confused, the model will be too. | In a writing requestName the reader, the purpose, the length and the form. |
| TechniqueGive context and reasons | What the guides saySupply the background the model needs instead of assuming it (Google). Explain why a rule matters, and the model can generalize from the reason (Anthropic). | In a writing request“No jargon: the readers are patients, not clinicians.” |
| TechniqueShow examples | What the guides sayAnthropic suggests three to five, varied. Google recommends always including some and warns that too many can make the model copy them too closely. | In a writing requestPaste two or three paragraphs in the voice you want. |
| TechniqueGive a role | What the guides sayA role focuses behavior and tone, even at one sentence (Anthropic). OpenAI's help center calls it assigning a persona. | In a writing request“You are a line editor at a trade nonfiction imprint.” |
| TechniqueMark the parts | What the guides sayUse Markdown headings or XML-style tags to separate instructions from the material they apply to (OpenAI, Anthropic). | In a writing requestPut the draft inside a tag so it is not read as instructions. |
| TechniqueBreak up big jobs | What the guides saySplit a long task into a chain of smaller prompts (Google, Anthropic). | In a writing requestOutline first, then one section at a time. |
| TechniqueIterate | What the guides sayReview the output and refine the prompt: reword, add context, reorder (OpenAI, Google). | In a writing requestChange one thing in the brief and run it again. |
Anthropic's guide describes the model as “a brilliant but new employee” who lacks context on how you work. A freelancer is in the same position on day one, which is why a good prompt carries much the same information as a content brief. The guide adds one habit worth copying: say what you want, such as flowing paragraphs, instead of listing what you don't.
One prompt, before and after
Write a blog post about growing tomatoes in pots.
You are helping me draft a post for my gardening newsletter. The readers are beginners who live in apartments and have a balcony, not a garden.
Task: a 600-word post on growing tomatoes in containers. Cover, in this order: pot size, soil, watering, and the two mistakes beginners make most often. Leave out growing from seed, because most of them will buy seedlings.
Voice: first person, plain, a little dry. Match the sample between the tags, which is from an earlier issue.
<sample> (two paragraphs pasted here) </sample>
The second version names the reader and the purpose, fixes the length and the order, attaches a reason to its one exclusion, and marks the sample off from the instructions. All of it is information the first version left the model to guess.
Where prompting stops
- Results vary from run to run. OpenAI's guide says model output is non-deterministic and calls prompting a mix of art and science. Run a prompt more than once before you judge it.
- Prompts age with models. OpenAI advises different prompting for its reasoning models, which work from high-level goals, than for models that need explicit instructions, and it recommends re-testing prompts when the model changes. Anthropic keeps a separate guide per model. Google notes that its newest Gemini models ignore custom temperature settings. Advice written for an older model may no longer apply.
- A prompt cannot supply missing facts. No wording guarantees that a model will not invent a source. Anthropic's guidance is to hand over the documents and ask for quotes, and it says even that reduces the problem without removing it. Its overview makes the general point that some failures are better solved by other means than the prompt.
- The vocabulary is unsettled. The Prompt Report, an academic survey first posted in 2024, catalogs 58 text prompting techniques and says the field suffers from conflicting terminology. The table above is the small part the vendor guides share.
Prompts, system prompts and context
A prompt is what you type in one message. Instructions you want applied to every chat belong in a system prompt, or in saved settings that work like one, such as custom instructions. Reference material belongs in an attached file, where the model can quote from it. Before rewording a prompt that keeps failing, check that each piece of information sits in the right one of the three.
Prompting in Strokes
In Strokes, a desktop writing app for macOS and Windows, common requests need no prompt: Improve writing, Summarize, Expand weak areas and Analyze writing style are one-click actions. For anything else you ask the Strokes Assistant in the panel beside the document, and each edit it proposes arrives in the text as a suggestion you accept or reject. You can also describe an AI reader of your own, which reads the whole document and comments without changing it.
Frequently asked questions
What is prompt engineering in simple terms?
It is asking a model for something in a way that gets a usable answer, and adjusting the request when it doesn't. OpenAI's help center describes it as designing and optimizing input prompts to guide a language model's responses. In everyday use that means giving context, stating the format you want, showing an example and trying again with a clearer request.
Is there an official prompt engineering guide?
The three largest model vendors each publish one, free to read. Anthropic publishes an overview and a longer best-practices reference, with separate guides for individual Claude models. OpenAI has a developer guide and a shorter help-center article written for ChatGPT users. Google documents what it calls prompt design strategies for Gemini. Each is written for its own models, so read the one that matches the assistant you use.
How many examples should a prompt include?
Anthropic's guide suggests three to five and asks that they be relevant to the task and different from one another, so the model does not pick up an accidental pattern. Google recommends always including a few and cautions that too many can lead the model to imitate them too closely. For a voice sample, two or three paragraphs of your own writing is a reasonable start.
Does the same prompt work in ChatGPT, Claude and Gemini?
The basics carry over: a clear task with its context and an example. Details differ. Each vendor documents its own preferences for structuring a long prompt, and each says its advice is tied to particular models. If you move a prompt you rely on from one assistant to another, run it a few times there and adjust before trusting the result.




