How They Use AI  |  Newest

<< Home  |  Prompting craft

Claude follows instructions with higher precision

AreaPrompting craft
AI usedClaude
SourceReddit thread
Posted2025-12-22

The move

Wrap specific prompt components in XML-style tags to delineate instructions, context, and constraints.

Steps

  1. Identify the core task, context, constraints, and output format.
  2. Wrap the task in <task> tags.
  3. Place background info inside <context> tags.
  4. Define limits within <constraints> tags.
  5. 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.

Sources



Last updated November 26, 2026.