đŸŽ¯ Prompting Masterclass

The Art of Prompting Claude

From basic techniques to advanced frameworks — learn how to communicate with Claude in a way that consistently gets outstanding results.

â„šī¸

Why prompting matters: Two people can use the same Claude model and get wildly different results — purely based on how they phrase their request. A well-crafted prompt is the single biggest lever you have for improving output quality.

Build Every Prompt with CRAFT

A simple framework for structuring any prompt. Include as many elements as relevant.

C
Context
Who are you? What's the background situation? Why are you asking?
R
Role
What expert persona should Claude adopt? (e.g. "Act as a senior lawyer...")
A
Action
What specifically do you want Claude to do? Be precise and use action verbs.
F
Format
How should the output look? (bullet list, table, JSON, essay, etc.)
T
Tone & Constraints
Tone, length, what to avoid, audience level, language style.

9 Essential Prompting Techniques

Master these techniques and you'll be in the top 5% of Claude users.

🎭 Role Prompting Beginner

Assigning Claude a role or persona dramatically shifts the vocabulary, depth, and perspective of its responses. It's one of the easiest and most powerful techniques.

❌ Without Role

"Explain compound interest."

✅ With Role

"Act as a financial advisor explaining compound interest to a 16-year-old who just opened their first savings account. Use relatable examples and avoid jargon."

💡

The more specific the role, the better. "Act as a senior Google engineer with 10 years of Python experience" beats "act as a programmer."

đŸĒœ Chain of Thought Beginner

Asking Claude to reason step-by-step before giving an answer dramatically improves accuracy on logic, maths, and complex decisions. It forces Claude to "show its work."

❌ Direct Answer

"Is it better to lease or buy a car for a small business?"

✅ Step-by-Step

"Is it better to lease or buy a car for a small business? Think through this step by step, considering tax implications, cash flow, depreciation, and flexibility. Show your reasoning before your final recommendation."

📎 Few-Shot Prompting Intermediate

Showing Claude one or more examples of the output you want before asking it to produce more. This is the single most effective technique for matching a specific style or format.

Few-Shot Example
Here are examples of product descriptions in the style I want: EXAMPLE 1: Product: Ceramic coffee mug Description: "Mornings don't deserve mediocre mugs. Handcrafted from stoneware clay, this 14oz beauty keeps your coffee hot without burning your hands — and looks like it belongs in a design magazine." EXAMPLE 2: Product: Leather notebook Description: "Ideas don't wait for a good time. This full-grain leather journal survives bag bottoms, coffee rings, and bad days. 192 pages of premium dot-grid paper ready for your next big thing." Now write descriptions in this exact style for these 3 products: 1. Bamboo phone stand 2. Beeswax candle set 3. Linen tote bag

đŸˇī¸ XML Structuring Intermediate

Using XML tags in your prompts helps Claude understand which part of your input is what. This is especially useful for complex prompts with multiple components (instructions, examples, data to analyse).

XML Structure Example
<task> Analyse the customer reviews below and identify the 3 most common complaints. </task> <format> Return as a numbered list. For each complaint, include: - The complaint in one sentence - How many reviews mention it (approximate) - A suggested fix </format> <reviews> [paste reviews here] </reviews>
💡

Anthropic specifically recommends using XML tags for complex prompts — Claude is trained to recognise and respect this structure.

🔄 Iterative Refinement Beginner

Don't settle for the first output. The best Claude results usually come from 2-3 rounds of refinement. Be specific about what to change.

❌ Vague Refinement

"Make it better." / "Improve this." / "This isn't quite right."

✅ Specific Refinement

"Good start. Now: (1) Cut the second paragraph — it repeats point 1, (2) Make the opening sentence a question instead of a statement, (3) Add a concrete example to paragraph 3."

đŸšĢ Negative Instructions Beginner

Tell Claude what NOT to do. This is just as important as telling it what to do, and it's often what separates good from great outputs.

Negative Instruction Example
Write an introduction to machine learning for beginners. DO NOT: - Use the phrase "In today's rapidly evolving world" - Use the brain/neuron analogy — it's overused - Include a history of AI timeline - Use bullet points - Exceed 200 words

🔍 Self-Critique Prompting Intermediate

