Prompting 101 is a session from Anthropic's Code with Claude conference, held in San Francisco in May 2025. Hannah Moran and Christian Ryan from Anthropic's Applied AI team build a real-world prompt live, starting from a simple first attempt and improving it step by step. It is one of the clearest demonstrations of how prompt engineering works in practice.
The techniques below are the ones that make the biggest difference in professional use, whether you are using Claude, ChatGPT or another large language model.
WHY PROMPT STRUCTURE MATTERS
A language model only knows what you give it. A one-line instruction forces the model to guess the context, the audience, the format and the level of detail. Each guess is a chance to get it wrong. A structured prompt removes those guesses and makes results consistent, which matters most when the same prompt runs many times, for example in an automated workflow.
THE ELEMENTS OF A STRONG PROMPT
- Task context. Explain the situation and the role Claude should take. Who is the output for, and what will it be used for?
- Background information and documents. Provide the material Claude needs, such as policies, data or examples, rather than relying on general knowledge.
- Clear separation of sections. Use headings or tags to separate instructions from reference material, so the model does not confuse the two.
- Detailed task instructions. Describe the steps to follow, what to look for and how to handle uncertain cases.
- Examples. Show one or more examples of a good output. Examples are one of the most reliable ways to steer tone and format.
- Output format. Specify exactly how the answer should be structured, especially if it will be read by software or pasted into a template.
- Room to reason. For complex tasks, ask the model to think through the problem before giving its final answer.
HOW TO IMPROVE A PROMPT
1. Start simple and test. Write a basic version and run it on real inputs.
2. Read the failures. Note where the output is wrong, vague or inconsistent. Each failure usually points to missing context or an unclear instruction.
3. Add what was missing. Add background, tighten the instructions or include an example that covers the failure case.
4. Repeat until it is reliable. Prompt engineering is iterative. A production-ready prompt is often much longer and more detailed than the first draft.
KEY TAKEAWAYS
- Write prompts as you would brief a capable new colleague with no background on the task.
- Separate instructions, reference material and examples clearly.
- Examples and an explicit output format do more than adjectives like "concise" or "professional".
- Test prompts on real inputs and refine them based on what goes wrong.
FAQ
WHAT IS PROMPT ENGINEERING?
The practice of designing and refining the instructions given to an AI model so it produces accurate, consistent and useful outputs.
DO THESE TECHNIQUES WORK WITH CHATGPT AS WELL AS CLAUDE?
Yes. Context, structure, examples and clear output formats improve results with all major large language models.
HOW LONG SHOULD A PROMPT BE?
As long as it needs to be. Simple questions need one line. Business tasks that run repeatedly often benefit from detailed prompts with background, rules and examples.
WHAT IS THE MOST COMMON PROMPTING MISTAKE?
Leaving out context. Many poor answers come from the model not knowing the audience, purpose or constraints of the task.



