Has Claude read a support ticket, reason through it in XML tags, and output a single predefined intent label for routing, using few shot examples to keep classifications consistent
Has Claude read a support ticket, reason through it in XML tags, and output a single predefined intent label for routing, using few shot examples to keep classifications consistent
A reusable system prompt block that prevents hallucinations by requiring the AI to link each clinical claim directly to provided source data. Use it whenever you need a traceable f
Chapter 7 Using Examples / Few Shot . Demonstrates how two worked examples of a paragraph structured individuals list train Claude to produce the same shape on a new paragraph, no
Verbatim system prompt from the Anthropic Research multi agent pattern. The 'research lead' classifies a user query as depth first, breadth first, or straightforward, then plans an
From Chapter 9 of Anthropic's interactive prompt engineering tutorial. A canonical complex prompt skeleton that combines task context, tone, rules, examples, conversational history
From the Anthropic prompt engineering guide. Counter acts the 'AI slop' look in generated UI by forcing Claude to present multiple distinct design directions before writing code. P
Chapter 9 of Anthropic's interactive prompt engineering tutorial includes this complex legal services prompt that demonstrates retrieval over research with citation formatting, pre
From the cookbook's summarization guide. A focused prompt for sublease/legal agreement summarization that uses a system role, explicit section headers, an XML output format, prefil
Anthropic's metaprompt, from the official cookbook, is a battle tested 'prompt that writes prompts'. Feed it a task and an optional list of input variables; it returns a fully stru
From the Anthropic prompt engineering guide section on agentic systems. A concrete system prompt snippet that tells Claude Opus 4.7 when to spawn subagents counter balancing its de
From misc/generate test cases.ipynb in the cookbook. A meta prompt that takes a prompt template with {{variables}} and generates synthetic test cases in a structured XML format the
Chapter 8 Avoiding Hallucinations . A grounded QA template: extract the most relevant quote into <scratchpad , judge whether it answers the question, and only then write a brief nu
From the same Anthropic prompt engineering guide. The canonical XML tagging recipe for any prompt that mixes instructions, context, examples, and variable inputs used throughout th
Chapter 4 Separating Data and Instructions . Compares the un tagged form 'Yo Claude. {EMAIL} < Make this email more polite' with the safer tagged form below. The XML wrap is what s