After getting an answer, ask Claude to critique its own response. This surfaces errors, gaps, and weak reasoning that Claude might not surface unprompted.

Self-Critique Prompt
Now review your previous answer critically: 1. What are the 2-3 weakest parts of your argument? 2. What important counterarguments did you not address? 3. Were there any assumptions you made that might not be true? 4. What would a domain expert criticise about this response? Then give me an improved version that addresses these issues.

📐 Output Format Control Beginner

Always specify the format you want. Claude will match virtually any structure you describe — tables, JSON, markdown, numbered lists, prose, and more.

Format Examples
"Return as a JSON object with keys: title, summary, keyPoints (array), sentiment" "Format as a markdown table with columns: Feature | Claude | ChatGPT | Winner" "Give me exactly 5 bullet points. Each bullet must be exactly one sentence under 15 words." "Write in the format: [Problem] → [Root Cause] → [Solution] for each issue."

đŸŽšī¸ Persona + Audience Pairing Advanced

Combine a role for Claude with a specific description of who it's writing for. This double-layered instruction produces the most precisely tailored outputs.

Persona + Audience Example
You are a veteran UX designer with 15 years of experience at top tech companies. You are writing for: junior product managers (2-3 years experience) who understand basic product concepts but have never done user research before. They are smart but time-poor. Write a guide explaining how to run a user interview. They need practical, actionable advice they can use this week — not theory.

30+ Ready-to-Use Prompt Templates

Copy, paste, and adapt. Fill in the brackets with your specifics.

âœī¸ Article Writer
Write a [length]-word article about [topic] for [audience]. Tone: [tone]. Include: an attention-grabbing opening, [N] main sections with subheadings, real examples, and a clear takeaway. SEO keyword to include naturally: [keyword].
📧 Cold Email
Write a cold outreach email to [prospect type] about [offering]. Value prop: [one line]. Proof: [stat or result]. Under 80 words. End with a specific, low-commitment CTA. No "I hope this email finds you well."
🐛 Debug My Code
Find and fix the bug in this [language] code. Error: [error message]. Expected: [what should happen]. Explain the root cause, show the fix, and highlight what changed. Code: [paste code]
📊 Data Analyser
Analyse this data and tell me: (1) the 3 most important insights, (2) any anomalies or surprises, (3) what action I should take based on this. Context: [what the data represents]. Data: [paste data]
đŸŽ¯ Rewrite & Improve
Rewrite this text to be [shorter/clearer/more persuasive/more formal/more casual]. Keep the core message intact. Target length: [N words]. Audience: [who will read it]. Original: [paste text]
💡 Brainstorm Ideas
Brainstorm [N] ideas for [topic/challenge]. I work in [industry/context]. Avoid obvious ideas. For each idea, give a one-sentence explanation of why it could work. Mark your top 3 with a star.
📝 Meeting Summary
Summarise this meeting transcript into: (1) 3-5 key decisions made, (2) action items with owners and deadlines, (3) open questions that need follow-up. Format as bullet points. Transcript: [paste]
🔄 Translate & Localise
Translate this text from [language] to [language]. Don't just translate — localise it for [country/culture]. Adapt idioms, examples, and cultural references so they feel natural to a native speaker. Text: [paste]
âš–ī¸ Devil's Advocate
I'm planning to [decision/action]. Play devil's advocate and give me the strongest possible case AGAINST this decision. Don't hold back. Then give me 3 ways I could mitigate those risks.
📖 Explain Simply
Explain [complex topic] to someone who is [background/level]. Use one simple analogy. Avoid all jargon. If you must use a technical term, define it immediately. Keep it under [N] words.
đŸĸ Job Description
Write a job description for a [role] at [company type]. Culture: [3 words]. Key responsibilities: [list 4-5]. Must-have skills: [list]. Nice-to-have: [list]. Tone: [e.g. welcoming, direct, startup-casual]. Include a compelling intro paragraph.
🔍 Research Summary
Summarise this [article/paper/report] in 3 parts: (1) Main argument in 2 sentences, (2) Key evidence or findings as 5 bullet points, (3) Limitations or caveats I should know. Document: [paste]

Put these techniques into practice

Open Claude and try your first advanced prompt right now.

âœĻ Open Claude.ai See Use Case Workflows →