Ask ten people to use the same AI assistant and you will get ten wildly different levels of satisfaction. The difference is rarely the model. Prompt engineering — the practice of writing instructions that reliably produce the output you need — is now a baseline professional skill, and the fundamentals take an afternoon to learn rather than a semester.

What prompt engineering actually is

A large language model does not "understand" your request the way a colleague does. It predicts the most plausible continuation of the text you give it. That single fact explains almost every prompting rule worth knowing: the more precisely your prompt constrains what a good answer looks like, the narrower and more useful the model's output becomes.

Prompt engineering is not about magic words. It is about supplying four things the model cannot infer on its own:

Advertisement
  • Role — who the model should answer as, and for whom
  • Context — the background facts it must work from
  • Task — the single, specific thing you want done
  • Format — the exact shape the answer should take

The core patterns, in order of payoff

1. Replace adjectives with specifications

"Write a professional email" gives the model nothing to aim at. "Write a 120-word email to a client who missed two payment deadlines, firm but not hostile, ending with a specific proposed call time" gives it five separate constraints. Vague adjectives are the single biggest cause of bland output.

2. Show, do not just tell (few-shot prompting)

If you need a consistent format, paste one or two examples of a correct answer before asking for a new one. Models match patterns far more reliably than they follow descriptions of patterns. Two good examples usually beat two paragraphs of instructions.

3. Ask for reasoning on multi-step problems

For anything involving logic, arithmetic or ordering, adding "work through this step by step before giving your final answer" measurably improves accuracy. This is often called chain-of-thought prompting. For simple lookups it adds noise — use it where the task genuinely has steps.

4. Specify the output contract

If you will paste the result into a spreadsheet, say so: "Return only a markdown table with columns Name, Risk, Owner. No preamble." The phrase "no preamble" alone removes a surprising amount of filler.

5. Give it permission to say no

Models are built to be helpful, which means they will often answer even when they should not. Adding "if the context does not contain the answer, reply exactly: NOT FOUND" is one of the cheapest guards against confident-sounding fabrication.

A prompt template that works for most tasks

Keep this structure and fill in the blanks. It is deliberately boring, which is why it is reliable.

Role: You are a [specific role] writing for [specific audience].
Context: [facts, constraints, source material]
Task: [one clear instruction]
Format: [length, structure, what to include and exclude]
If the context does not contain the answer, reply: NOT FOUND.

Common techniques compared

TechniqueBest forCost
Zero-shot (plain instruction)Simple, well-known tasksLowest
Few-shot (with examples)Consistent formatting, tone matchingLonger prompt
Chain-of-thoughtLogic, maths, multi-step analysisSlower, more tokens
Role framingShifting depth and vocabularyNegligible
Retrieval (paste the source)Factual accuracy on your own dataPrompt size limits

Five mistakes that waste the most time

  1. Asking several questions in one prompt. Split them. Quality drops sharply when a single prompt carries three unrelated tasks.
  2. Assuming the model remembers. In a long conversation, earlier details get diluted. Restate critical constraints.
  3. Accepting the first draft. "Now critique that answer and rewrite the weakest section" is often the highest-value follow-up you can send.
  4. Pasting confidential data into consumer tools. Treat any public assistant as a third party. Check your organisation's policy before pasting customer records, credentials or unreleased financials.
  5. Trusting citations. Models can produce plausible references that do not exist. Verify every link and figure before publishing.

The useful mental model is not "ask an expert". It is "brief a fast, widely-read assistant who has never met you, has no access to your files, and will not ask clarifying questions unless told to."

Where this fits into real work

Teams getting the most value are not writing clever one-off prompts. They are saving a small library of tested prompts for recurring jobs — summarising support tickets, drafting release notes, converting meeting notes into tasks — and treating those prompts like any other shared asset.

If you are applying AI to engineering workflows specifically, the same discipline pays off in code review, test generation and incident summaries. Our guides to CI/CD pipelines and modern DevOps tooling cover where those automation points usually sit.

And if your organisation is rolling AI out more broadly, pair the productivity work with security awareness: AI-generated text has made phishing dramatically more convincing, which we cover in protecting your business from AI phishing attacks.

Key takeaways

  • Specify role, context, task and format — vague adjectives produce vague output
  • Two worked examples usually outperform two paragraphs of instruction
  • Ask for step-by-step reasoning only where the task genuinely has steps
  • Give the model an explicit way to say "not found" to reduce fabrication
  • Verify every citation, figure and link before anything is published

Written by the WritePures newsroom. Spotted something that needs updating? Tell our editors.