← All Models

Claude Sonnet 4.6

Anthropic · claude family

#1
Rank
94
Quality Score
1200ms
Avg Response
+12%
Adaptation Gain

What Refrase Does

Here is exactly how Refrase optimizes prompts for Claude Sonnet 4.6, rule by rule:

XML tag structuring

Refrase wraps your prompt sections in XML tags like <instructions>, <context>, and <output_format>. Claude follows XML-structured prompts more precisely, treating each tag as a distinct instruction block.

Role extraction

Refrase pulls role definitions (like 'You are a data analyst') out of the body text and places them at the top of the prompt in a dedicated <role> block, which Claude uses to calibrate its persona more consistently.

Output format guidance

Refrase adds explicit output format instructions inside an <output_format> tag, ensuring Claude knows exactly what structure to produce (JSON, markdown, bullet list, etc.).

Before / After

See how Refrase transforms a generic prompt for Claude Sonnet 4.6.

Original

Extract the key information from this document. Be accurate.

Adapted for Claude Sonnet 4.6

<instructions>
<role>You are a precise document extraction specialist.</role>

Extract the key information from this document.

<output_format>Return a JSON object with keys: title, date, author, summary, key_points[].</output_format>
</instructions>

Compare Claude Sonnet 4.6

Try It

Your prompt134 chars
Optimized for claude-sonnet

Click "Refrase It" or select a model to see the optimized prompt.