A good Claude prompt states the task, the context and what a great answer looks like, adds a few examples inside XML tags, and puts any long documents at the top with your question at the end. Claude follows instructions closely, so vague prompts get generic answers and specific prompts get specific ones. We use Claude daily at Saraswati Stitch, and our free AI prompt generator builds prompts in this structure for you.

The techniques that matter most

These come from Anthropic's prompting best practices.

TechniqueWhat to do
Be clear and directSay exactly what you want, who it is for and what to leave out
Add contextExplain why the task matters and how the output will be used
Show examplesInclude 3 to 5 examples of good output inside example tags
Use XML tagsWrap documents, instructions and examples in tags such as <contract> so Claude can tell them apart
Give a roleSet it in the system prompt, for example "you are a careful financial analyst"
Long documents firstPut the material at the top and the question at the end

Why order matters

Anthropic reports that putting the query at the end, after long documents, can improve response quality by up to 30 percent in its tests, especially with complex inputs that span several documents.

A template you can reuse

<document> paste the source material </document>

<context> Who this is for, why it is needed, and how it will be used. </context>

<examples> Two or three samples of the output you want. </examples>

Task: what Claude should produce, the format, the length, and anything to avoid.

How to write instructions for Claude

Write them the way you would brief a capable new colleague: the goal, the audience, the constraints and what done looks like. Say what to do instead of only what not to do, and ask for a specific format such as a table or bullet list when you need one. For repeat tasks, save the instructions in a project so you do not retype them. More patterns are in types of AI prompts, and few-shot prompting explains why examples work.