AnthropicPrompt PatternsOfficial Docs
Anthropic outlines prompt engineering basics
Use repeatable patterns to stabilize Claude outputs.
Key Points
- 1Start with clear, direct instructions
- 2Use multi-shot examples to show targets
- 3XML tags add structure and clarity
- 4Long prompts can raise latency and cost
Anthropic’s prompt engineering overview summarizes core techniques for Claude: be direct, add examples (multi-shot), and structure with XML tags. It’s approachable and helps reduce output variability. As prompts grow, you may trade off speed and cost, so balancing is important.