Overview ↗
yesEditorial Notes
This overview establishes the conceptual framework for prompt engineering with Claude and should be read before diving into specific techniques or best practices. Focus on how Claude’s instruction-following behavior differs from other models – Claude tends to be more literal in its interpretation of prompts, which means precise wording matters more than with some competitors. The page introduces key concepts like system prompts, role assignment, and output formatting that are referenced throughout all other prompt engineering materials. After reading this, proceed to the best practices guide for actionable techniques you can apply immediately.
Original Documentation
Before prompt engineering#
This guide assumes that you have:
- A clear definition of the success criteria for your use case
- Some ways to empirically test against those criteria
- A first draft prompt you want to improve
If not, we highly suggest you spend time establishing that first. Check out Define success criteria and build evaluations for tips and guidance.
Don’t have a first draft prompt? Try the prompt generator in the Claude Console! For model-specific tuning guidance for Claude’s latest models, start here.
When to prompt engineer#
This guide focuses on success criteria that are controllable through prompt engineering. Not every success criteria or failing eval is best solved by prompt engineering. For example, latency and cost can be sometimes more easily improved by selecting a different model.
How to prompt engineer#
All prompting techniques — from clarity and examples to XML structuring, role prompting, thinking, and prompt chaining — are covered in Prompting best practices. That’s the living reference; start there.
The Claude Console also offers prompting tools—prompt generator, templates and variables, and prompt improver—to help you build and refine prompts quickly.
Prompt engineering tutorial#
If you’re an interactive learner, you can dive into our interactive tutorials instead!
An example-filled tutorial that covers the prompt engineering concepts found in our docs. A lighter weight version of our prompt engineering tutorial via an interactive spreadsheet.