What you will be able to do
- Write a request that states the task, audience, output format, constraints and depth instead of leaving them for Claude to guess
- Attach the reason to an instruction so Claude can apply it to cases the instruction did not name
- Ground a prompt in pasted source material, mark its scope, and say what Claude should do when the material has no answer
- Use one concrete example, and positive, style-matched format instructions, to control what the output looks like
Key concept
The explicit brief — Claude starts every request knowing nothing about you, your organisation or why the task exists. A good prompt gives it what a new contractor would need: the task, who the output is for, the format, the limits and how deep to go, all written down.
1.Brief Claude like a new contractor
Most weak business prompts fail for the same reason: they leave out things the writer knows and Claude doesn't. A procurement officer who types "compare these suppliers" knows the comparison has to fit on one page, has to leave out anyone off the approved shortlist, and is going to a finance director. Claude knows none of that. It has no context about you, your task or your organisation, so anything you don't write down, it has to guess.
A useful test is to hand the prompt to a colleague who knows little about the task and ask them to follow it. If they would be confused, Claude will be too. When a brief passes that test, it usually covers five things:
- Task: what to produce, led by a direct verb such as Write, Analyze or Create.
- Audience and goal: who will read the output and what it is for.
- Format: the output's shape, such as a table, list, paragraphs or a fixed set of columns.
- Constraints: hard limits such as word count, page length, budget, or what must not appear.
- Depth: how thorough to be. If you want comprehensive output, ask for it.
| Brief element | Vague version leaves it out | Specific version states it |
|---|---|---|
| Task | "Create a meal plan for a Mediterranean diet" | "Design a Mediterranean diet meal plan" |
| Audience and goal | Nobody named | "for pre-diabetic management" |
| Constraints | None | "1,800 calories daily, emphasis on low glycemic foods" |
| Format | Unspecified | "List breakfast, lunch, dinner, and one snack" |
| Depth | Unspecified | "with complete nutritional breakdowns" |
Depth is the part people skip most often, and missing it costs the most. "Create an analytics dashboard" gets you a basic dashboard. Add "Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation" and you get what you actually wanted. Claude didn't need more ability for that. It needed to be told the target. The same applies to limits. A one-page cap or an approved-supplier rule belongs in the request itself, stated as a constraint. You shouldn't have to catch it in review afterwards.
The format has to be stated in terms of where the output will go. If an operations coordinator will paste the result straight into a tracking spreadsheet their team already keeps, the request should name the exact columns and their order. Otherwise someone has to reshape the output before it fits. When the order or completeness of steps matters, write the instructions as a numbered or bulleted list. A one-sentence role can also focus Claude's tone for a recurring use case. That technique is covered with system-level instructions.
Checkpoint 1 of 9· Check yourself
A procurement officer asks Claude to "compare these suppliers." The summary must fit on one page, must leave out any supplier that isn't on the approved shortlist, and goes to the finance director. What is the most effective way to get output that meets these requirements?
Claude knows nothing about your task or organisation, so it has to guess anything you leave out. Length limits, exclusion rules and the audience belong in the request as stated constraints. Don't expect Claude to infer them, and don't plan to fix them in review.
“Don't assume the model will infer what you want—state it directly.”Source: claude.com
2.Give the reason behind an instruction
A bare rule covers only the case it names. A rule that comes with its reason lets Claude handle the cases you didn't name. Once Claude knows the output goes to a text-to-speech engine, it understands the real constraint is "nothing a speech engine can't pronounce". It can then apply that to symbols and layout you never thought to list. Claude is smart enough to generalise from the explanation, so one sentence of "why" does the work of a long list of prohibitions.
Formatting preferences work the same way. "NEVER use bullet points" is a rule with nothing behind it. "I prefer natural paragraph form because I find flowing prose easier to read and more conversational" tells Claude what you are after, so it can make better choices about related formatting too, like headings, tables or numbered steps. It's worth giving a reason in four situations:
- the purpose or audience of the output
- why a particular constraint exists
- how the output will be used
- what problem you are trying to solve
This matters most when the instruction is a business rule. "Keep this under 150 words" is followed literally. "Keep this under 150 words because it goes in the SMS alert to parents" also tells Claude to put the action first and drop anything a parent can't act on.
Checkpoint 2 of 9· Check yourself
Replies from an internal helpdesk assistant are shown in a chat widget that displays raw text. Markdown symbols appear on screen exactly as typed. The current prompt says "NEVER use markdown." Which change best helps Claude also avoid formatting that the prompt didn't name?
A rule on its own only covers what it names. Once Claude knows why the rule exists (the widget can't render formatting), it can apply the same reasoning to tables, numbered layouts and other symbols you didn't list. Repeating the rule or making the list longer doesn't give Claude that reasoning.
“Claude is smart enough to generalize from the explanation.”Source: platform.claude.com
3.Paste the source and mark the boundary
If an answer must come from a specific document, the document has to be in the prompt. "Answer questions about our benefits handbook" gives Claude a description of the handbook. Claude can't read a description, so it falls back on general knowledge of what benefits handbooks usually say. Pasting the actual text gives Claude real material to work from. Grounding a prompt properly takes three decisions: where the material goes, how it is marked off from your instructions, and what Claude should do when the material doesn't answer the question.
Long material goes at the top, and each piece goes inside its own tags. A prompt that mixes instructions, context, examples and pasted inputs is easy to misread, because a sentence in the pasted document can look like an instruction. Wrapping each kind of content in its own tag, such as <instructions>, <context> or <input>, prevents that. With several documents, put each one in a <document> tag with <source> and <document_content> subtags, so Claude can tell an annual report from a competitor spreadsheet and refer to each by name.
When a long document produces answers full of irrelevant detail, ask Claude to quote first. A physician's-assistant prompt might carry symptom notes, full patient records and an appointment history. A summary written straight from all of that tends to pick up stray details buried in the records. The fix is to have Claude first pull out the passages relevant to the reported symptoms into a <quotes> tag, and then write its diagnostic information from those quotes. Quoting first makes Claude focus on the relevant content and ignore the rest. The records are still the evidence, so telling Claude to skip them and use general knowledge throws away the grounding. Answering first and checking the documents afterwards reverses the order that makes this work.
The last part of the boundary is an instruction for the gaps. A handbook won't cover every situation staff ask about, and if the prompt is silent on that, Claude may fill the gap with a plausible guess. Say what should happen instead: "If the data is insufficient to draw conclusions, say so rather than speculating." For a structured extraction, "use null rather than guessing" does the same job. In a recurring assistant, "If unsure, ask for clarification before proceeding" works too. Explicit permission to say "I don't know" makes the output more trustworthy, because a gap in the source then shows up as a gap and not as an invented answer.
An explicit fallback, such as: "If the handbook does not address the question, say so rather than guessing." That keeps Claude inside the pasted material and makes the gaps visible.
Checkpoint 3 of 9· Put it in order
A compliance analyst is building a prompt to answer questions about a long, noisy audit report. Earlier answers were full of irrelevant detail. Put the parts of the improved prompt in the order they should appear.
- 1.Paste the audit report at the top of the prompt, wrapped in document tags with source and document content subtags
- 2.Tell Claude to write its answer based on those quotes, and to say so if the report doesn't address the question
- 3.Tell Claude to pull out the passages relevant to the question and place them in quotes tags
Long material goes at the top, above the query and instructions. For noisy documents, Claude should quote the relevant passages first and then answer from those quotes. That keeps it focused on what matters. Answering first and checking the document afterwards reverses the order that makes this work.
“ask Claude to quote relevant parts of the documents first before carrying out its task. This helps Claude focus on the relevant content”Source: platform.claude.com
Checkpoint 4 of 9· Exam question
A prompt for an AI physician's assistant includes patient symptom notes, medical records, and appointment history, and Claude's diagnostic summaries sometimes reference irrelevant details buried in the documents. What technique reduces this noise?
Correct answer: A — Ask Claude to first quote the relevant passages in a dedicated tag before writing its summary
- A. Correct. Asking Claude to quote relevant parts of long documents before carrying out the task grounds the response in the source material and helps it cut through noise from irrelevant sections.
- B. Ignoring the patient records removes the exact source information needed for an accurate, grounded diagnosis and would make the task worse, not better.
- C. A one-word summary would discard nearly all of the clinically relevant detail rather than helping Claude focus only on what matters.
- D. Reading the documents only after answering means Claude's initial answer isn't grounded in the source material at all, which is the opposite of the intended fix.
4.Show the format with one example
For shape, tone and structure, one concrete sample usually beats a paragraph of description. "Summarise this article in three short sentences, newsy tone, lead with the outcome, end with the effective date" leaves room for misreading. Showing a single finished summary leaves much less. Examples are one of the most reliable ways to steer Claude's output format, tone and structure. They work best when the format is easier to show than to describe, or when the task follows conventions that are hard to put into words.
Here's an example of the summary style I want:
Article: [link to article about AI regulation]
Summary: EU passes comprehensive AI Act targeting high-risk systems. Key provisions include transparency requirements and human oversight mandates. Takes effect 2026.
Now summarize this article in the same style: [link to your new article]Claude copies more of an example than you might expect. It pays close attention to every detail in an example: length, vocabulary, punctuation, even the subject matter. So the example has to be relevant, mirroring your real use case. Wrap it in <example> tags so Claude can tell it apart from the instructions. Start with one. Only add more, varied enough that Claude doesn't pick up an unintended pattern, if the output still doesn't match what you need.
When the output feeds another system, the example can be a template. A market-intelligence prompt might give one <competitor> block with a name, a 50-word overview, SWOT bullets and a 30-word strategy, then ask for the same block for each real competitor. A template like that defines the format precisely enough that Claude follows every formatting element you require.
Checkpoint 5 of 9· Fill the gap
This one-shot prompt sets the summary style without describing it. Which word completes its opening line?
Here's an ? of the summary style I want:
Article: [link to article about AI regulation]
Summary: EU passes comprehensive AI Act targeting high-risk systems. Key provisions include transparency requirements and human oversight mandates. Takes effect 2026.
Now summarize this article in the same style: [link to your new article]The prompt works by showing one finished summary and asking for the same style. It doesn't try to describe the length, tone and structure. When a format is easier to show than to describe, one concrete example leaves less room for misreading than a paragraph of description.
Source: claude.comCheckpoint 6 of 9· Check yourself
Your team wants weekly release notes in a house style that is hard to put into words. You're writing the first version of the prompt. How should you use examples?
Start with one relevant example and add more only if the output still doesn't match. Claude copies the details of an example closely, including its subject matter, so each extra example is another set of patterns it may pick up. An unrelated sample can mislead it in the same way.
“Pro tip: Start with one example (one-shot). Only add more examples (few-shot) if the output still doesn't match your needs.”Source: claude.com
5.Say what format you want and write the prompt in that style
Format instructions work better when they say what to produce. "Do not use markdown" rules out one style but doesn't say what should replace it. "Your response should be composed of smoothly flowing prose paragraphs" gives Claude a concrete target, and that target excludes headings and bullets automatically. Repeating the negative version doesn't add that missing target. A setting like temperature doesn't either, because the problem is in the wording, not in how strictly Claude follows it.
An XML format indicator takes the same positive instruction and puts the format's name into a tag: "Write the prose sections of your response in <smoothly_flowing_prose_paragraphs> tags." The tag name works as a label for the target, so it states what belongs inside it and still tells Claude what to produce rather than what to avoid. It also marks off which parts of the reply the format applies to, which suits a response that mixes prose with other content. Tags are already how a prompt separates one kind of content from another. Start with the plain positive instruction, and reach for the tag when you want the format named and its region marked.
The prompt's own formatting is also an instruction, whether or not you mean it to be. Claude's output tends to mirror the style of the prompt. A project manager whose request is full of bold text, nested bullets and headings, and ends with "respond in plain text only", has sent two conflicting signals. The layout of the whole prompt often wins over one sentence. The fix is to rewrite the prompt in plain prose. Taking the markdown out of the prompt reduces the markdown in the output. Bolding "no markdown", or repeating the request as bullets in a follow-up message, adds more of the style you are trying to remove.
If you need finer control, state the policy in full. For example: write reports in complete paragraphs, keep markdown for inline code and simple headings, and use lists only for truly separate items. A detailed format instruction like that works best when the prompt is itself written the same way.
Checkpoint 7 of 9· Match them up
Match each way of steering output format to the change it makes to a prompt.
Tap a term, then the definition that fits it.
Each technique works on a different part of the problem. A positive instruction gives Claude a target, and a format tag names that target. A detailed policy covers the edge cases. Rewriting the prompt in the target style matters because Claude tends to mirror the prompt's own formatting, so a markdown-heavy prompt pulls the output towards markdown even when it asks for plain text.
“Match your prompt style to the desired output The formatting style used in your prompt may influence Claude's response style.”Source: platform.claude.com
Checkpoint 8 of 9· Exam question
A team's prompt says "Do not use markdown in your response," but Claude's output still includes headings and bullet lists inconsistently. What rewording is more effective at controlling the format?
Correct answer: A — State that the response should be composed of smoothly flowing prose paragraphs instead
- A. Correct. Telling Claude what to do instead of what not to do, such as specifying that the response should be smoothly flowing prose, is a more effective way to steer output formatting than a negative instruction.
- B. Repeating the same negative phrasing does not change the underlying issue that negative instructions are less effective than positive ones for controlling format.
- C. Temperature controls randomness in word choice, not adherence to formatting instructions, so it would not reliably fix markdown usage.
- D. Manually stripping markdown after the fact is a workaround rather than a prompting fix, and doesn't address why the instruction isn't being followed.
Checkpoint 9 of 9· Exam question
A project manager's prompt is written with heavy markdown formatting, bullet points, and bold text, and asks Claude to "respond in plain text only." Claude keeps returning markdown-formatted output anyway. What is the most likely fix?
Correct answer: A — Rewrite the prompt itself without markdown, since Claude's style tends to mirror the prompt's style
- A. Correct. The formatting style used in the prompt can influence Claude's response style, so matching the prompt's style to the desired output style, such as removing markdown from the prompt, helps reduce unwanted markdown in the response.
- B. Emphasizing the instruction with bold text keeps the prompt itself in markdown, which works against the stated goal of getting a plain-text response.
- C. Token limits control response length, not formatting style, so raising the limit would not resolve the markdown issue.
- D. Repeating the instruction using bullet points again models the exact formatting style the manager wants to avoid, reinforcing the problem rather than fixing it.
Sources2
Sources
(4)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Think of Claude as a newly-hired contractor.”
↩︎ Brief Claude like a new contractor“Think of Claude as a newly-hired contractor.”
↩︎ Key concept - 2.https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practicesOfficial docs
“If they'd be confused, Claude will be too.”
↩︎ Brief Claude like a new contractor“Be specific about the desired output format and constraints.”
↩︎ Brief Claude like a new contractor“Setting a role in the system prompt focuses Claude's behavior and tone for your use case.”
↩︎ Brief Claude like a new contractor“Claude is smart enough to generalize from the explanation.”
↩︎ Give the reason behind an instruction“so never use ellipses since the text-to-speech engine will not know how to pronounce them.”
↩︎ Give the reason behind an instruction“Wrapping each type of content in its own tag (for example, <instructions>, <context>, <input>) reduces misinterpretation.”
↩︎ Paste the source and mark the boundary“This helps Claude focus on the relevant content and ignore the rest of the document.”
↩︎ Paste the source and mark the boundary“Examples are one of the most reliable ways to steer Claude's output format, tone, and structure.”
↩︎ Show the format with one example“Wrap examples in <example> tags (multiple examples in <examples> tags) so Claude can distinguish them from instructions.”
↩︎ Show the format with one example“Tell Claude what to do instead of what not to do”
↩︎ Say what format you want and write the prompt in that style“Write the prose sections of your response in <smoothly_flowing_prose_paragraphs> tags.”
↩︎ Say what format you want and write the prompt in that style“removing markdown from your prompt can reduce the volume of markdown in the output.”
↩︎ Say what format you want and write the prompt in that style“Tell Claude what to do instead of what not to do”
↩︎ Exam trap 1“The formatting style used in your prompt may influence Claude's response style.”
↩︎ Exam trap 2“ask Claude to quote relevant parts of the documents first before carrying out its task.”
↩︎ Exam trap 3“Place your long documents and inputs near the top of your prompt, above your query, instructions, and examples.”
↩︎ Prediction“ask Claude to quote relevant parts of the documents first before carrying out its task. This helps Claude focus on the relevant content”
↩︎ Checkpoint“Match your prompt style to the desired output The formatting style used in your prompt may influence Claude's response style.”
↩︎ Checkpoint - 3.https://claude.com/blog/best-practices-for-prompt-engineeringSecondary source
“Relevant context (who's the audience, what's the goal)”
↩︎ Brief Claude like a new contractor“allows it to make better decisions about related formatting choices.”
↩︎ Give the reason behind an instruction“If the data is insufficient to draw conclusions, say so rather than speculating.”
↩︎ Paste the source and mark the boundary“If any metric is not clearly stated in the report, use null rather than guessing.”
↩︎ Paste the source and mark the boundary“Claude 4.x and similar advanced models pay very close attention to details in examples.”
↩︎ Show the format with one example“Pro tip: Start with one example (one-shot). Only add more examples (few-shot) if the output still doesn't match your needs.”
↩︎ Exam trap 4“Don't assume the model will infer what you want—state it directly.”
↩︎ Checkpoint“Pro tip: Start with one example (one-shot). Only add more examples (few-shot) if the output still doesn't match your needs.”
↩︎ Checkpoint - 4.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/increase-consistencyOfficial docs
“If unsure, ask for clarification before proceeding”
↩︎ Paste the source and mark the boundary“Precisely define your desired output format using JSON, XML, or custom templates so that Claude follows every output formatting element you require.”
↩︎ Show the format with one example