Prompt engineering overview
Learn when prompt engineering is the right solution, and find Claude prompting techniques and interactive tutorials.
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, spend time establishing that first. Check out Define success criteria and build evaluations for tips and guidance.
Don't have a first draft prompt? Generate one with the metaprompt recipe from the Claude Cookbook.
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, you can sometimes improve latency and cost more easily 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.
For general prompt engineering craft beyond Claude-specific techniques, see the blog post on best practices for prompt engineering.
Prompt engineering tutorial
If you're an interactive learner, you can start with the interactive tutorials instead!
An example-filled tutorial that covers the prompt engineering concepts found in the docs.
A lighter-weight version of the prompt engineering tutorial, as an interactive spreadsheet.
Was this page helpful?