"Prompt engineering" sounds technical, but it is really just the skill of asking clearly. If your AI answers feel generic or off-target, the problem is almost always the request, not the tool. The good news is that better prompts follow a pattern you can learn in an afternoon and reuse forever. This article gives you that pattern, shows it in action, and names the common mistakes that quietly ruin results.
The formula: role, context, task, constraints, examples
Nearly every strong prompt contains five ingredients. You will not always need all five, but keeping them in mind stops you from leaving out the piece that matters.
Role. Tell the assistant who to be. "Act as an experienced HR manager" or "You are a careful copy-editor." This sets the vocabulary, tone and priorities before it writes a word.
Context. Give the background it cannot guess: who the audience is, what has happened so far, what you are trying to achieve. This is the single biggest lever on quality.
Task. State plainly what you want produced. "Draft an email," "Summarise in five bullets," "List the risks." One clear verb beats a paragraph of hedging.
Constraints. Set the boundaries: length, tone, format, what to include or avoid. "Under 150 words, friendly, no jargon, end with a clear next step." Constraints are what make output usable rather than merely correct.
Examples. When tone or format matters, show one. "Match the style of this past email: [paste]." A single example often teaches more than three sentences of description.
Role, context, task, constraints, examples. Most weak prompts are simply missing two of the five.
Before and after: a real difference
Before: "Write an email about the project delay." This is a task with nothing else, so the assistant guesses everything: who it is to, how serious it is, how apologetic to sound. You get a bland, generic paragraph that needs a full rewrite.