Chapter 9 of Anthropic's interactive prompt engineering tutorial includes this complex legal services prompt that demonstrates retrieval over research with citation formatting, pre
Chapter 9 of Anthropic's interactive prompt engineering tutorial includes this complex legal services prompt that demonstrates retrieval over research with citation formatting, pre
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 Anthropic cookbook's building moderation filter.ipynb . A production style moderation prompt that uses explicit ALLOW/BLOCK guidelines, a <thinking scratchpad, and an <out
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 Chapter 6 Precognition / Thinking Step by Step . The canonical 'let Claude argue both sides before deciding' template. Pairs a savvy reader system prompt with explicit XM
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
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
From how to make sql queries.ipynb in the cookbook. A minimal, schema aware text to SQL prompt that constrains the model to output only the SQL. A more reliable extended version, f
Opening sections of Perplexity's leaked system prompt. Strict on inline numeric citations, markdown structure, no moralization, and no "based on search results" hedging. Source: ht
Opening sections of Anthropic's officially published system prompt for Claude Sonnet 4.5 release notes, Sept 2025 . Notable for prose first formatting guidance, sparse bullet usage
From patterns/agents/evaluator optimizer.ipynb . Two cooperating prompts: a generator that produces a solution with <thoughts and <response blocks and an evaluator that returns PAS
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
Opening of the Bolt.new system prompt. Documents WebContainer's browser bound Node.js runtime, the lack of native binaries, pip, and git, and the bolt file modifications diff forma
The few shot variant of Anthropic's moderation cookbook. Demonstrates that, for short labels, well chosen positive and negative examples often beat chain of thought. Source: https:
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 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
Opening identity and tool calling section from the leaked Windsurf Cascade prompt. Notable for the AI Flow framing, the strict tool calling discipline, and the unusual instruction
Two prompt chain for grounded QA. Prompt 1 pulls verbatim quotes; prompt 2 turns those quotes into the final answer. Forcing extraction first cuts hallucination dramatically. Promp
From Chapter 9 of Anthropic's interactive prompt engineering tutorial. A canonical complex prompt skeleton that combines task context, tone, rules, examples, conversational history
Also from the cookbook summarization guide. The 'reduce' step that combines per chunk summaries generated cheaply with Haiku into one coherent, sectioned final summary using Sonnet