How to Write Good Claude Prompts: A 4-Part Formula

Context, task, format and limits. With these four parts, almost any request improves right away.

Updated · 2 min read

A prompt is just the request you give an AI. You don't need tricks or magic phrases. You need to explain the job the way you'd explain it to a smart colleague on their first day.

The formula

Part Question Example
Context What's the situation? "I run a neighborhood gym with 200 members."
Task What do you want? "Write a win-back message."
Format How should it look? "Three text message options, under 60 words."
Limits What should it avoid? "No discounts and no emojis."

Before and after

Before:

Help me with a message for gym members.

After:

I run a neighborhood gym with 200 members. I want to win back people who stopped coming more than 2 months ago. Write 3 text message options of up to 60 words each. Friendly tone, no guilt. No discounts and no emojis.

Three upgrades that go a long way

Say who it's for. "Explain this to a non-technical customer" changes the whole answer.

Say why you need it. "I'm presenting this to the board, which has to decide on the budget" helps Claude choose what to highlight.

Invite questions. End with: "If anything is missing, ask me before you start."

How to assign a role

"You are a lawyer" doesn't do much by itself. It works better with a goal: "Review this contract as a lawyer representing the tenant, and point out the risks."

Big tasks

Break them into stages: plan first, then draft, then review. For ready-made examples, see the 30 prompts to copy. To nail the style, show examples.

Frequently asked questions

Are longer prompts better?

Not necessarily. What counts is having the right information. A short, specific request beats a long, confusing one.

Can I write prompts in my own language?

Yes. Write in whichever language you think in best.

Is there a formula that always works?

None can guarantee results, but context, task, format and limits solve most cases.

Keep reading

Independent content. Claude is a trademark of Anthropic. This article is not affiliated with Anthropic.