<< Home | Prompting craft
Claude follows instructions with higher precision
| Area | Prompting craft |
| AI used | Claude |
| Source | Reddit thread |
| Posted | 2025-12-22 |
The move
Wrap specific prompt components in XML-style tags to delineate instructions, context, and constraints.Steps
- Identify the core task, context, constraints, and output format.
- Wrap the task in <task> tags.
- Place background info inside <context> tags.
- Define limits within <constraints> tags.
- Specify the desired output format using <output_format> tags.
Prompt for your AI
<task>What you want Claude to do</task>
<context>Background information it needs</context>
<constraints>Any limits or rules</constraints>
<output_format>How you want the answer</output_format>
What happened
The user struggled with misunderstandings and back-and-forth dialogue when prompting Claude. By adopting XML-style tags to structure the request, the model grasped the requirements perfectly. The poster reported remarkable improvements in results across different Claude versions.Who confirmed it
Claude grasped my needs perfectly. There was no need for back-and-forth dialogue or misunderstandings.Watch out
Running the same prompt multiple times may result in a half-baked document due to model variability.Give it to your agent
Read https://howtheyuse.ai/p/claude-follows-instructions-with-higher-precision.md and help me do this.