Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
While these tips apply broadly to all Claude models, you can find prompting tips specific to extended thinking models here.
When your prompts involve multiple components like context, instructions, and examples, XML tags can be a game-changer. They help Claude parse your prompts more accurately, leading to higher-quality outputs.
<instructions>, <example>, and <formatting> to clearly separate different parts of your prompt. This prevents Claude from mixing up instructions with examples or context.Using the contract in <contract> tags...).<outer><inner></inner></outer> for hierarchical content.<examples>) or chain of thought (<thinking>, <answer>). This creates super-structured, high-performance prompts.Get inspired by a curated selection of prompts for various tasks and use cases.
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.