Claude Prompt Generator
Generate optimized prompts for Anthropic's Claude — updated for the current Claude 5 family (Fable 5, Opus 5, Sonnet 5, Haiku 4.5). XML-structured prompts with role, context, task, multishot examples, edge-case rules and explicit output formatting, tuned for adaptive thinking and effort levels rather than the prefill and forced chain-of-thought tricks that current models no longer accept.
Be specific about what you want the AI to do
Generated Prompt
Fill in the form and click "Generate" to create an optimized Claude prompt.
Tip: The more specific your task description and context, the better the generated prompt will perform.
Claude Tips
- • Claude is trained on XML — wrap context, instructions, and examples in <role>, <context>, <task>, <examples>, <output_format>
- • Multishot prompting works: provide 1-3 worked examples in <examples><example>...</example></examples>
- • Thinking is adaptive and on by default — raise the effort level instead of writing "think harder" into the prompt
- • Don't use prefill to lock a format: it's rejected on current Claude models. Use <output_format> plus one worked example
- • With a 1M-token window, paste the documents FIRST and put your instruction after them
- • For long inputs, ask Claude to quote the relevant passages before answering — it measurably reduces drift
- • Use <rules> for edge cases ("If X is missing, ask before proceeding", "Never invent figures")
Claude Prompt Templates
Copy-ready starting points for the most common jobs people bring to this model. Swap the [BRACKETED] parts for your own details, or use them as a shape to imitate when you write your own.
Document Analysis
AnalysisThe pattern Claude is strongest at — documents in their own tags, quote before answering.
<role> You are a [ROLE, e.g. senior contract attorney] specialising in [DOMAIN]. </role> <task> Analyse the document below and identify [WHAT TO FIND, e.g. clauses that shift liability to us]. </task> <document> [PASTE DOCUMENT] </document> <rules> - Quote the exact passage supporting each finding before you comment on it. - If the document is silent on a point, say so — never infer intent. - Rank findings by materiality, highest first. </rules> <output_format> For each finding: **Heading** — the quoted passage — why it matters — recommended change. End with a one-paragraph overall risk assessment. </output_format>
Codebase Refactor
EngineeringUses the 1M context: whole repo first, instruction after.
<role> You are a staff [LANGUAGE] engineer. </role> <context> [PASTE THE RELEVANT FILES OR WHOLE MODULE] </context> <task> Refactor the code above to [GOAL, e.g. replace the callback chain with async/await] without changing observable behaviour. </task> <rules> - Preserve every existing public signature unless I explicitly say otherwise. - Keep the existing test suite passing; if a test must change, call it out separately. - Do not introduce new dependencies. - If a change is risky, flag it rather than making it silently. </rules> <output_format> 1. A short plan listing the files you will touch and why. 2. The full revised code for each file, in fenced blocks. 3. A list of anything you deliberately left alone. </output_format>
Structured Extraction
DataLocks the output shape with a schema and one worked example — the correct replacement for prefill.
<role>
You are a data extraction engine.
</role>
<task>
Extract [WHAT] from each record below.
</task>
<records>
[PASTE RECORDS]
</records>
<rules>
- Output valid JSON only, no commentary.
- Use null for any field genuinely absent from the source. Never invent a value.
- Preserve the original spelling of names and identifiers.
</rules>
<examples>
<example>
Input: [SAMPLE INPUT]
Output: {"[field1]": "[value]", "[field2]": null}
</example>
</examples>
<output_format>
A JSON array of objects, each with the keys: [field1], [field2], [field3].
</output_format>Writing With a House Style
WritingMultishot examples teach the voice more reliably than describing it.
<role> You are a writer for [PUBLICATION / BRAND]. </role> <tone> [DESCRIBE THE VOICE IN ONE SENTENCE] </tone> <task> Write [DELIVERABLE] about [TOPIC] for [AUDIENCE]. </task> <examples> <example> [PASTE A REAL PARAGRAPH IN YOUR HOUSE VOICE] </example> <example> [PASTE A SECOND REAL PARAGRAPH] </example> </examples> <rules> - Match the rhythm and vocabulary of the examples, not just the topic. - No em-dash-heavy constructions, no "in today's fast-paced world" openings. </rules> <output_format> [LENGTH] words, [STRUCTURE, e.g. four sections with H2 headings]. </output_format>
Research Synthesis
AnalysisSeveral sources, each tagged, with conflict-surfacing rules.
<role> You are a research analyst. </role> <documents> <document index="1"><source>[SOURCE NAME]</source><content>[PASTE]</content></document> <document index="2"><source>[SOURCE NAME]</source><content>[PASTE]</content></document> </documents> <task> Synthesise the documents above into an answer to: [QUESTION]. </task> <rules> - Cite the source index behind every claim. - Where sources conflict, surface the conflict explicitly instead of resolving it silently. - Distinguish what the sources establish from what they merely suggest. </rules> <output_format> Answer first in one paragraph, then Evidence (bulleted, cited), then Conflicts, then What's still unknown. </output_format>
Decision Memo
BusinessEdge-case rules make the model ask rather than fabricate.
<role> You are a [ROLE] advising [AUDIENCE]. </role> <context> [BACKGROUND, CONSTRAINTS, WHAT'S BEEN TRIED] </context> <task> Recommend whether we should [DECISION], and justify it. </task> <rules> - Give one clear recommendation. Do not present a balanced menu and refuse to choose. - State the two strongest arguments against your own recommendation. - If a figure you need is missing from the context, ask for it rather than estimating. </rules> <output_format> Recommendation (one sentence) · Reasoning (3 points) · Strongest counterarguments · What would change my mind · Next step. Under [WORD COUNT] words. </output_format>
Claude Model & Prompting Update Log
Claude Fable 5 & the Claude 5 family
● LatestCurrent line-up- Claude Fable 5 is Anthropic's most capable widely released model, sitting above Claude Opus 5 (the flagship workhorse), Claude Sonnet 5 (balanced) and Claude Haiku 4.5 (fast and cheap).
- The frontier models carry a 1M-token context window with up to 128K output — enough to paste an entire codebase, contract set or research corpus in one go.
- Reasoning depth is now set by an EFFORT control — low, medium, high, xhigh and max — rather than by a fixed thinking-token budget. On Fable 5 thinking is always on; on Opus 5 it is on by default.
- Extended thinking became adaptive: the model decides when and how deeply to think, which is why padding a prompt with "think harder" no longer helps.
- Assistant prefill was removed. Starting Claude's reply with a leading phrase to lock a format is rejected on current models — constrain output with an explicit format block and a worked example instead.
- XML tags remain the highest-leverage formatting choice for Claude specifically, and multishot examples are still one of the strongest levers available.
What this changed for prompting
Migration notes- Drop prefill-based format locking — replace it with an explicit <output_format> block plus one worked example.
- Drop "think step by step" scaffolding added purely to force deliberation; raise the effort level instead, and ask for visible reasoning only when you want it in the answer.
- Keep the parts that still work: XML structure, documents-before-instruction ordering, quote-the-relevant-passages for long inputs, <rules> for edge cases, and explicit acceptance criteria.
How to Use the Prompt Generator
Define Your Task
Select a category, describe your task in detail, and assign a specific role. Claude responds best when you explain WHY you need something, not just WHAT you need.
Set Structure & Format
Toggle Extended Thinking for complex tasks, pick whether to include few-shot examples or quote-relevant-passages mode for long documents, and set tone and output format. The generator structures everything with XML tags that Claude is trained to follow.
Generate & Use
Click "Generate" to get an XML-structured prompt built for the current Claude models. Copy and paste directly into Claude for dramatically better results.
Frequently Asked Questions
What is a Claude prompt generator?
A Claude prompt generator creates optimized prompts specifically designed for Anthropic's Claude AI models. It follows Anthropic's current prompting guidance — structuring prompts with XML tags for role, context, task, examples, rules and output format — to produce the best possible Claude results.
What structure should a Claude prompt use?
Role and tone first, then background data in its own tag, then the detailed task, then examples, then the rules for edge cases, then the output format and acceptance criteria — all wrapped in XML tags. The classic Anthropic framework ended with a "prefilled response" step, but that no longer applies: prefilling Claude's reply is rejected on current models. Lock the format with an explicit <output_format> block and one worked example instead. Our generator applies all of this automatically.
Why does Claude use XML tags?
Claude is specifically trained to recognize and follow XML-structured prompts. Tags like <role>, <context>, <task>, and <output_format> create unambiguous boundaries between instructions and data, leading to more accurate and consistent results compared to unstructured plain text prompts.
How does reasoning effort work on current Claude models?
Extended thinking is now adaptive — the model decides when and how deeply to think — and you control the overall depth with an effort setting that runs from low through medium, high and xhigh to max, with high as the default. That replaces the older fixed thinking-token budget. The practical consequence for prompting is that padding a prompt with "think harder" or "reason exhaustively" no longer buys you anything: raise the effort level instead, and keep the prompt clean. This generator shapes the brief to suit the effort level you pick.
What is multishot prompting?
Multishot prompting means providing 1-3 worked examples of the desired input/output inside <examples><example>...</example></examples> tags. Claude learns patterns very effectively from clean examples — make sure your examples exactly match the format you want back. This is one of the highest-leverage techniques on Claude.
Why does the long-document mode quote first?
For long inputs, asking Claude to quote the most relevant passages before answering measurably reduces drift — it forces the model to ground its answer in the source rather than paraphrasing from memory. Anthropic recommends this pattern for retrieval-augmented and long-context work. With a 1M-token context window you can paste an entire codebase, contract set or research corpus, so put the documents first and your instruction after them.
Can I still use a prefilled response to lock the output format?
No — and this is the most common piece of outdated Claude advice still circulating. Starting Claude's reply with a leading phrase (the "prefill" technique) is rejected on current Claude models and will error rather than help. Get the same result by describing the shape precisely inside an <output_format> block and supplying one worked example that matches it exactly. Our generator never emits prefill instructions.
Which Claude model should I use?
Claude Fable 5 is the most capable widely released model, for the most demanding reasoning and long-horizon agentic work. Claude Opus 5 is the flagship workhorse and the right default for most serious tasks. Claude Sonnet 5 is the balanced option, and Claude Haiku 4.5 is the fast, cheap one for simple, high-volume work. The frontier models share a 1M-token context and up to 128K output. Prompts from this generator are model-agnostic across the family — only the effort level you choose changes.
Is this tool free to use?
Yes. You get 1 free prompt generation per day with no signup required. For unlimited access, sign up for a Promptslove membership which includes all AI tools and 20,000+ premium prompts.
Can I use these prompts with other AI tools?
The prompts are optimized for Claude with XML tags, but the structured approach works well with ChatGPT, Gemini, Grok, MiniMax, Qwen, and other large language models. XML tags are Claude's strongest format but most modern models handle them.
How many prompts can I generate for free?
You get 1 free prompt generation every 24 hours. This resets automatically. For unlimited generations, consider signing up for a Promptslove membership.
Want Unlimited AI Prompt Generation?
Get unlimited access to all AI tools, 20,000+ premium prompts, courses, and resources designed to maximize your creative output.
