Claude prompt examples: 10 weak vs better prompts

Same task, two prompts

Here are ten everyday tasks people bring to Claude, and for each one the left side shows the prompt people write the first time, the right side a prompt that works better, and under both what each one typically produces.

I don't quote the results word for word, because the same prompt never gives exactly the same result twice when the model works with a degree of randomness, so I describe what usually happens with a prompt like that.

You don't need a long prompt for everything, because for a small thing one sentence is enough, and it pays off where fixing the result would cost you more than a minute of writing. Copy the better prompt with the button and adapt it to your case.

1. A simple website

You want a one-page website for a small business, say a café.

Weak prompt

Make me a landing page for my café.

What you typically get

A generic template with a big image and a button. Claude invents the copy, opening hours and prices because it doesn't know them. It often reaches for a framework you then have to install, and you don't know whether the page works on a phone.

Better prompt

Build me a one-page website for a small café in the town centre.
Who reads it: people nearby looking for our opening hours and where to find us.
Goal: get them to call or come in. Phone number and address matter most.
Content: name, one sentence about us, opening hours, address with a map link, phone.
Constraints: plain HTML and CSS, no frameworks, one font, no animations.
Don't invent details you don't know. Mark them [FILL IN].
Done means the page fits in the preview at 390 and 1366 pixels wide with nothing overflowing.
At the end, send me a screenshot at both widths.

What you typically get

A simple page with the structure you set. Instead of invented opening hours you'll see [FILL IN], so you know right away what to add. The phone and desktop screenshots show that Claude actually checked it rather than just saying so.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

2. Fixing a bug

The contact form on your site has stopped working.

Weak prompt

It doesn't work, fix it.

What you typically get

Claude doesn't know what "it" is, so it guesses. It often changes several things at once, writes "this should work now", and the bug comes back somewhere else. The symptom gets fixed and the cause stays.

Better prompt

On the Contact page, nothing happens when I click Send.
The form isn't sent and no error appears.
It worked yesterday. Today we changed the site header.
The error message I see: [paste the error text or a screenshot]
First find the cause and tell me in one sentence. Don't change anything until then.
Then fix only what causes the bug.
Done means the form sends a test message in the preview.
Show me what you ran and what came out.

What you typically get

Claude has a trail to follow: what happened, when it started and what changed in between. It usually starts from the latest change, finds the cause and fixes only that. The proof at the end tells you whether the fix actually works.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

3. A summary from Excel

You have a spreadsheet of expenses and want a monthly summary.

Weak prompt

Make me a summary of this Excel file.

What you typically get

Claude picks what to add up by itself and makes up the categories. It may calculate the numbers in its head and be slightly off. In the worse case it overwrites the original file.

Better prompt

The file data/expenses-2026.xlsx has a sheet called Expenses with the columns Date, Category and Amount.
I want a summary: total spending for each month and each category,
as a table of months × categories.
Don't calculate the numbers in your head. Write a script for it and show it to me.
Only read the original file. Save the result as a new file, summary-2026.xlsx.
Done means the grand total of the table matches the total of the Amount column.
Give me both numbers.

What you typically get

A table in exactly the layout you need, plus a script you can run again next month. The control total reveals whether any row got lost along the way. The original stays untouched.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

4. An e-mail draft

You need to tell a supplier that you're moving a deadline.

Weak prompt

Write a reply to that email.

What you typically get

Without the thread and without a goal you get a polite but generic reply. It often promises something you didn't want to promise, or makes up a date.

Better prompt

Below is the whole thread with the supplier: [paste the thread]
I'm their customer and we've worked together for a long time.
Goal: move the delivery date by one week and keep the relationship good.
Tone: polite, matter-of-fact, 120 words at most.
Don't promise anything that isn't in the thread. Mark anything you don't know [FILL IN].
Write a draft only, send nothing.
Below the draft, list the points the sender is waiting for an answer on,
and for each one, where the draft answers it.

What you typically get

The draft answers everything the other side asked and adds nothing. The list of points below it lets you check in a minute that nothing is missing. Sending stays with you.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

5. Summarising a long PDF

You have a forty-page contract and little time.

Weak prompt

Summarise this PDF for me.

What you typically get

A generic summary that may not include the thing you care about. With a long document Claude may skip a section or fill in a detail, and you have no way to check.

Better prompt

I'm attaching a lease agreement, 40 pages long.
I need to decide whether to sign it.
I mainly care about notice periods, penalties and who pays for repairs.
Summarise it in 10 points at most. Give the page number for each point.
Separate what the contract literally says from how you interpret it.
At the end, list anything that's unclear or missing.
If you can't read some part, say so.

What you typically get

The summary follows your decision, not the order of the pages. Page numbers let you check every point quickly, and the list of unclear items shows what to ask before you sign. It doesn't replace legal advice, though.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • No: Definition of done
  • Yes: Verification

6. A small automation

You want your PDF invoices listed neatly in one table.

Weak prompt

Make me an automation for invoices.

What you typically get

