How to Write Better AI Prompts: A Simple Formula for ChatGPT and Claude

You ask ChatGPT or Claude for a blog post, a piece of code or a LinkedIn update, and the answer comes back generic. Usually the AI isn’t the problem. The prompt is. A one-line prompt leaves the AI guessing about who the answer is for, how long it should be and what “good” looks like.

This guide gives you a simple six-part formula for writing better AI prompts, with before-and-after examples you can copy. It works in both ChatGPT and Claude.

The six-part prompt formula

A strong prompt answers six questions before the AI has to guess. You don’t need all six every time, but the more of them you cover, the better the answer.

1. Role: who should the AI be?

Give the AI an expert to play. “A senior content writer who makes ideas practical” produces very different writing from no role at all. The role sets the vocabulary, depth and point of view.

2. Task: what exactly do you want?

Name the deliverable in one clear sentence. “A blog post on how remote teams stay productive” is better than “write about remote work”.

3. Audience: who is it for?

An explanation for team leads reads differently from one for students or engineers. Say who will read it.

4. Format: how long, in what tone and shape?

Give a length (“about 900 words”), a tone (“warm, practical”) and a structure if you need one (“three sections with headings”, “a table”, “bullet points only”).

5. Requirements: what must it include or avoid?

List the specifics that make the answer yours: “open with the reader’s biggest worry”, “include one real example per point”, “no hype words, no invented numbers”.

6. Check: how should the AI verify its answer?

End with a short checklist: “Before replying, check that every requirement is met.” This simple line makes the AI review its own work against your brief.

Before and after: three prompt examples

Writing

Before: write a blog about remote work

Role: A senior content writer who makes ideas practical.
Task: A blog post on how remote teams stay productive.
Audience: Team leads · Length: About 900 words · Tone: Warm, practical
Requirements: Open with the reader’s biggest worry; three habits, each with a real example.
Before replying, check: Every requirement is met.

Coding

Before: build me a to-do app with login

Role: A senior full-stack developer who writes clean, tested code.
Task: A to-do web app with email sign-in.
Stack: React and Node.js · Users: One list per person
Requirements: List the files first; validate every input; explain how to run it locally.
Before replying, check: The code runs as written.

Marketing

Before: linkedin post about our product launch

Role: A B2B content strategist who writes credible LinkedIn posts.
Task: Announce our product launch.
Audience: Founders and team leads · Length: About 150 words · Tone: Confident, not salesy
Requirements: Open with the problem it solves; one concrete benefit; one call to action.
Before replying, check: No hype words, no invented numbers.

Tips for writing better Claude prompts

The formula above works well in Claude. Anthropic’s own prompting best practices cover a few techniques that are especially useful:

  • Be clear and give examples. Spell out what you want, and show a short example of a good answer when the format matters.
  • Structure long prompts with tags. Wrapping parts of your prompt in labels such as <document> and <instructions> helps Claude tell your material apart from your request.
  • Give Claude a role. The “Role” line in the formula does exactly this.
  • Let it think first. For harder problems, ask Claude to reason step by step before giving its final answer.
  • Break big jobs into steps. Instead of one giant prompt, run a chain: outline first, then draft, then edit.

Tips for better ChatGPT prompts

  • Put the most important instruction in the first line, then add detail.
  • Ask for a specific output shape, such as a table, a numbered list or a set length.
  • If the first answer misses, don’t start over. Reply with exactly what was missing and ask it to fix only that.
  • Save prompts that work and reuse them as templates.

Check the answer against your prompt

Writing a good prompt is half the job. The other half is checking the reply. Go back to your requirements and tick them off one by one: Did it hit the length? Did it include the examples? Did it avoid what you ruled out? Then send one follow-up message that lists every gap. One precise follow-up works better than several vague ones.

Common prompt mistakes to avoid

  • Too short. “Write a post about X” leaves every important choice to the AI.
  • No audience. The AI writes for an average reader who doesn’t exist.
  • Several tasks in one prompt. Split them, or number them clearly.
  • No definition of done. Without requirements, you can’t tell the AI what it missed.

Let an AI prompt generator do it for you

Writing all six parts every time takes effort. Prism is a free AI prompt generator for ChatGPT and Claude that does it inside the chat box. Type your rough idea and press Refine. Prism adds the role, requirements and checklist, scores the prompt out of 10 and polishes it, aiming for 9.5. Its guesses, such as your audience or tone, are underlined so you can change them in one tap. After the AI replies, Review checks the answer against your prompt and drafts the follow-up for anything it missed.

Frequently asked questions

What is the best way to write an AI prompt?

Cover six things: the role the AI should play, the task, the audience, the format (length, tone and structure), your specific requirements, and a final check. The examples above show the formula in action.

Do ChatGPT and Claude need different prompts?

The same well-structured prompt works in both. Claude responds especially well to clearly separated sections and explicit instructions, so structure helps most with longer prompts.

Is there a free AI prompt generator?

Yes. Prism is a free Chrome extension that turns rough ideas into expert prompts in ChatGPT and Claude. The free plan needs no card.

Leave a Reply

Your email address will not be published. Required fields are marked *