Good prompts are mostly clear writing. Here are six patterns that make model output more consistent, with before and after examples you can copy.

Most bad AI answers come from a vague question. If a new teammate would need to ask you three follow-up questions before starting, the model needs those answers too, and it will not ask. It will guess.

Below are six patterns that remove the guessing. None of them are secret tricks. They are ordinary good communication, written down.

The anatomy of a good prompt

Strong prompts usually answer five questions. You do not need every layer every time, but when output disappoints, check which one is missing.

Walk down the list when an answer misses the mark.

Pattern 1: Be specific about the task

Compare these two requests:

The second prompt removes almost every guess.

Pattern 2: Show an example

One good example is worth a paragraph of description. This is often called few-shot prompting: you show a couple of input and output pairs, then give the real input.

prompt
Turn each bug report into a short title.

Report: The save button does nothing when I click it twice quickly.
Title: Double click on Save is ignored

Report: Page goes blank on Safari after I log in.
Title: Blank page after login on Safari

Report: Emails arrive twice when I change my address.
Title:

Pattern 3: Ask for a format you can use

If code will read the answer, say exactly what shape it must have. Spell out the fields, and say “return only JSON” so you do not get chatty text around it.

prompt
Extract the details from the email below.
Return only JSON with these keys:
  "customer_name" (string),
  "order_id" (string or null),
  "urgent" (true or false).

Email: """..."""

Pattern 4: Break big jobs into steps

A long, tangled request invites mistakes. Splitting it into stages, where each stage has one clear job, is more reliable and easier to debug.

Each stage is small enough to check by eye.

Pattern 5: Give permission to say “I don’t know”

Models like to be helpful, and that can turn into confident guessing. Tell them what to do when the answer is not in front of them:

prompt
Answer using only the text provided below.
If the answer is not in the text, reply exactly:
"I could not find that in the document."

This one line removes a surprising amount of invented detail.

Pattern 6: Test your prompt like code

A prompt that works on one example may fail on the next. Keep a small set of 10 to 20 realistic inputs, including odd ones, and run every new version of the prompt against all of them. Change one thing at a time so you know what helped.

What to tryWhy it helps
Empty or very short inputShows whether the prompt handles missing data
Very long inputReveals truncation and lost details
Input in another languageCatches assumptions about English
Input that tries to change the rulesChecks resistance to instructions hidden in user text