Claude doesn't know where your invoices come from, what you want from them or where it should go. You get something generic that won't run on your machine, or an automation that does more than you want, such as moving or deleting files.

Better prompt

PDF invoices arrive in my Invoices folder.
I want a script that pulls the supplier, due date and amount from each new invoice
and adds them as a row to the file invoices.csv.
Constraints: only read the PDFs, don't move, delete or send anything.
If you can't find a value, leave the cell empty and log it in errors.txt.
Done means the script processes the three sample invoices in Invoices/test
and you show me the resulting invoices.csv.
Then explain how I run it myself.

What you typically get

A small tool with a clear boundary on what it may do. The test on three invoices shows whether it reads the values correctly before you run it on everything. The error file tells you where you need to step in by hand.

  • Yes: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

7. A design change

The page works, but something about it bothers you.

Weak prompt

Make it look nicer.

What you typically get

Claude reads "nicer" its own way. It often redoes colours, fonts and layout all at once and changes things you liked.

Better prompt

I'm attaching a screenshot of the home page. I've circled in red what I don't like.
1. The heading is too big, make it about a third smaller.
2. The Order button gets lost. Give it the site's accent colour.
3. There's too little space between sections.
Change nothing else: not the colours, fonts or text.
Check it in the preview on mobile and desktop, in light and dark mode.
Send me a before and after screenshot.

What you typically get

The three things you listed change and nothing else. The before and after screenshot shows the difference without a long description. If one change doesn't work out, you know exactly which one to undo.

  • Yes: Context
  • No: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

8. A security check

Before you publish a site or tool, you want to know it has no holes.

Weak prompt

Is this secure?

What you typically get

A common answer is "yes, it looks fine" plus a few general tips. Without a list of what to check, Claude can easily miss a key in the git history or a file that shouldn't be public.

Better prompt

Go through the project from a security point of view. Don't fix anything, only look.
Check in particular:
- passwords and API keys in the code and in the git history,
- whether .env is in .gitignore,
- what is publicly visible on the site and shouldn't be,
- forms: what happens if someone sends nonsense or a very long text.
For each finding give the file, line, severity and a suggested fix.
Sort the findings from most to least serious.
If you find nothing, tell me exactly what you went through.

What you typically get

A list of specific places instead of a reassuring sentence. Because Claude fixes nothing, you decide on every change. The last line of the prompt stops "I found nothing" from meaning "I didn't look". Claude Code also has the /security-review command for checking changes.

  • No: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

9. Checking a fact

You need a current figure, such as the price of a service.

Weak prompt

How much does Claude cost?

What you typically get

The model answers from what it learned, and prices may have changed since. You get a confident number with no date and no source.

Better prompt

Find the current prices of Claude's plans for individuals.
Search only the official Anthropic pricing page.
For each price give the link and the date you saw it.
Say whether the price includes VAT or not.
Separate what you verified on the page from what you're estimating.
If sources disagree, show both.

What you typically get

The answer rests on a source you can open yourself, and the date next to the number tells you how fresh it is. If Claude can't search the web at that moment, you find out right away instead of getting an old number.

  • No: Context
  • Yes: Goal
  • Yes: Constraints
  • No: Definition of done
  • Yes: Verification

10. A bigger rebuild

Your site is growing and you want to make it clearer overall.

Weak prompt

Redo the whole site so it looks more modern.

What you typically get

Claude starts on everything at once. You end up with one big change across dozens of files, where it's hard to tell what broke and why.

Better prompt

I want the site to be clearer, mainly the menu and the pricing page.
First write me a plan in bullet points. Change nothing until I approve it.
Split the work into small steps. After each step, make a commit and show me a preview.
Don't touch: the text, the page addresses or the contact form.
Done means the build passes without errors and all links work.

What you typically get

A plan is quick to read and cheap to fix. If it has a wrong step, you send it back in a minute. Small steps with a commit each mean that when something breaks, you go back a little, not a whole day's work.

  • No: Context
  • Yes: Goal
  • Yes: Constraints
  • Yes: Definition of done
  • Yes: Verification

Why the better prompt works

All the better prompts rest on the same five things. You don't need all five every time, but the more are missing, the more Claude has to guess.

  1. Context. Who will read the result, what you're starting from and what has already happened. Claude can't see inside your head, and whatever it doesn't know, it fills in, and the filled-in parts then look convincing even when they're wrong.
  2. Goal. What the result is for. The goal tells Claude what matters and what it can leave out. "So people call us" produces a different page than "make it nice".
  3. Constraints. What not to touch, which technology, what length and what tone. Without limits, Claude does more than you asked and rewrites things that were fine.
  4. Definition of done. A concrete condition you can check, such as "the page fits at 390 pixels wide" or "the totals match". Without one, Claude stops whenever it feels done.
  5. Verification. Have it show proof, such as a screenshot, test output or a control total. "Done" without proof is only a promise, which is why I also have an automatic safeguard for it.

More copy-ready lines are in Templates, and answers to common beginner questions are in the FAQ. If you have a pair of your own that opened your eyes, write to me and I'll add it here.