How to Build with Claude: Anthropic’s Official guide explained.
By Mr V
Published: 2026-10-18
URL: https://useaitowrite.substack.com/p/youre-leaving-80-of-claudes-quality
If you’re prompting Claude like every other AI model, you’re leaving performance on the table. To get the most out of it, you need to change how you work with it.
Claude wasn’t designed for generic users the way ChatGPT was. structure and tags matter more than anything in the prompt.
Anthropic’s own docs are strict on using XML-style tags like <instructions>, <context>, <examples>, and <output_format> to separate different parts of your prompt.
Think of XML-style tags as rooms in a house. Each room has a specific purpose, and has its own items organized in a specific way.
That’s exactly how tags like <instructions>, <context>, and <examples> work in Claude.
They separate different parts of your prompt so Claude knows what each section means, what to prioritize and how to use the information to generate the output you want.
Claude models are trained differently. Anthropic’s own docs are explicit about it:
I read the Anthropic’s official prompting guide so you don’t have to” + distilled techniques.
Now let’s learn how to Claude.⚡️
Here’s the step-by-step prompt engineering process that actually improves your output.
https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
0/ Use Positive constraints instead of negative constraints.
Claude still struggles with negative constraints than any other model.
There’s a useful concept in psychology known as “the pink elephant” problem.
Imagine someone tells you, “Whatever you do, don’t think about a pink elephant.”
And you immediately picture a pink elephant.
Same with Claude.
You can tell the model to completely skip a concept, but because it’s right there in the text, it still ends up bleeding into the output.
For example, instead of writing:❌👎
“Write a product description, but don’t mention our competitor.”
Write like this:✅
“Write a product description about Use AI To Write.
It is a Substack newsletter for entrepreneurs, writers, content creators and and corporate professionals.”
→ The model doesn't know anything about the competition.
So instead of wasting your time telling the AI what to avoid, just point it in the right direction from the start. And avoid the negatives.
❶. Use XML tags to separate instructions from context
Claude models don’t respond well to random formatting cues the way ChatGPT does.
They’ve been fine-tuned to recognize it’s structure (especially through XML-style tags.)
You want Gold outputs? 💥
→ You need to explicitly separate elements like:
<instruction>
<context>
<example>
<input>
<question>
<output>
Claude treats these tags seriously. Without them, your inputs risk being misread.
ChatGPT might get what you meant ✅
Claude won’t.❌
For example, you can add text tags to wrap the input:
Summarize the main ideas from a provided text.
<text>
{$input text here}
</text>
Note🗒️:
You can use any names you like for these tags; (there are no specific or exclusive codes required.)
You can change <instructions> to <Task> and the output will be great.
What's important is the format and structure. ✅
→ Just make sure to include both <> and </> , and it will work fine!😄
❷. Be direct, concise, and as specific as possible:
This is equally important for every large model
You’ll need to clearly state what the model should do rather than what it should avoid.✅
Use affirmatives like “do”, “must”, “should” instead of “don’t” will give you better results.
Provide Claude with detailed context and clearly specify which tag to use to find this information.
Here’s how we can improve the above prompt:
Summarize the main ideas from the provided article text within the <text> tags.
<text>
{$input_text_here}
</text>
❸. Help Claude with the output you want:
The biggest problem with generally all Claude models is that it tends to be very chatty and conversational in its answers.
→ It will always start with a sentence or two before providing the answer, despite being instructed in the prompt to follow a specific format.
To minimize this, you need to use ‘The Assistant’ message to provide the beginning of the output.
This technique will ensure Claude always begins its answer the same way you want it.
Here’s what that prompt will look like if we want Claude to follow a specific format:
Summarize the main ideas from the provided article text within the <text> tags,
Only output the main conclusions in a 4 bulleted list.
Follow the format provided below:
<format>
→ Idea 1
→ Idea 2
→ Idea 3
</format>
<text>
{Input_input_here}
</text>
Assistant: →
Note 🗒️:
Claude models are fine-tuned to recognize their role as the Assistant and treat you as the Human user.
Don't change assistant if you want the most out of claude:✅
Thats the secret hack
❹. Assign the “Assistant” Role.
Claude identifies itself as the “assistant” and the person as the “user.” When assigning a role always include the word “assistant”
Anthropic’s official prompt engineering guide.
So if you’re building content with claude,
Start your prompt with
“You’re a Writing assistant…”,
or better one:⚡️
"You're Mack, the best content writing assistant".
→ So I’m going to use our previous structure of putting the first token in the Assistant’s response to force Claude to stay in character.
For example:
You’re Mack, the best content writing assistant in the world.
Summarize the main ideas from the provided article text within the <text> tags, and only output the main conclusions in a 4 bulleted list.
Follow the format provided below:
<format>
→ idea 1
→ idea 2
→ idea 3
</format>
<text>
{input input here}
</text>
Assistant:
[Mack, the best content writing assistant in the world] →
❺. Give Claude time to think :)
There are some cases when it can be beneficial to explicitly instruct Claude to generate an extra text where it reasons through the problem. ✅
How??
Step 1: Select high or extra effort.
Instruct Claude to first "think harder through the problem" and then instruct it to provide the answer. ✅
Now Request two separate XML tags from Claude:
one for the "thinking" part and another for the "answer," like in the prompt below:
You’re Mack, the best content writing assistant in the world.
Summarize the main ideas from the provided article text within the <text> tags, and only output the main conclusions in a 4 bulleted list.
Follow the format provided below:
<format>
→ Idea 1
→ Idea 2
→ Idea 3
</format>
When you generate the answer, first think how the output should be structured and add your answer in <thinking harder></thinking harder> tags.
This is a space for you to write down relevant content and will not be shown to the user. Once you are done thinking,Skip non-essential context, answer the question right away without any introductory text.
Put your answer inside <answer> </answer> XML tags.
<text>
{$input_input_here}
</text>
Claudes own Guide:
Prompting Claude Sonnet 5
when you tell Claude to “Skip non-essential context, answer the question right away” like in the text and diagram, it stops re-explaining its thought process.
Here’s what the model will output if we provide some text about Biochemistry;
(the prompt was cut down to highlight the format of the output):👇
The output from Claude.
You’re Mack, the best content writing assistant in the world.
Summarize the main ideas from the provided article text within the <text> tags, and only output the main conclusions in a 4 bulleted list. Follow the format provided below:
<format>
→ idea 1
→ idea 2
→ idea 3
</format>
Assistant:
<thinking>
Here are the 4 key ideas I would summarize from the text:
1. Biochemistry explores chemical processes in living organisms by….
</thinking>
<answer>
→ Biochemistry explores chemical processes…
→ It plays a vital role in health and medicine…
</answer>
Have you Noticed how the <answer> tag doesn’t start with filler (it jumps straight to the point.✅)
That makes it easier to extract, format, or apply post-processing.
→ You could easily apply some data manipulation, cut the "thinking" tags, and extract the answers you want.
❻. Provide Examples:
i know this sounds basic, but it’s easy to overlook one of the most powerful parts of prompting: examples.
Most of the time, when we think about prompting Claude, we forget to give them examples of what we actually want.
Use Examples Effectively
if you want better answers from Claude, give it 3 - 5 examples of your ideal output. don’t just tell it what to do. show it what good looks like.
It’s one of the highest-leverage ways to improve output quality.
A few well-chosen examples that generalize to your use case can make a big difference.
More examples usually mean better results, (but expect higher latency and token usage as the tradeoff.)
Example from our prompt:
You’re Mack, the best content writing assistant in the world.
Summarize the main ideas from the provided article text within the <text> tags, and only output the main conclusions in a 4 bulleted list.
Follow the format provided below:
<format>
→ idea 1
→ idea 2
→ idea 3
</format>
Here is an example on how to respond in a standard interaction:
<example_1>
{$input examples here}
</example_1>
<example_2>
{$input examples here}
</example_2>
<example_3>
{$input examples here}
</example_3>
<text>
{$input input here}
</text>
❼. Let Claude say "I don't know."
To prevent and stop Claude from blindly agreeing with you, just add the phrase shown in the prompt below.
Answer the following question only if you know the answer or can make a well-informed guess;
*otherwise tell me you don't know it.
❽. Long documents before instructions
If you’re dealing with longer documents, always ask your question at the end of the prompt. ✅
For very long prompts, Claude gives an accent to the end of your prompt, so you need to add important instructions at the end.
This is extremely important for Claude's sonnet 5.5
How to use it in your workflow
Step 1 — NotebookLM: Upload your long document and run the mapping prompt.
NotebookLM prompt:
Map out this document for Claude. Identify its main sections, central arguments, key evidence, important details, and final conclusions.
Preserve
1/ the author’s original meaning,
2/ key examples, statistics, and technical terms.
3/ Show how the main ideas connect, and include source references where available.
Keep the map concise but detailed enough for Claude to understand the document’s structure and locate the most important information.
Don’t invent information or omit critical context.
Step 2 — Extract the map: Copy the resulting document map. Keep the original document available if Claude needs to inspect the full text.
Step 3 — Claude: Put the document inside <document> tags, include the map inside <document_map> tags, and place your actual task instructions at the end.
To Claude:
<document_map>
[Paste the document map generated by NotebookLM here.]
</document_map>
<document>
[Paste the original document or relevant excerpts here.]
</document>
<instructions>
Summarize the main ideas from the provided document text within the <doc> tags, and Preserve the author's key arguments and conclusions. Only output the main conclusions in a 4 bulleted list.
</instructions>
The document map serves as a format and a reminder that makes claude recall the full document text based on the map.
The document map has to be solid for this to work.
❾. The 5 Levels of Effort
In claude opus 5.5 there are 5 levels you can push the model to think. however based on the level of thinking it burns so many tokens.
You can significantly improve the accuracy using low, medium, high, extra, max.
Let me explain like i’m 5:

