
Claude is particularly good at parsing XML tags in prompts. Using them makes complex prompts cleaner and more reliable.
<context> — background information<instructions> — what to do<examples> — sample inputs/outputs<document> — pasted content to analyze<output_format> — desired response structureXML tags prevent Claude from confusing data with instructions.
Reference:
TaskLoco™ — The Sticky Note GOAT