Home/Blog/How to Write Prompts for Claude — The Complete Guide
Prompt Guides9 min readUpdated April 1, 2026

How to Write Prompts for Claude — The Complete Guide

Claude responds differently to prompting than ChatGPT. This guide covers Claude's unique prompt patterns: XML tags, direct instruction style, and how to get the most from its 200K context window.

Claude is not just ChatGPT with different branding. It responds to different prompting patterns, and if you're using ChatGPT-style prompts with Claude, you're leaving significant quality on the table. This guide covers exactly what makes Claude different and how to prompt it for maximum output quality.

The most important difference: no persona framing needed

With ChatGPT, people often write 'Act as an expert copywriter...' or 'You are a senior software engineer...'. With Claude, this type of role-play framing adds noise rather than signal. Claude's instruction-following is precise enough that direct briefs consistently outperform persona prompts. Skip the 'you are a...' framing and give direct, specific instructions instead.

Use XML tags for complex, structured prompts

Claude is specifically trained to parse XML-style tags in prompts. This is one of its most powerful features — use it for any complex task with multiple components.

Analyse the following customer feedback and provide a summary report.

<feedback>
[paste feedback here]
</feedback>

<requirements>
- Identify top 3 recurring themes
- Sentiment breakdown (positive/negative/neutral)
- 3 specific product improvement suggestions
- Format as an executive summary under 300 words
</requirements>

Explicit constraints beat implicit expectations

Claude follows explicit constraints more reliably than almost any other model. State your requirements clearly and specifically:

  • Word count: 'write exactly 400 words' — Claude will be close, not 'approximately'
  • Forbidden phrases: 'never use the words: synergy, leverage, cutting-edge' — Claude reliably respects these lists
  • Format: 'respond only in bullet points, no prose paragraphs'
  • Tone: 'professional but direct — no filler phrases like I hope this finds you well'

Leverage the 200K context window properly

Claude's context window is twice the size of ChatGPT's. Don't waste it — paste full documents, not excerpts. For research, paste multiple full-length papers. For code review, paste the entire file. For writing feedback, paste the complete draft. Claude processes it all without losing context or degrading in quality at the end.

Ask Claude to flag its uncertainty

Unlike some models, Claude responds reliably to metacognitive instructions. These prompts produce more honest, useful output:

  • 'Rate your confidence in each factual claim from 1-5'
  • 'Flag any sections where you've deviated from the brief and explain why'
  • 'Identify what you don't know or couldn't verify in your response'
  • 'List any assumptions you made that I should validate'

The best Claude prompt template

<task>
[Clear, specific task description]
</task>

<context>
[Relevant background, documents, or data]
</context>

<constraints>
- [Tone or voice requirement]
- [Format requirement]
- [Word count or length requirement]
- [Any phrases to avoid]
</constraints>

<output_format>
[Exactly how you want the response structured]
</output_format>

Frequently asked questions

How do you get the best results from Claude?

Use XML tags to structure complex prompts, give direct explicit instructions without persona framing, state your constraints precisely (word count, tone, forbidden phrases), and leverage the 200K context window by pasting full documents rather than excerpts.

Is Claude better than ChatGPT for writing?

For professional, long-form writing, Claude generally outperforms ChatGPT. It follows style briefs more faithfully, produces less padded output, and maintains voice consistency across long pieces. ChatGPT wins when you need DALL-E images or live web research integrated into the writing.

Build better AI prompts with PromptIt

Free prompt builder for ChatGPT, Claude, Gemini, Grok, and more. No account required to get started.

✦ Try PromptIt Free

Related articles

Prompt Engineering Guide 2026: What Actually Works

The practical prompt engineering guide for 2026 — techniques that produce better output from ChatGPT

25 Best ChatGPT Prompts for Marketing in 2026

The best ChatGPT prompts for marketing — ad copy, email sequences, social media, and competitive ana

← Back to all articles