File: prompt-improver.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Prompt engineering
Use our prompt improver to optimize your prompts
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
On this page
Our prompt improver is compatible with all Claude models, including those with extended thinking capabilities. For prompting tips specific to extended thinking models, see here .
The prompt improver helps you quickly iterate and improve your prompts through automated analysis and enhancement. It excels at making prompts more robust for complex tasks that require high accuracy.

You’ll need:
The prompt improver enhances your prompts in 4 steps:
You can watch these steps happen in real-time in the improvement modal.
The prompt improver generates templates with:
While examples appear separately in the Workbench UI, they’re included at the start of the first user message in the actual API call. View the raw format by clicking ”</> Get Code” or insert examples as raw text via the Examples box.
Don’t have examples yet? Use our Test Case Generator to:
The prompt improver works best for:
For latency or cost-sensitive applications, consider using simpler prompts. The prompt improver creates templates that produce longer, more thorough, but slower responses.
Here’s how the prompt improver enhances a basic classification prompt:Original prompt
Copy
From the following list of Wikipedia article titles, identify which article this sentence came from.
Respond with just the article title and nothing else.
Article titles:
{{titles}}
Sentence to classify:
{{sentence}}
Improved prompt
Copy
You are an intelligent text classification system specialized in matching sentences to Wikipedia article titles. Your task is to identify which Wikipedia article a given sentence most likely belongs to, based on a provided list of article titles.
First, review the following list of Wikipedia article titles:
<article_titles>
{{titles}}
</article_titles>
Now, consider this sentence that needs to be classified:
<sentence_to_classify>
{{sentence}}
</sentence_to_classify>
Your goal is to determine which article title from the provided list best matches the given sentence. Follow these steps:
1. List the key concepts from the sentence
2. Compare each key concept with the article titles
3. Rank the top 3 most relevant titles and explain why they are relevant
4. Select the most appropriate article title that best encompasses or relates to the sentence's content
Wrap your analysis in <analysis> tags. Include the following:
- List of key concepts from the sentence
- Comparison of each key concept with the article titles
- Ranking of top 3 most relevant titles with explanations
- Your final choice and reasoning
After your analysis, provide your final answer: the single most appropriate Wikipedia article title from the list.
Output only the chosen article title, without any additional text or explanation.
Notice how the improved prompt:
Common issues and solutions:
Prompt library
--------------
Get inspired by example prompts for various tasks.
GitHub prompting tutorial
-------------------------
Learn prompting best practices with our interactive tutorial.
Test your prompts
-----------------
Use our evaluation tool to test your improved prompts.
Was this page helpful?
YesNo
Use prompt templates Be clear and direct
Assistant
Responses are generated using AI and may contain mistakes.
