How to Write Prompts for Claude (Anthropic’s Own Advice)
Anthropic says Claude “responds well to clear, explicit instructions.” That is good news when your prompt is clear and frustrating when it isn’t, because a vague request tends to get a generic answer. Here is Anthropic’s own prompting advice in plain steps for anyone using Claude in the app or on claude.ai. Every rule comes from Anthropic’s documentation or the Claude Help Center, linked at the end. Where a tip is our own suggestion, the text says so.
- Give context a new colleague would need, and explain why each instruction matters.
- Describe the result you want rather than listing what to avoid.
- Show three to five examples when style matters.
- Use XML tags to separate instructions, context and pasted material.
- Put long documents first and your question at the end.
Each point is explained below.
Start with the colleague test
Anthropic’s prompting guide offers one simple check: show your prompt to a colleague who knows little about the task and ask them to follow it. In Anthropic’s words, “If they’d be confused, Claude will be too.” The same page describes Claude as “a brilliant but new employee” who doesn’t know your norms or workflows.
That framing explains why short prompts disappoint. “Write a product description for my candles” leaves a new employee guessing about the shop, the customers, the length and the tone. Claude has to guess too, and a guess made without context is, in our view, likely to be safe and general.
Our suggestion: answer five questions before you type. What do you want made, who is it for, what do you know that Claude doesn’t, what shape should the answer take, and what does a good result look like?
Give context, and say why it matters
Anthropic recommends explaining the reason behind an instruction, not only the instruction. Its example: instead of “NEVER use ellipses”, say the answer will be read aloud by a text-to-speech engine that can’t pronounce them. The guide notes that “Claude can generalize from the explanation”, so the reason can guide related choices the instruction never mentioned.
The same works for everyday tasks. Compare these two requests from a tutor:
- Without the why: “Keep the explanation short.”
- With the why: “Keep it short, because my students read it on their phones between classes and many speak English as a second language.”
The second version implies plain words, short sentences and no dense tables, without you listing each rule. Useful context includes your role or business, the reader, the goal and where the text will appear.
Say what to do, not only what to avoid
“Don’t make it sound salesy” tells Claude what to leave out but not what to aim for. Anthropic’s guide puts it as a rule: “Tell Claude what to do instead of what not to do.” Its formatting example swaps “Do not use markdown in your response” for asking for “smoothly flowing prose paragraphs”.
Turning a ban into a target usually means describing the result you picture. “Don’t be salesy” becomes “Write like a shop owner recommending a product to a regular customer: honest about who it suits and who it doesn’t.” Claude now has a voice to imitate rather than a list of things to dodge.
Ask for the extra effort out loud
Anthropic’s guide says that if you want Claude to do more than the task strictly requires, you should ask for it directly rather than hope Claude infers it from a vague prompt.
In practice that means naming the extras: three headline options, a social media version, a note on anything wrong in your draft. Our own suggestion: end a big request with “Before you begin, ask me anything you need to know.” It often surfaces context you forgot to give.
Show examples when style matters
Describing a style is hard; showing it is easy. Anthropic says “a few well-crafted examples” improve accuracy and consistency, and its tip is to include three to five for best results. The examples should be relevant to the real task and different enough from each other that Claude doesn’t copy one of them too closely.
Anthropic also suggests wrapping each example in <example> tags, and a group of them in <examples> tags, so Claude can tell your samples apart from your instructions. A café owner writing daily specials might paste three past posts that did well, each in its own tag, then ask for today’s post about a new lunch dish.
Use XML tags to keep the parts separate
XML tags are labels in angle brackets, such as <context> and </context>, placed around a part of your prompt. Anthropic says they help Claude read complex prompts “unambiguously”, especially when a prompt mixes instructions, context, examples and pasted material. There are no special tag names to learn. The guide asks only that names are consistent and describe what they hold, and that tags are nested when the content has a hierarchy.
Here is a short prompt laid out this way:
<context>
I run a small online shop selling handmade leather wallets.
Most customers buy them as gifts.
</context>
<task>
Write a product description for our new slim card holder.
</task>
<requirements>
- About 120 words, in a warm, plain voice
- Mention that it holds six cards and fits a front pocket
- End with one line about gift wrapping
</requirements>
In our view, tags are overkill for a one-line question. They earn their place once a prompt has several parts, or when you paste in someone else’s text, because they help Claude tell an email or report apart from your instructions.
Long documents: paste first, ask last
When you give Claude a long report, contract or transcript, Anthropic recommends putting the document near the top of the prompt and your question at the end. The guide says that in Anthropic’s tests, questions placed at the end improved answer quality by up to 30 percent, especially with complex inputs made of several documents. That figure is Anthropic’s own; we haven’t measured it.
Two more habits from the same section help with long material:
- Label each document. Anthropic wraps each one in
<document>tags with a source and the content, which matters when you compare two contracts or several survey files. - Ask for quotes first. The guide suggests asking Claude to quote the relevant parts of the document before doing the task. This keeps the answer tied to what the document actually says, and it gives you exact lines to check.
For example, a freelancer reviewing a client contract could paste it, then ask: “First quote every clause about payment dates and late fees. Then explain in plain words what happens if the client pays 30 days late.” If a quote doesn’t appear in the contract, you know to distrust the explanation built on it.
Match your prompt to the answer you want
Anthropic notes that “the formatting style used in your prompt might influence Claude’s response style.” A prompt full of bullet points and headings can nudge Claude toward bullet points and headings in return. If you want flowing paragraphs, write the request in paragraphs and say so. If you want a table, describe its columns.
This is also where length and format instructions belong. “About 300 words, three short paragraphs, no headings” is far easier to follow than “not too long”. When the result will be pasted somewhere with limits, such as a LinkedIn post or a product listing, give Claude the limit and check the draft yourself with a character counter before posting. Our suggestion, because exact limits are easy to miss by a few characters.
Ask Claude to check its own work
For tasks that can be checked against clear criteria, such as a calculation, Anthropic suggests asking Claude to verify its answer against those criteria before it finishes. The guide notes that some newer models already check their work well unprompted, so in our view this matters most where a mistake would cost you.
A concrete version: “Before you reply, check that the draft answers all four questions in the customer’s email and that every price matches my list.” We suggest naming the checks rather than writing a general “double-check this”.
Save instructions you repeat
The Claude Help Center describes two places to keep background you would otherwise retype:
- Account-wide instructions. Click your initials in the lower left, open Settings, then “Your Claude” (“Account” in the older layout), and find Instructions. It applies to all your chats, so use it for general preferences such as tone, terms or spelling.
- Projects. A project groups chats around one piece of work. You can set project instructions, which apply to every chat in that project, and upload documents to its knowledge, which Claude can use across those chats. The Help Center notes that chats in a project don’t share context with each other unless the information is in the project knowledge, and that free accounts can create up to five projects.
Anthropic’s guide says even a single sentence describing a role “makes a difference”. Its example uses a system prompt, a developer feature; in the app, our suggestion is to put a role you always want in project instructions, or in the first line of a normal message. An online plant shop might keep one project for customer emails, with its returns policy uploaded and the instruction “Be friendly and brief, and never promise refunds the policy doesn’t allow.”
A before-and-after example
Here is how the rules above change a typical request. The starting prompt:
Write an email to my customers about our new opening hours.
A rewritten version that applies context, the why, the format and a check:
I own a local bike repair shop. From 1 December we will open at 10 am instead of 8 am on weekdays, because early weekday bookings have dropped. We will also stay open later on Saturdays (now until 6 pm). Write a short email to our regular customers announcing this. Most of them are commuters, so put the new weekday hours in the first two lines. Keep it under 150 words, friendly and plain, with a subject line. Before you finish, check that every day and time in the email matches what I wrote here.
The second prompt answers the five questions from the first section, so Claude has far less to guess.
Build a Claude prompt with our generator
If starting from a blank box is the hard part, the free AI Prompt Generator fills in the structure for you. You pick one of 12 tasks, such as an email, a product description or a study plan, describe the topic and adjust the role, audience, tone, length and format. It runs in your browser and doesn’t send what you type anywhere.
When this guide was prepared on 26 November 2026, the build process tested the tool in a browser: choosing “Claude” switched the output to XML tags (role, task, audience and requirements), and the strength meter showed “Good (5/6)” with the background context field left empty.
Claude prompt questions
What is the best way to write prompts for Claude?
Be explicit, give the context a new colleague would need, explain why your instructions matter and describe the answer you want.
Do I have to use XML tags with Claude?
No. Plain sentences work for simple requests. Anthropic recommends tags for complex prompts, and there are no required tag names.
How many examples should I give Claude?
Anthropic’s tip is three to five, relevant to the task and varied, each wrapped in <example> tags.
Where should I put a long document in my prompt?
At the top, with your question at the end. Anthropic reports up to 30 percent better responses from this order in its tests with complex, multi-document inputs.
How do I make Claude remember my preferences?
Use account-wide Instructions in Settings for preferences that apply everywhere, and a project with its own instructions and uploaded knowledge for one ongoing piece of work.
Sources
- Anthropic: Prompting best practices (colleague test, context and the why, explicit instructions, what to do instead of what not to do, examples, XML tags, roles, long documents, formatting, self-checks)
- Anthropic: Prompt engineering overview (where the techniques are documented)
- Claude Help Center: Understanding Claude’s personalization features (account-wide Instructions, project instructions)
- Claude Help Center: How can I create and manage projects? (project instructions, project knowledge, shared context, five projects on free accounts)
Claude is a trademark of Anthropic. Techtruthin is not affiliated with Anthropic. Facts checked against Anthropic’s documentation and the Claude Help Center on 26 November 2026.
How this guide was made: researched and drafted with AI assistance, then checked against the official sources linked above before publishing. Editorial policy Report a mistake