Lesson 11 of 2116
Anthropic's Prompt Engineering Patterns
Anthropic publishes detailed prompt engineering guidance. Master the core patterns — Be Direct, Let Claude Think, and Chain Complex Prompts — to write production-grade prompts.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1Why study a model's own guide?
- 2Anthropic prompt engineering
- 3be direct
- 4let Claude think
Concept cluster
Terms to connect while reading
Section 1
Why study a model's own guide?
Anthropic maintains an extensive public prompt engineering guide for Claude (docs.anthropic.com/claude/docs/prompt-engineering). It reflects what they've seen work across millions of production prompts. The patterns transfer to other models, but they are especially potent with Claude.
Pattern 1: Be Clear, Direct, and Detailed
Claude responds best to prompts that read like instructions to a smart new employee. Don't assume context. Spell out the task, the audience, the constraints, and the format. Vague 'help me' prompts produce vague results.
Specificity is the primary lever for quality.
GOOD:
Write a 300-word internal memo announcing a 4-day workweek pilot starting July 1. Audience: 50-person B2B SaaS company, ages 22-55, mostly engineers. Tone: warm but precise. Include: the rationale (work-life balance + productivity research), the logistics (Friday off, same pay, 12-week pilot), and how feedback will be collected. Close with a line inviting questions.
TOO VAGUE:
Write a memo about our new work policy.Pattern 2: Let Claude Think (Extended Thinking)
For complex reasoning, give Claude explicit room to think before answering. Modern Claude models have an 'extended thinking' mode that surfaces internal reasoning. Even without that feature, structured thinking tags help.
Forcing visible reasoning surfaces the chain and makes it auditable.
<task>
Decide whether the company should acquire Startup X for $40M.
</task>
<context>
[financials, market data, team bios, etc.]
</context>
Before answering:
1. Inside <analysis> tags, list 5 arguments for and 5 against.
2. Inside <risks> tags, name the 3 highest-impact risks and their mitigations.
3. Inside <recommendation> tags, give your final call with a confidence level (low/med/high).
Use the tags exactly as named.Pattern 3: Chain Complex Prompts
When a task has multiple independent sub-tasks — research, outline, draft, critique, revise — don't try to do it in one monolithic prompt. Chain them. Each prompt in the chain focuses on one thing and passes its output to the next.
Chained prompts. Each step has one clear job. Failures are isolated and fixable.
STEP 1 (research):
You are a research analyst. Given the topic '{TOPIC}', list 10 specific claims worth verifying, each with a category tag.
--> output: list of claims
STEP 2 (verification):
Given these claims: {CLAIMS_FROM_STEP_1}, for each one, judge its likely accuracy and mark: supported | contested | unknown. Explain briefly.
--> output: annotated claims
STEP 3 (synthesis):
Using only the 'supported' claims from {ANNOTATED_CLAIMS}, write a 500-word essay with inline citations of the form [claim-id].
--> output: essayPattern 4: Give Claude a Role
- 'You are a meticulous copy editor who prefers plain language.'
- 'You are a senior data engineer reviewing a PR.'
- 'You are a contrarian debate partner who argues the strongest opposing case.'
- 'You are a structured-interview AI evaluator scoring a response 1-5 on four dimensions.'
Pattern 5: Use Examples (Multishot)
Anthropic's docs are explicit: 'Multishot prompting is the single most effective technique for improving Claude's performance.' Three well-chosen examples often outperform any amount of verbal instruction.
Key terms in this lesson
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “Anthropic's Prompt Engineering Patterns”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 36 min
Meta-Prompting: AI That Writes AI Prompts
Use an AI to write, optimize, and debug your prompts. Meta-prompting is how top teams ship production prompts faster than humans alone could write them.
Creators · 55 min
The Three Ingredients: Data, Compute, Algorithms (Capstone)
Every AI breakthrough of the past decade rests on three interacting ingredients. Synthesize everything you have learned into one working model.
Creators · 38 min
Red-Teaming Your Own Prompts
Before shipping, attack your own prompts. Inject, confuse, overload, and role-swap. If you don't find the holes, your users will.
