Prompt example extracted from Anthropic Prompt Library.
Structure prompts with XML tags XML tags help Claude parse complex prompts unambiguously, especially when your prompt mixes instructions, context, examples, and variable inputs. Wrapping each type of content in its own tag (for example, <instructions> , <context> , <input> ) reduces misinterpretation.