What Is a Prompt?
The one skill that decides whether an AI assistant gives you a vague answer or exactly what you needed. Learn what a prompt is, how Claude reads it, and how to write one that works.
Suppose you ask a friend, “Can you help me with my presentation?” Your friend might reply, “Sure, what do you need?” and a short conversation follows. Now suppose you could not have that back-and-forth, and you had to put everything in one message. You would think carefully about what to include: what the presentation is about, who will watch it, how long it should be, and what kind of help you want. That one carefully written message is very close to what people call a prompt.
A prompt is simply what you say to an AI assistant such as Claude. Yet this small thing has a large effect. The same assistant can give a flat, generic answer to one prompt and a sharp, useful answer to another. The difference is rarely about the assistant being “in a better mood”. It is almost always about what the prompt contained.
This guide assumes you know nothing about the subject. Every new word is explained the first time it appears. We start with the plain meaning of a prompt, look at its parts, see how Claude reads one, and then move to practical habits, common mistakes, safety, and ready-to-use patterns. You do not need any technical background, and there is no code anywhere in this guide.
TThe Big Picture: What Is a Prompt?
The simplest definition comes first, and then we make it useful.
A prompt is the input you give to an AI model to tell it what you want. It can be a question, an instruction, a piece of text to work on, an example to copy, or any mixture of these. When you type a message to Claude and press send, that message is your prompt.
The word “prompt” comes from the idea of prompting, as when a teacher gives a student a starting line, or a stage assistant whispers the first words to an actor. The prompt gets the performance started. The AI’s reply is called the response, or sometimes the output. So every exchange has two halves: you write the prompt, and the model writes the response.
Think of ordering food. If you walk into a restaurant and say “food”, the waiter has no idea what to bring. If you say “a vegetarian pasta, not too spicy, and a glass of water”, you will probably get what you want. The order is the prompt, and the meal is the response. A better order does not make the kitchen more skilled. It simply lets the kitchen use its skill on the right thing.
A Prompt Is More Than a Question
Many beginners think a prompt must be a question. It does not. All of the following are prompts: “Explain photosynthesis to a ten-year-old.” “Rewrite this email so it sounds friendlier.” “Here is my essay. Tell me the weakest paragraph.” “Give me five names for a bakery.” Each one tells Claude what to do, and each one gets a response.
You are already writing prompts every time you chat with an assistant. The goal of this guide is not to teach you a new activity, but to help you do the same activity more deliberately.
AA Short History: From Commands to Conversation
People have always had to tell computers what to do. What changed is how we say it.
In the early days of computing, you gave instructions in strict, special languages. A single misplaced symbol could break everything, because the computer understood only the exact commands it had been built to expect. Talking to a computer meant learning its language.
Later, search engines let ordinary people type short keywords and get results. That was friendlier, but it still taught people to shrink their thoughts into a few words, because that was what the machine could match. Voice assistants then allowed spoken commands, though usually for a short list of simple tasks.
Large language models changed the situation. A large language model, often called an LLM, is a program trained on a huge amount of text so that it can read and write human language. Claude, made by the company Anthropic, is one such model family. Because these models were trained on language itself, you can talk to them in ordinary sentences, describe a messy situation, and receive a thoughtful reply. The computer finally meets people halfway.
Strict commands
Instructions had to be written in exact formal languages that only trained people could use.
Keywords and search
Ordinary people could type a few words and get a list of pages, but had to think in keywords.
Language models
Models trained on language could understand full sentences and write fluent replies.
Prompting becomes a skill
People noticed that how you ask changes what you get, and shared techniques. The craft of writing good prompts became known as prompt engineering.
Think of how we communicate with a machine like a lift. Once you had to know which levers to pull. Then came buttons with numbers. Now you can say “take me to the fifth floor” and some lifts understand. Each step moved the burden away from the person and toward the machine, yet knowing what you want to say is still your job.
Techniques for prompting keep evolving as models improve. Newer Claude models often need less hand-holding than older ones, but clear, specific prompts still help every time.
CCore Concepts: The Words You Need
Twelve short definitions that make the rest of this guide easy to follow.
Prompt
Whatever you give the model to work with: a question, instructions, examples, or documents.
Response
What the model writes back. It is created fresh each time, based on your prompt.
Token
A small piece of text, often a short word or part of a word. The model reads and writes text one token at a time.
Context
The background information the model can use: what you have told it, earlier messages, and any documents you shared.
Context window
The total amount of text the model can keep in view at once. Anything beyond it cannot be used.
System prompt
Hidden instructions written by whoever built the product, which set the assistant’s role, tone, and rules before you type anything.
Instruction
The part of the prompt that says what to do, such as summarize, compare, or rewrite.
Example
A sample of what a good answer looks like, which the model can follow. Giving examples is sometimes called few-shot prompting.
Constraint
A limit or rule, such as “keep it under 100 words” or “avoid technical terms”.
Format
The shape you want the answer to take, such as a list, a table, short paragraphs, or an email.
Hallucination
When an AI states something false as if it were true, such as an invented fact or source.
Prompt engineering
The practice of designing and improving prompts so that the model gives better results.
Imagine briefing a new colleague. The instruction is the job, the context is the background story, the examples are samples of past good work, the constraints are the deadline and the length, and the format is how you want it delivered. A prompt is simply a briefing, written down.
The model only knows what is in the context window and what it learned in training. If something important lives only in your head, it is not in the prompt, and Claude cannot use it.
TThe Anatomy of a Prompt: Six Useful Parts
A strong prompt is usually built from a handful of simple parts, and you can pick the ones you need.
Not every prompt needs every part. A quick question may need only one. But when a task matters, thinking through these six parts will almost always improve the result. The diagram shows how they fit together, and the sections below explain each one.
flowchart TD
A["A strong prompt"] --> B["1. Goal
What do you want done?"]
A --> C["2. Context
What is the background?"]
A --> D["3. Audience
Who is it for?"]
A --> E["4. Examples
What does good look like?"]
A --> F["5. Constraints
What limits apply?"]
A --> G["6. Format
How should it be shaped?"]
Goal
Say plainly what you want: explain, summarize, compare, draft, fix, brainstorm, or check. A clear verb is the single most useful word in a prompt.
Context
Give the background: what the situation is, what you have already tried, and why you are asking. Context turns a generic answer into a fitting one.
Audience
Say who will read or use the result: a child, a manager, a beginner, a customer. Claude then adjusts words, depth, and tone.
Examples
Show a sample of what you like. Models copy patterns very well, so one good example often does more than a paragraph of description.
Constraints
State limits such as length, tone, words to avoid, or things that must be included. Constraints stop the answer from wandering.
Format
Say how the answer should look: a short list, a table, three paragraphs, or a friendly email with a subject line.
Think of a recipe card. It names the dish (goal), explains when you will serve it and to whom (context and audience), may include a photo (example), lists what to avoid, such as nuts (constraints), and says how many portions to make (format). A cook who gets all of that rarely goes wrong.
A handy memory trick is to ask yourself six short questions before sending an important prompt: what, why, who, like what, within what limits, and in what shape.
HHow Claude Reads a Prompt: A Look Inside
Understanding what happens inside makes the advice in this guide feel logical instead of arbitrary.
Claude does not look up an answer from a stored list. It writes the response from scratch, one token at a time. First it reads your prompt, which is split into tokens and turned into numbers. These numbers pass through many layers of the model. A mechanism called attention lets the model work out which parts of the prompt matter most for the next piece of the reply. Then the model scores every possible next token, picks one, adds it to the reply, and repeats until the answer is complete.
flowchart LR
P["Your prompt"] --> T["Split into tokens"]
T --> N["Turn tokens into numbers"]
N --> L["Layers of attention weigh what matters"]
L --> X["Scores for the next token"]
X --> S["Choose one token"]
S --> O["Add it to the response"]
O --> L
Why the Prompt Matters So Much
Everything Claude writes is shaped by the prompt in front of it. The prompt sets the direction for the very first token, and each later token builds on the ones before it. If the prompt is vague, many different directions look equally likely, and the reply tends toward something generic. If the prompt is specific, fewer directions fit, and the reply lands closer to what you meant.
Claude Does Not Read Your Mind
Claude only has the words you give it, plus its training and any earlier messages in the chat. It cannot see your screen, your project, or your intentions unless you describe them or share them. This sounds obvious, but it explains most disappointing answers. The model did not fail to understand. It was simply never told.
Imagine a very skilled translator who has been blindfolded and handed a note. The translator can do excellent work with whatever is written on the note, but cannot know the background story unless it is on the note. A prompt is that note. Everything the translator needs must be written on it.
Models are trained to be helpful and honest, so when a prompt is truly unclear, Claude may ask a clarifying question instead of guessing. Answering such a question is a great way to improve the result.
DData Flow: The Journey of Your Prompt
Your prompt is not the only thing Claude sees, and knowing the rest explains many surprises.
When you press send in a Claude product, several pieces of text are put together before they reach the model. Your latest message is only one of them. The picture below shows the order of events, and the steps after it describe each part.
sequenceDiagram
participant U as You
participant A as The app
participant C as Claude model
U->>A: Type your prompt
A->>A: Add the system prompt and earlier messages
A->>C: Send everything together
C->>C: Read all the tokens and plan the reply
C-->>A: Stream the response in small pieces
A-->>U: Show the response as it appears
You write your message
This is the prompt you control directly, along with any files you attach.
The app adds hidden instructions
Many products include a system prompt that sets the assistant’s role and rules. You normally do not see it, but it shapes how the assistant behaves.
The conversation history is included
Your earlier messages and Claude’s earlier replies are sent again, because the model does not keep a running memory by itself. This is how it stays on topic.
Claude reads everything together
All of that text counts as the context, and the context window sets how much can fit.
The response is written and shown
Tokens stream back and appear on your screen, which is why you see text arrive gradually.
What This Means for You
Because the whole conversation is sent each time, a very long chat means a very long prompt for the model to read. Old, unrelated material may distract it, and eventually the history may approach the limit of the context window. This is why starting a fresh chat for a new topic is a simple habit that often improves answers.
Think of a helper who forgets everything when you leave the room. Each time you return, you hand them a folder with the house rules (system prompt), a copy of your whole earlier conversation (history), and your new question (your prompt). They read the folder, answer, and wait. The folder gets thicker with every visit.
KKinds of Prompts: A Quick Tour
Prompts come in many shapes. Recognizing them helps you pick the right one.
You do not need to memorize categories, but seeing the common kinds makes it easier to choose a shape for your own request. Most real prompts are a mixture of two or three of these.
Question prompts
“Why is the sky blue?” These ask for an explanation or fact and work best when you also say how deep the answer should be.
Instruction prompts
“Summarize this article in five bullet points.” These tell the model to carry out a task.
Role prompts
“Act as an experienced interviewer and ask me three questions.” These give the model a viewpoint to speak from.
Example prompts
“Here are two product descriptions I like. Write a third in the same style.” These teach by showing.
Step-by-step prompts
“Work through this problem step by step before giving the answer.” These encourage careful reasoning.
Creative prompts
“Write a short story about a lighthouse keeper who loses count of the days.” These invite imagination and benefit from a few guiding details.
Analysis prompts
“Here is my budget. Which three costs look unusually high?” These ask the model to examine material you provide.
Rewrite prompts
“Make this paragraph shorter and friendlier.” These start from your own text and change its tone or length.
Think of a toolbox with different tools for different jobs. A question prompt is like a tape measure for finding out something. An instruction prompt is a screwdriver for getting something done. An example prompt is a template you trace. You can use several together, and the more you practice, the more naturally you reach for the right one.
When one kind of prompt does not work, switch kinds. If a question gives a vague answer, try an instruction with a format. If an instruction misses the style, add an example.
WWriting Clear Instructions: Be Specific
If you remember only one rule about prompts, make it this one.
The single most effective habit is being specific. A vague prompt invites the model to guess, and guesses produce average results. A specific prompt narrows the target. Being specific does not mean being long. It means saying the important things clearly.
Replace Vague Words With Concrete Ones
| Vague | Specific |
|---|---|
| Make it better | Make it shorter, remove jargon, and keep a friendly tone |
| Write something about exercise | Write a 150-word tip for busy office workers who can only spare ten minutes a day |
| Explain this | Explain this to a beginner using one everyday example |
| Summarize the report | List the three main findings and one risk, in plain language |
| Give me ideas | Give me eight ideas for a school science fair, each doable with household items |
Say What to Do, Not Only What to Avoid
It is natural to write “do not be boring” or “do not use big words”. Such instructions are helpful, but they are even better when paired with a positive description: “use short sentences and everyday words”. Telling Claude what you want gives it something to aim for, instead of only something to avoid.
Give the Reason When It Matters
Adding a short reason helps Claude understand the spirit of your instruction. “Keep it brief because it will be read on a phone” is more useful than “Keep it brief”, because Claude can then make sensible choices you did not spell out, such as using short paragraphs.
Telling a taxi driver “take me somewhere nice” might end with a surprise. Saying “take me to the train station, and use the highway because I am late” gets you there on time. The destination and the reason together help the driver choose the best route.
CGiving Context: The Background That Changes Everything
The same words can deserve very different answers depending on your situation.
Consider the prompt “How should I save money?” A student, a retiree, and a small business owner would each need a different answer. Without context, Claude can only give general advice that fits nobody especially well. With a few lines of background, the same question becomes a request for exactly the advice you need.
What Counts as Useful Context
About you or your audience
Your level of experience, your job, or who will read the result.
The situation
What you are working on, what has happened so far, and what you have already tried.
The purpose
What the result will be used for, such as a class assignment, a meeting, or a personal decision.
The conditions
Budget, time, tools you have, or rules you must follow.
Without Context and With Context
Without context
“Plan a trip to Jaipur.” Claude has to guess the length, season, budget, interests, and who is traveling, so the plan will be a general tour that suits nobody in particular.
With context
“Plan a three-day trip to Jaipur for two adults and a seven-year-old in February. We enjoy forts and food but do not like long drives. Our budget is moderate.” Now every suggestion can fit the real situation.
Visiting a doctor with only the words “I feel unwell” leaves the doctor to ask many questions. Describing when it started, what makes it worse, and what you have already taken lets the doctor help much faster. Context is the same kind of information, for an assistant.
Context is helpful, but never include secrets such as passwords, card numbers, or government ID numbers. Share what is needed for the task and nothing more.
EUsing Examples: Show, Do Not Only Tell
Models are excellent at spotting patterns, so a sample is often worth a paragraph of explanation.
Describing a style in words is surprisingly hard. Words like “friendly but professional” mean different things to different people. An example removes the guesswork. When you paste a sample of what you like, Claude can see the length, the tone, the structure, and the little habits of the writing, and then follow them.
Giving one or more examples inside a prompt is often called few-shot prompting. A “shot” is just an example. Zero examples is a “zero-shot” prompt, one example is “one-shot”, and a few examples is “few-shot”. You do not need to remember the names. You only need to remember the idea: show what good looks like.
How to Use Examples Well
Label them clearly
Say that something is an example, so Claude does not confuse it with the real task. For instance: “Here are two examples of the style I like.”
Choose examples that match your goal
Claude will copy what it sees, including quirks. If your example is very short, you may get very short answers.
Use a few different ones when variety matters
If all your examples look alike, the output will too. Two or three that differ in content but share the style you want work well.
Say what to copy and what not to copy
For example: “Match the tone and length, but use new content and a different product.”
Think of a tailor. You can spend ten minutes describing a jacket you want, or you can hand over a photo of one you like. The photo carries more information than any description. An example in a prompt is the photo.
If you have a piece of your own writing that sounds like you, paste it as an example and ask Claude to match that voice. This is a great way to get drafts that feel like they came from you.
FControlling Format and Length
A great answer in the wrong shape is still hard to use.
Claude chooses a format on its own when you do not say, and it usually makes a sensible guess. But if you need something specific, such as a table to paste into a document or a short reply for a text message, say so. Format instructions are among the easiest to give and the most dependable to follow.
Common Formats You Can Ask For
| You want | You can say |
|---|---|
| A quick overview | “Give me five bullet points” |
| A comparison | “Put this in a table with columns for cost, time, and difficulty” |
| A readable explanation | “Write in short paragraphs with no jargon” |
| A ready-to-send message | “Write a friendly email with a subject line, under 120 words” |
| A plan | “Give numbered steps with a time estimate for each” |
| A quick decision | “Give the recommendation first, then three reasons” |
Length
Be direct about length. “In two sentences”, “about 300 words”, and “a one-page summary” all help. If the first answer is too long, simply say “shorter, please” or “cut it in half”. If it is too brief, say “expand the second point with an example”. Length is cheap to adjust.
Tone
Tone words work well too: formal, warm, playful, calm, confident, plain. You can also describe the situation: “This is for a customer who is annoyed about a late delivery”. Claude will then choose a suitable tone without a long list of rules.
Think of a photographer who takes a beautiful picture. Whether you receive it as a tiny thumbnail, a poster, or a printed postcard depends on what you asked for. The picture is the same, but the shape decides how useful it is to you. Format instructions pick the shape.
TThinking Step by Step: Asking for Reasoning
For problems that need careful thought, a small change in the prompt can make a big difference.
Some tasks are not simple lookups. They involve several stages: working out a budget, comparing options, solving a puzzle, or planning a project. For such tasks, asking Claude to reason in steps tends to give better results than asking only for the final answer. The model is built to produce text one piece at a time, so letting it write out intermediate steps gives it room to work things through.
Ways to Ask
Ask for steps
“Work through this step by step before giving your final answer.”
Break the task into parts
“First list the key facts. Then identify the problem. Then suggest two solutions.”
Ask it to check its work
“After you answer, review your calculation and point out any mistakes.”
Ask for assumptions
“List the assumptions you made, so I can check them.”
Some versions of Claude can also spend extra time reasoning before they reply, which helps with math, logic, and complex planning. This takes a little longer, which is the trade-off. For a simple request, you do not need it.
When a teacher marks a math exam, students who show their working earn credit even if the final number is wrong, and they usually make fewer mistakes in the first place. Writing out the steps slows you down just enough to notice errors. Asking a model to show its steps has a similar effect.
Showing steps also helps you. When you can read the reasoning, you can spot the exact place where something went wrong and correct it directly.
RRoles and Personas: Giving Claude a Point of View
Sometimes the best prompt starts with who should be speaking.
A role prompt asks Claude to take a particular viewpoint: “Act as a patient math tutor”, “Respond like an experienced editor”, or “Pretend you are a hiring manager reviewing my resume”. This can help Claude choose the right vocabulary, the right level of detail, and the right kind of feedback.
When Roles Help
Roles are useful for practice and perspective. You can rehearse a job interview with an interviewer role, test a presentation with a skeptical audience, or ask for feedback from the viewpoint of a customer. They can also set a helpful tone, such as a gentle tutor for a nervous learner.
Roles Are a Lens, Not Magic
A role does not give Claude new knowledge or new abilities. It focuses how the existing knowledge is presented. Saying “act as an expert lawyer” does not turn Claude into a licensed lawyer, and the answer should not be treated as legal advice. Pairing a role with clear details about your situation works better than a role alone.
Good uses of roles
- Practice conversations such as interviews
- Getting feedback from a certain viewpoint
- Choosing a teaching style that suits you
- Setting tone for writing tasks
Risky uses of roles
- Treating a role as a real professional’s advice
- Believing a confident tone means high accuracy
- Skipping your own checking because the role sounds expert
- Using a role instead of giving real details
Think of an actor playing a doctor in a film. The actor can speak convincingly about medicine, but you would not take a prescription from them. A role in a prompt gives the right voice for the scene. It does not provide the license to practice.
For health, law, money, and safety decisions, use Claude to learn and to prepare questions, and confirm the final decision with a qualified professional.
IIterating: The Conversation Is Part of the Prompt
Your first prompt does not have to be perfect. Most good results come from a few rounds.
Many beginners treat a prompt like a single throw: if it misses, they give up. Experienced users treat it like a conversation. They send a first prompt, look at the response, and then say what to change. Each follow-up becomes part of the context, so the conversation steadily homes in on what you want.
flowchart LR
A["Write a clear first prompt"] --> B["Claude responds"]
B --> C["You review the response"]
C --> D{"Is it what you need?"}
D -->|"Yes"| E["Use it and check key facts"]
D -->|"No"| F["Say exactly what to change"]
F --> B
How to Give Good Feedback
Point to the exact part
“The second paragraph is too technical” is better than “this is not good”.
Say what you want instead
“Replace it with a simple example about cooking.”
Keep what already works
“Keep the introduction exactly as it is.” This stops good parts from being rewritten.
Change one thing at a time when it matters
If you change many things at once, it is hard to know which change helped.
Think of a sculptor. The first pass shapes a rough form. The next passes refine the face, the hands, and the details. Nobody expects a finished statue from the first chisel stroke. A conversation with Claude works the same way: the first reply is a rough form that you shape.
If a conversation has become tangled after many rounds, start a fresh chat and write one clean prompt that includes everything you learned. This often works better than patching a long thread.
WWorking With Documents and Long Material
When your prompt includes a lot of text, a little organization goes a long way.
One of Claude’s strengths is reading long material. You can attach or paste an article, a report, a contract draft, meeting notes, or a pile of customer feedback and ask questions about it. A larger context window means more fits in a single prompt. But long prompts need good structure, so the model knows which part is which.
Keep Instructions and Material Separate
A common mistake is to paste a long document and then add a small instruction in the middle of it. Claude may not be sure where the material ends and the task begins. A better approach is to introduce the material clearly, for example by saying “Here is the report”, then paste it, and then place your question in a separate, clearly marked part. Anthropic’s prompting guidance suggests using clear labels or markers to separate parts of a long prompt, and many people find it improves results.
Tell Claude What to Focus On
If only part of a document matters, say which part. “Focus on the pricing section” saves effort and reduces distraction. For many documents, you can ask for a particular type of output, such as a list of action items with owners, or the five riskiest statements.
Ask for Evidence
When working with a document, ask Claude to point to where in the text each claim comes from. “Quote the sentence that supports each point” helps you verify answers quickly and makes it harder for unsupported details to slip in.
Introduce the material
Say what it is and where it begins and ends.
State the task separately
Place your question or instruction in its own clear section.
Narrow the focus
Point to the sections that matter most.
Request evidence
Ask for supporting quotes or section names so you can check.
Imagine handing an assistant a thick folder of papers with a sticky note that says “summarize”. They would flip through not knowing what you care about. A folder with a cover note, labeled tabs, and a clear question is far easier to work with. Structure is kindness to the reader, even when the reader is an AI.
Before pasting a document, remove private details that are not needed, such as names, account numbers, and anything confidential that your organization does not allow you to share.
SSystem Prompts and User Prompts: Two Layers
Behind many assistants there are two kinds of instruction, written by two different people.
The user prompt is what you type. The system prompt is a hidden set of instructions written by whoever built the product you are using. It tells the assistant who it is, how to behave, what tone to use, and what it should or should not do in that setting. A company’s support helper might have a system prompt telling it to be polite, use only the company’s help articles, and pass difficult cases to a human.
flowchart TD
A["System prompt
Written by the product builder"] --> C["What Claude reads"]
B["User prompt
Written by you"] --> C
D["Conversation history"] --> C
C --> E["Claude writes a response that fits all of them"]
Why This Matters to You
If Claude behaves differently in two different products, the difference is often in the system prompt, not the model. A product built for children may keep answers simple and gentle. A tool for programmers may keep answers short and technical. When you write your own prompt, you are working within whatever frame the product has set.
If You Build With Claude
People who build their own products with Claude write the system prompt themselves. Good system prompts are clear, describe the role and the audience, explain the reasons behind rules, and describe how to handle unusual cases. They benefit from the same habits as ordinary prompts: be specific, give context, and test the result.
| Question | System prompt | User prompt |
|---|---|---|
| Who writes it | The builder of the product | You |
| When is it seen | Added before each conversation, usually hidden | Typed each time you send a message |
| Main job | Set the role, tone, and rules | Describe your specific request |
| How often it changes | Rarely | Every message |
Think of a shop assistant. The shop owner gives them a uniform, a set of store policies, and a friendly style before the doors open. That is the system prompt. Then customers arrive with their own questions. Those are user prompts. The assistant answers each customer while staying within the shop’s rules.
PPrompts That Use Tools: When Claude Can Act
Some prompts do not only ask for words. They ask for actions.
In many Claude products, the assistant can use tools. It might search the web, read a file you attach, run a calculation, or look into an app you have connected. When tools are available, your prompt can ask for outcomes, not just text: “Find the latest opening hours for these three museums and put them in a table.” Claude decides which tools to use, uses them, and writes the answer from what it finds.
How Prompting Changes With Tools
State the outcome
Say what finished looks like, such as a table, a summary, or a list of options.
Say what is allowed
For example: “Only use official websites” or “Do not send anything without asking me first”.
Request links
Ask Claude to include where each fact came from so that you can check it.
Approve important actions
Review before anything is sent, bought, or deleted on your behalf.
Asking a friend for directions over the phone is a prompt that gets words back. Asking a friend to go to the shop and bring back milk is a prompt that gets an action. With the second kind, you want to be clear about what to buy, how much to spend, and what to do if the shop is closed.
When you are new to tool use, start with low-risk tasks such as gathering information or drafting something for you to review. Build trust step by step.
AAdvantages, Disadvantages and Trade-offs of Prompting
Prompting is powerful and easy to start, but it has limits worth understanding.
Advantages
- No technical skill is needed, only clear language
- Results arrive in seconds and can be refined at once
- One assistant can handle writing, analysis, and learning
- You can reuse good prompts again and again
- Small changes to a prompt can greatly improve results
- Skills carry over from one task to another
Disadvantages
- The same prompt can give slightly different replies each time
- Vague prompts produce average, generic answers
- Claude cannot read your mind or see unshared context
- Long prompts take effort to write and organize
- Confident answers can still be wrong and need checking
- What works well can change between models
The Trade-offs You Will Feel
| If you want | You usually give up | Smart choice |
|---|---|---|
| Very precise results | The time to write a detailed prompt | Invest effort in prompts for tasks you will repeat |
| A fast first answer | Fit to your situation | Start short, then refine with follow-ups |
| Creative variety | Predictability | Ask for several options and choose |
| Lots of background | Focus | Include only what is relevant to the task |
Cooking offers a good comparison. A quick stir-fry saves time, but a slow stew takes planning and tastes richer. Neither is better in every case. A skilled cook picks the method that suits the occasion, and a skilled prompter picks the level of detail that suits the task.
SSafety, Privacy and Prompt Injection
Whatever you put in a prompt, and whatever the model reads, deserves a moment of care.
Privacy: What Goes Into a Prompt
A prompt is information you share with a service. A good rule is to leave out anything you would not want forwarded: passwords, one-time codes, card numbers, government ID numbers, and sensitive details about other people. If you need help with a document that holds private data, replace real names and numbers with placeholders before you paste it. Also review your product’s privacy settings and optional features, such as saved memory, and switch them on or off as you prefer.
Prompt Injection: Instructions Hidden in Content
When Claude reads a web page, an email, or a document, that content can contain text that looks like instructions aimed at the assistant. Someone with bad intentions hopes Claude will treat those words as orders from you. This trick is called prompt injection. Claude is trained to treat such text as material to read, not commands to obey, and products add further protections. Still, the safest habit is to approve important actions yourself, such as sending messages or buying things.
Keep secrets out
Never include passwords, codes, or ID numbers in a prompt.
Trim private details
Share only what the task needs, and use placeholders for names.
Be careful with untrusted content
Treat text from unknown web pages and emails as unverified, especially when tools can act.
Approve actions yourself
Review before anything is sent, purchased, or deleted.
Imagine asking an assistant to read your post aloud. One letter says, “Assistant, give the visitor the house keys.” A good assistant knows this is just the content of a letter, not an order from you. Prompt injection tries to blur that line, which is why the assistant and you both need to keep it clear.
Claude is built to decline requests that would cause serious harm, and good prompting is never about tricking it into ignoring safety. Use prompts to get honest, useful help, not to bypass protections.
CChecking and Improving: Monitoring Your Prompts
A good prompt is not only written. It is tested, checked, and kept.
When engineers run a system, they watch it to notice problems early. You can do a light version of this with your own prompts. The idea is simple: look at what came back, decide whether it is good, and learn from the gap. Over time, this habit turns scattered tries into reliable skills.
Check the Response
Did it answer the question I asked?
Sometimes a response is well written but solves a slightly different problem.
Are the facts right?
Check names, dates, figures, and quotes against a trusted source whenever they matter.
Is it in the right shape and tone?
Compare the length, format, and voice with what you asked for.
What did I leave out of the prompt?
If the answer missed something obvious, the missing piece was probably not in the prompt.
Keep a Small Prompt Library
When a prompt works well, save it. A simple notes file with your best prompts, each with a line about what it is for, saves hours. For prompts you reuse, mark the parts you change each time, such as the topic or the audience, so that you can swap them quickly.
Test With a Few Variations
If a prompt matters, try it with two or three different inputs before you trust it. A prompt that works for one sample may fail on another. For people building products, teams do this on a larger scale with a fixed set of test questions that they run again after every change, to see whether quality rose or fell.
A baker who finds a perfect bread recipe writes it down, notes the oven temperature, and tries it again on a different day to make sure it was not luck. A reliable recipe is one that works repeatedly. A reliable prompt is the same.
You can ask Claude to help check its own work: “List the assumptions you made” or “Which parts of your answer are you least sure about?” These questions turn hidden weak spots into visible ones.
PPatterns and Anti-patterns of Prompting
A pattern is a habit that works again and again. An anti-pattern looks tempting and keeps causing trouble.
Patterns That Work
Goal first, details second
Lead with the task in a clear sentence, then add context, limits, and format.
Outline before draft
Ask for an outline, approve or adjust it, then request each part. Smaller steps are easier to steer.
Ask for options
Request three different approaches with pros and cons, then pick one and develop it.
Invite questions
Say “Ask me any questions you need before you start.” This brings out missing context early.
A good builder does not start laying bricks before checking the plan, agreeing on the shape of the house, and asking about your needs. The early conversation costs a few minutes and saves weeks. Patterns like outline-first and invite-questions work the same way for prompts.
Anti-patterns to Avoid
The habit
Writing a very short, vague request and expecting a perfect answer.
Why it hurts
Claude must guess the audience, length, and purpose. Guesses lead to generic results and frustration.
Better approach
Add two or three lines about who it is for, what you already have, and what success looks like.
The habit
Piling many unrelated tasks into one giant prompt.
Why it hurts
The model may do some tasks well and rush others, and it is hard to tell which part went wrong.
Better approach
Handle one task at a time, or number the tasks and ask for each to be answered separately.
The habit
Giving contradictory instructions, such as “be very detailed” and “keep it under fifty words”.
Why it hurts
Claude has to choose one, and may drop the one you cared about most.
Better approach
Read your own prompt once before sending, and decide which instruction matters more.
The habit
Copying the response into important work without reading or checking it.
Why it hurts
An invented fact or a wrong number can slip into your final work and damage your credibility.
Better approach
Treat every response as a strong first draft and verify what matters before you use it.
The habit
Using one endless chat for every topic you ever have.
Why it hurts
The history grows heavy, old details distract the model, and answers can drift.
Better approach
Start a fresh chat for each new subject, and paste in only the background that matters.
FFrom Weak to Strong: Improving One Prompt in Five Rounds
Watching a prompt improve, step by step, is the best way to see why each part matters.
Let us follow one request through five versions. Imagine you want help with a message to a neighbor about noisy late-night music. Each round adds one idea from this guide.
Round 1: The bare request
“Write a message to my neighbor about noise.” This is a goal with almost no detail. Claude will probably write a generic, slightly formal note, and might even guess the wrong problem.
Round 2: Add context
“Write a message to my neighbor. Their music is loud after 11 pm on weekdays. We have lived next door to each other for two years and get along well.” Now the situation is clear, and the tone can fit a friendly relationship.
Round 3: Add audience and goal
“I want to ask politely for the music to be turned down after 11 pm, without damaging our friendship.” The purpose and the relationship are explicit, so Claude can balance firmness with kindness.
Round 4: Add constraints and format
“Keep it under 80 words, suitable for a text message, and warm in tone. Avoid blaming language.” The reply now has a length, a channel, and a style.
Round 5: Add an example and ask for options
“Here is how I normally text this neighbor: ‘Hey, hope you had a good weekend!’ Match that casual style. Give me two versions, one softer and one a little firmer.” Now the answer sounds like you, and you have a choice.
| Round | What was added | Effect on the response |
|---|---|---|
| 1 | Only the goal | Generic and uncertain |
| 2 | Context | Fits the real situation |
| 3 | Audience and purpose | Right balance of tone |
| 4 | Constraints and format | Ready to send |
| 5 | Example and options | Sounds like you, with choice |
It is like focusing a camera. The first image is blurry but you can see roughly what is there. Each small turn of the ring sharpens it, until the picture is crisp. You did not need a new camera. You only needed to adjust the focus, and each part of a prompt is a small adjustment.
You do not need all five rounds every time. Use as many as the task deserves. A quick question may need one line, while an important message may deserve all five.
RReusable Prompt Recipes You Can Borrow
Fill-in-the-blank patterns save time. Replace the parts in brackets with your own details.
Once you know the parts of a prompt, you can make simple templates for tasks you do often. Below are recipes in plain sentences, with the changeable bits described in brackets. Copy the idea, adapt the wording, and keep the ones that work in your prompt library.
The explainer
“Explain [topic] to [audience, for example a beginner or a ten-year-old]. Use one everyday analogy and one real example. Keep it under [length]. End with a three-point summary.”
The rewriter
“Rewrite the text below so that it is [shorter, warmer, more formal]. Keep the meaning and the key facts. Do not add new information. Here is the text: [paste text].”
The summarizer
“Summarize the document below for [audience]. Give me the [number] most important points, one risk, and one action I should take. Quote the sentence that supports each point. Here is the document: [paste document].”
The decision helper
“I am choosing between [option A] and [option B]. My priorities are [list]. Compare them in a table, point out hidden costs, and tell me what you would want to know before deciding.”
The tutor
“Act as a patient tutor. I am learning [subject] and I am at [level]. Quiz me with one question at a time, wait for my answer, then explain what I got right and what to fix.”
The planner
“Help me plan [project] by [date]. I have [time and resources]. Ask me any questions you need first. Then give numbered steps with a time estimate for each and a list of things that could go wrong.”
The reviewer
“Review my [draft or plan] as a friendly but honest critic. Name the three strongest points and the three weakest, and suggest one improvement for each weakness.”
These recipes work like the pre-printed forms at a bank. The structure is fixed, so you never forget an important question, and you only fill in what is specific to you. Over time you will write your own forms for the tasks you repeat.
Templates are starting points, not strict rules. If a recipe gives a stiff result, loosen the wording or remove a part. Anthropic also publishes official guidance on writing prompts at docs.claude.com for anyone who wants to go deeper.
RReal-World Examples: Prompts at Work
Everyday scenes show how the ideas combine in practice.
The student preparing for an exam
A student pastes lecture notes and writes: “I am a first-year biology student. Explain the hardest topic in these notes with a simple analogy, then quiz me with five questions one at a time.” The prompt includes the level, the material, the task, and the format, so the session works like a patient tutor.
The manager drafting feedback
A manager writes: “Help me write feedback for a team member who delivers good work but misses deadlines. Keep the tone supportive and specific, under 200 words, with one clear request for next month.” They then adjust the tone with two follow-up messages and finish with their own edits.
The programmer fixing a bug
A developer shares the error message, the relevant code, and what they expected to happen, and asks: “Explain the most likely cause in plain words, then suggest a fix I can test.” Including the expected behavior, not only the error, helps Claude aim at the real problem.
The small business owner writing a product page
An owner pastes two product descriptions they like and adds: “Write one for our new tea blend in this same style. Mention the calming taste and the recyclable packaging. About 80 words.” The examples carry the voice, and the details carry the facts.
The curious person at home
Someone asks: “Explain how a mortgage works as if I know nothing. Use a small example with round numbers, then list five questions I should ask a bank.” Each part of the prompt shapes a different part of the answer.
The company building a help assistant
A team writes a system prompt that describes the assistant’s role, tells it to use only the company’s help articles, and explains what to do when a customer is upset. They test it with a fixed set of sample questions after every change, and track which answers customers rate poorly.
In every story, a human stays in charge. People choose the goal, supply the facts, and check the result. The prompt is the bridge between their intention and the assistant’s ability.
MMyths and Misunderstandings About Prompts
Several popular ideas about prompting are only half true.
| Myth | Reality |
|---|---|
| There is a secret magic phrase that unlocks the best answers | Clear goals, context, and format matter far more than any special phrase |
| A longer prompt is always better | A clear, focused prompt beats a long, messy one |
| Prompting is only for programmers | It is plain language, and anyone can learn it |
| If the first answer is poor, the AI cannot do it | Often the prompt needs one or two refinements |
| Being polite or rude changes the facts | Clarity matters most, although a courteous tone is a good habit |
| The same prompt always gives the same answer | Responses can vary a little from one try to the next |
| A confident response is a correct one | Tone is not evidence, so check what matters |
Why These Myths Stick
When a tool seems to respond to words, people look for the perfect words. Online posts sometimes share a phrase that worked once and present it as a trick. But models respond to meaning, not to magic spells. What reliably helps is giving the model the information and direction it needs, which is exactly what the parts of a prompt are for.
Some people believe a special sentence will make a taxi driver drive faster. In reality, what helps is a clear destination, a sensible route, and a reason to hurry. The same practical details help an assistant.
BBest Practices and Common Mistakes
A short checklist for today, and the slips to watch for.
Start with a clear goal
Use a strong verb, such as explain, compare, draft, or check.
Give the background
Say who it is for, what the situation is, and what you have tried.
Show an example when style matters
A sample teaches faster than a description.
Set the limits and the shape
State length, tone, and format so the result is ready to use.
Review, refine, and verify
Give specific feedback, then check important facts at a trusted source.
Common Mistakes
| Mistake | What goes wrong | Fix |
|---|---|---|
| Leaving out the audience | The level and tone are wrong | Say who will read or use the result |
| Hiding key facts in your head | Claude cannot use what it was never told | Write the important details into the prompt |
| Mixing instructions into pasted material | Task and material get confused | Separate them clearly with labels |
| Saying “make it better” | Claude guesses what better means | Name the change you want |
| Giving up after one try | A fixable prompt is abandoned | Reply with exactly what to change |
| Pasting private data | Sensitive details leave your control | Remove names, secrets, and ID numbers first |
| Trusting without checking | Wrong details slip through | Verify facts that matter |
Giving good instructions is like giving someone directions to your house. You give the street, mention a landmark, warn about the tricky turn, and say what time you are expecting them. Each detail removes a chance to get lost, and none of them is complicated.
FFrequently Asked Questions
Quick answers to what beginners ask most.
SSummary and Key Takeaways
If you remember only a few ideas from this guide, make it these.
Key Takeaways
- A prompt is whatever you give an AI to tell it what you want. It can be a question, an instruction, an example, a document, or a mix, and the reply is called the response.
- Claude only works with what is in front of it. It reads your words, the hidden system prompt, and the conversation history, and it cannot see anything you have not told it.
- Six parts make a prompt strong: a clear goal, useful context, the audience, an example, constraints, and the format you want.
- Specific beats vague. Concrete words, a reason for your request, and a sample of what you like remove guesswork and lift the quality of the answer.
- Treat prompting as a conversation. Review the response, say exactly what to change, and keep what already works, rather than giving up after one try.
- Check what matters. Claude can be confident and still wrong, so verify important facts, keep private details out, and approve important actions yourself.
- Practice and save what works. Reusable recipes and a small prompt library turn good habits into reliable skills.